1 | <?php |
---|
2 | /*********************************************** |
---|
3 | * File : syncoofmessage.php |
---|
4 | * Project : Z-Push |
---|
5 | * Descr : WBXML appointment entities that can be |
---|
6 | * parsed directly (as a stream) from WBXML. |
---|
7 | * It is automatically decoded |
---|
8 | * according to $mapping, |
---|
9 | * and the Sync WBXML mappings |
---|
10 | * |
---|
11 | * Created : 08.11.2011 |
---|
12 | * |
---|
13 | * Copyright 2007 - 2012 Zarafa Deutschland GmbH |
---|
14 | * |
---|
15 | * This program is free software: you can redistribute it and/or modify |
---|
16 | * it under the terms of the GNU Affero General Public License, version 3, |
---|
17 | * as published by the Free Software Foundation with the following additional |
---|
18 | * term according to sec. 7: |
---|
19 | * |
---|
20 | * According to sec. 7 of the GNU Affero General Public License, version 3, |
---|
21 | * the terms of the AGPL are supplemented with the following terms: |
---|
22 | * |
---|
23 | * "Zarafa" is a registered trademark of Zarafa B.V. |
---|
24 | * "Z-Push" is a registered trademark of Zarafa Deutschland GmbH |
---|
25 | * The licensing of the Program under the AGPL does not imply a trademark license. |
---|
26 | * Therefore any rights, title and interest in our trademarks remain entirely with us. |
---|
27 | * |
---|
28 | * However, if you propagate an unmodified version of the Program you are |
---|
29 | * allowed to use the term "Z-Push" to indicate that you distribute the Program. |
---|
30 | * Furthermore you may use our trademarks where it is necessary to indicate |
---|
31 | * the intended purpose of a product or service provided you use it in accordance |
---|
32 | * with honest practices in industrial or commercial matters. |
---|
33 | * If you want to propagate modified versions of the Program under the name "Z-Push", |
---|
34 | * you may only do so if you have a written permission by Zarafa Deutschland GmbH |
---|
35 | * (to acquire a permission please contact Zarafa at trademark@zarafa.com). |
---|
36 | * |
---|
37 | * This program is distributed in the hope that it will be useful, |
---|
38 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
39 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
40 | * GNU Affero General Public License for more details. |
---|
41 | * |
---|
42 | * You should have received a copy of the GNU Affero General Public License |
---|
43 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
---|
44 | * |
---|
45 | * Consult LICENSE file for details |
---|
46 | ************************************************/ |
---|
47 | |
---|
48 | class SyncOOFMessage extends SyncObject { |
---|
49 | public $appliesToInternal; |
---|
50 | public $appliesToExternal; |
---|
51 | public $appliesToExternalUnknown; |
---|
52 | public $enabled; |
---|
53 | public $replymessage; |
---|
54 | public $bodytype; |
---|
55 | |
---|
56 | public function SyncOOFMessage() { |
---|
57 | $mapping = array ( |
---|
58 | //only one of the following 3 apply types will be available |
---|
59 | SYNC_SETTINGS_APPLIESTOINTERVAL => array ( self::STREAMER_VAR => "appliesToInternal", |
---|
60 | self::STREAMER_PROP => self::STREAMER_TYPE_SEND_EMPTY), |
---|
61 | |
---|
62 | SYNC_SETTINGS_APPLIESTOEXTERNALKNOWN => array ( self::STREAMER_VAR => "appliesToExternal", |
---|
63 | self::STREAMER_PROP => self::STREAMER_TYPE_SEND_EMPTY), |
---|
64 | |
---|
65 | SYNC_SETTINGS_APPLIESTOEXTERNALUNKNOWN => array ( self::STREAMER_VAR => "appliesToExternalUnknown", |
---|
66 | self::STREAMER_PROP => self::STREAMER_TYPE_SEND_EMPTY), |
---|
67 | |
---|
68 | SYNC_SETTINGS_ENABLED => array ( self::STREAMER_VAR => "enabled"), |
---|
69 | |
---|
70 | SYNC_SETTINGS_REPLYMESSAGE => array ( self::STREAMER_VAR => "replymessage"), |
---|
71 | |
---|
72 | SYNC_SETTINGS_BODYTYPE => array ( self::STREAMER_VAR => "bodytype", |
---|
73 | self::STREAMER_CHECKS => array( self::STREAMER_CHECK_ONEVALUEOF => array(SYNC_SETTINGSOOF_BODYTYPE_HTML, ucfirst(strtolower(SYNC_SETTINGSOOF_BODYTYPE_TEXT))) )), |
---|
74 | |
---|
75 | ); |
---|
76 | |
---|
77 | parent::SyncObject($mapping); |
---|
78 | } |
---|
79 | |
---|
80 | } |
---|
81 | ?> |
---|