Back to index

d-push  2.0
syncmailflags.php
Go to the documentation of this file.
00001 <?php
00002 /***********************************************
00003 * File      :   syncmailflags.php
00004 * Project   :   Z-Push
00005 * Descr     :   WBXML AirSyncBase body entities that can be parsed
00006 *               directly (as a stream) from WBXML.
00007 *               It is automatically decoded according to $mapping,
00008 *               and the Sync WBXML mappings.
00009 *
00010 * Created   :   09.09.2011
00011 *
00012 * Copyright 2007 - 2011 Zarafa Deutschland GmbH
00013 *
00014 * This program is free software: you can redistribute it and/or modify
00015 * it under the terms of the GNU Affero General Public License, version 3,
00016 * as published by the Free Software Foundation with the following additional
00017 * term according to sec. 7:
00018 *
00019 * According to sec. 7 of the GNU Affero General Public License, version 3,
00020 * the terms of the AGPL are supplemented with the following terms:
00021 *
00022 * "Zarafa" is a registered trademark of Zarafa B.V.
00023 * "Z-Push" is a registered trademark of Zarafa Deutschland GmbH
00024 * The licensing of the Program under the AGPL does not imply a trademark license.
00025 * Therefore any rights, title and interest in our trademarks remain entirely with us.
00026 *
00027 * However, if you propagate an unmodified version of the Program you are
00028 * allowed to use the term "Z-Push" to indicate that you distribute the Program.
00029 * Furthermore you may use our trademarks where it is necessary to indicate
00030 * the intended purpose of a product or service provided you use it in accordance
00031 * with honest practices in industrial or commercial matters.
00032 * If you want to propagate modified versions of the Program under the name "Z-Push",
00033 * you may only do so if you have a written permission by Zarafa Deutschland GmbH
00034 * (to acquire a permission please contact Zarafa at trademark@zarafa.com).
00035 *
00036 * This program is distributed in the hope that it will be useful,
00037 * but WITHOUT ANY WARRANTY; without even the implied warranty of
00038 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
00039 * GNU Affero General Public License for more details.
00040 *
00041 * You should have received a copy of the GNU Affero General Public License
00042 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
00043 *
00044 * Consult LICENSE file for details
00045 ************************************************/
00046 
00047 class SyncMailFlags extends SyncObject {
00048     public $subject;
00049     public $flagstatus;
00050     public $flagtype; //Possible types are clear, complete, active
00051     public $datecompleted;
00052     public $completetime;
00053     public $startdate;
00054     public $duedate;
00055     public $utcstartdate;
00056     public $utcduedate;
00057     public $reminderset;
00058     public $remindertime;
00059     public $ordinaldate;
00060     public $subordinaldate;
00061 
00062 
00063     function SyncMailFlags() {
00064         $mapping = array(
00065                     SYNC_POOMTASKS_SUBJECT                              => array (  self::STREAMER_VAR      => "subject"),
00066                     SYNC_POOMMAIL_FLAGSTATUS                            => array (  self::STREAMER_VAR      => "flagstatus"),
00067                     SYNC_POOMMAIL_FLAGTYPE                              => array (  self::STREAMER_VAR      => "flagtype"),
00068                     SYNC_POOMTASKS_DATECOMPLETED                        => array (  self::STREAMER_VAR      => "datecompleted",
00069                                                                                     self::STREAMER_TYPE     => self::STREAMER_TYPE_DATE_DASHES),
00070 
00071                     SYNC_POOMMAIL_COMPLETETIME                          => array (  self::STREAMER_VAR      => "completetime",
00072                                                                                     self::STREAMER_TYPE     => self::STREAMER_TYPE_DATE_DASHES),
00073 
00074                     SYNC_POOMTASKS_STARTDATE                            => array (  self::STREAMER_VAR      => "startdate",
00075                                                                                     self::STREAMER_TYPE     => self::STREAMER_TYPE_DATE_DASHES),
00076 
00077                     SYNC_POOMTASKS_DUEDATE                              => array (  self::STREAMER_VAR      => "duedate",
00078                                                                                     self::STREAMER_TYPE     => self::STREAMER_TYPE_DATE_DASHES),
00079 
00080                     SYNC_POOMTASKS_UTCSTARTDATE                         => array (  self::STREAMER_VAR      => "utcstartdate",
00081                                                                                     self::STREAMER_TYPE     => self::STREAMER_TYPE_DATE_DASHES),
00082 
00083                     SYNC_POOMTASKS_UTCDUEDATE                           => array (  self::STREAMER_VAR      => "utcduedate",
00084                                                                                     self::STREAMER_TYPE     => self::STREAMER_TYPE_DATE_DASHES),
00085 
00086                     SYNC_POOMTASKS_REMINDERSET                          => array (  self::STREAMER_VAR      => "reminderset"),
00087                     SYNC_POOMTASKS_REMINDERTIME                         => array (  self::STREAMER_VAR      => "remindertime",
00088                                                                                     self::STREAMER_TYPE     => self::STREAMER_TYPE_DATE_DASHES),
00089 
00090                     SYNC_POOMTASKS_ORDINALDATE                          => array (  self::STREAMER_VAR      => "ordinaldate",
00091                                                                                     self::STREAMER_TYPE     => self::STREAMER_TYPE_DATE_DASHES),
00092 
00093                     SYNC_POOMTASKS_SUBORDINALDATE                       => array (  self::STREAMER_VAR      => "subordinaldate"),
00094         );
00095 
00096         parent::SyncObject($mapping);
00097     }
00098 }
00099 ?>