1 | <?php |
---|
2 | /*********************************************** |
---|
3 | * File : syncmeetingrequest.php |
---|
4 | * Project : Z-Push |
---|
5 | * Descr : WBXML folder entities that can be parsed |
---|
6 | * directly (as a stream) from WBXML. |
---|
7 | * It is automatically decoded |
---|
8 | * according to $mapping, |
---|
9 | * and the Sync WBXML mappings. |
---|
10 | * |
---|
11 | * Created : 05.09.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 | |
---|
49 | class SyncMeetingRequest extends SyncObject { |
---|
50 | public $alldayevent; |
---|
51 | public $starttime; |
---|
52 | public $dtstamp; |
---|
53 | public $endtime; |
---|
54 | public $instancetype; |
---|
55 | public $location; |
---|
56 | public $organizer; |
---|
57 | public $recurrenceid; |
---|
58 | public $reminder; |
---|
59 | public $responserequested; |
---|
60 | public $recurrences; |
---|
61 | public $sensitivity; |
---|
62 | public $busystatus; |
---|
63 | public $timezone; |
---|
64 | public $globalobjid; |
---|
65 | |
---|
66 | function SyncMeetingRequest() { |
---|
67 | $mapping = array ( |
---|
68 | SYNC_POOMMAIL_ALLDAYEVENT => array ( self::STREAMER_VAR => "alldayevent", |
---|
69 | self::STREAMER_CHECKS => array( self::STREAMER_CHECK_ZEROORONE => self::STREAMER_CHECK_SETZERO)), |
---|
70 | |
---|
71 | SYNC_POOMMAIL_STARTTIME => array ( self::STREAMER_VAR => "starttime", |
---|
72 | self::STREAMER_TYPE => self::STREAMER_TYPE_DATE_DASHES, |
---|
73 | self::STREAMER_CHECKS => array( self::STREAMER_CHECK_REQUIRED => self::STREAMER_CHECK_SETZERO, |
---|
74 | self::STREAMER_CHECK_CMPLOWER => SYNC_POOMMAIL_ENDTIME ) ), |
---|
75 | |
---|
76 | SYNC_POOMMAIL_DTSTAMP => array ( self::STREAMER_VAR => "dtstamp", |
---|
77 | self::STREAMER_TYPE => self::STREAMER_TYPE_DATE_DASHES, |
---|
78 | self::STREAMER_CHECKS => array( self::STREAMER_CHECK_REQUIRED => self::STREAMER_CHECK_SETZERO) ), |
---|
79 | |
---|
80 | SYNC_POOMMAIL_ENDTIME => array ( self::STREAMER_VAR => "endtime", |
---|
81 | self::STREAMER_TYPE => self::STREAMER_TYPE_DATE_DASHES, |
---|
82 | self::STREAMER_CHECKS => array( self::STREAMER_CHECK_REQUIRED => self::STREAMER_CHECK_SETONE, |
---|
83 | self::STREAMER_CHECK_CMPHIGHER => SYNC_POOMMAIL_STARTTIME ) ), |
---|
84 | // Instancetype values |
---|
85 | // 0 = single appointment |
---|
86 | // 1 = master recurring appointment |
---|
87 | // 2 = single instance of recurring appointment |
---|
88 | // 3 = exception of recurring appointment |
---|
89 | SYNC_POOMMAIL_INSTANCETYPE => array ( self::STREAMER_VAR => "instancetype", |
---|
90 | self::STREAMER_CHECKS => array( self::STREAMER_CHECK_REQUIRED => self::STREAMER_CHECK_SETZERO, |
---|
91 | self::STREAMER_CHECK_ONEVALUEOF => array(0,1,2,3) )), |
---|
92 | |
---|
93 | SYNC_POOMMAIL_LOCATION => array ( self::STREAMER_VAR => "location"), |
---|
94 | SYNC_POOMMAIL_ORGANIZER => array ( self::STREAMER_VAR => "organizer", |
---|
95 | self::STREAMER_CHECKS => array( self::STREAMER_CHECK_REQUIRED => self::STREAMER_CHECK_SETEMPTY ) ), |
---|
96 | |
---|
97 | SYNC_POOMMAIL_RECURRENCEID => array ( self::STREAMER_VAR => "recurrenceid", |
---|
98 | self::STREAMER_TYPE => self::STREAMER_TYPE_DATE_DASHES), |
---|
99 | |
---|
100 | SYNC_POOMMAIL_REMINDER => array ( self::STREAMER_VAR => "reminder", |
---|
101 | self::STREAMER_CHECKS => array( self::STREAMER_CHECK_CMPHIGHER => -1)), |
---|
102 | |
---|
103 | SYNC_POOMMAIL_RESPONSEREQUESTED => array ( self::STREAMER_VAR => "responserequested"), |
---|
104 | SYNC_POOMMAIL_RECURRENCES => array ( self::STREAMER_VAR => "recurrences", |
---|
105 | self::STREAMER_TYPE => "SyncMeetingRequestRecurrence", |
---|
106 | self::STREAMER_ARRAY => SYNC_POOMMAIL_RECURRENCE), |
---|
107 | // Sensitivity values |
---|
108 | // 0 = Normal |
---|
109 | // 1 = Personal |
---|
110 | // 2 = Private |
---|
111 | // 3 = Confident |
---|
112 | SYNC_POOMMAIL_SENSITIVITY => array ( self::STREAMER_VAR => "sensitivity", |
---|
113 | self::STREAMER_CHECKS => array( self::STREAMER_CHECK_REQUIRED => self::STREAMER_CHECK_SETZERO, |
---|
114 | self::STREAMER_CHECK_ONEVALUEOF => array(0,1,2,3) )), |
---|
115 | |
---|
116 | // Busystatus values |
---|
117 | // 0 = Free |
---|
118 | // 1 = Tentative |
---|
119 | // 2 = Busy |
---|
120 | // 3 = Out of office |
---|
121 | SYNC_POOMMAIL_BUSYSTATUS => array ( self::STREAMER_VAR => "busystatus", |
---|
122 | self::STREAMER_CHECKS => array( self::STREAMER_CHECK_REQUIRED => self::STREAMER_CHECK_SETTWO, |
---|
123 | self::STREAMER_CHECK_ONEVALUEOF => array(0,1,2,3) )), |
---|
124 | |
---|
125 | SYNC_POOMMAIL_TIMEZONE => array ( self::STREAMER_VAR => "timezone", |
---|
126 | self::STREAMER_CHECKS => array( self::STREAMER_CHECK_REQUIRED => base64_encode(pack("la64vvvvvvvv"."la64vvvvvvvv"."l",0,"",0,0,0,0,0,0,0,0,0,"",0,0,0,0,0,0,0,0,0)) )), |
---|
127 | |
---|
128 | SYNC_POOMMAIL_GLOBALOBJID => array ( self::STREAMER_VAR => "globalobjid"), |
---|
129 | ); |
---|
130 | |
---|
131 | parent::SyncObject($mapping); |
---|
132 | } |
---|
133 | } |
---|
134 | ?> |
---|