当前位置: 首页>>代码示例>>PHP>>正文


PHP SyncObject类代码示例

本文整理汇总了PHP中SyncObject的典型用法代码示例。如果您正苦于以下问题:PHP SyncObject类的具体用法?PHP SyncObject怎么用?PHP SyncObject使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


在下文中一共展示了SyncObject类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: SyncBaseBody

 function SyncBaseBody()
 {
     $mapping = array(SYNC_AIRSYNCBASE_TYPE => array(self::STREAMER_VAR => "type"), SYNC_AIRSYNCBASE_ESTIMATEDDATASIZE => array(self::STREAMER_VAR => "estimatedDataSize"), SYNC_AIRSYNCBASE_TRUNCATED => array(self::STREAMER_VAR => "truncated"), SYNC_AIRSYNCBASE_DATA => array(self::STREAMER_VAR => "data"));
     if (Request::GetProtocolVersion() >= 14.0) {
         $mapping[SYNC_AIRSYNCBASE_PREVIEW] = array(self::STREAMER_VAR => "preview");
     }
     parent::SyncObject($mapping);
 }
开发者ID:narikenabilli,项目名称:spiritualtablet,代码行数:8,代码来源:syncbasebody.php

示例2: SyncAttendee

 function SyncAttendee()
 {
     $mapping = array(SYNC_POOMCAL_EMAIL => array(self::STREAMER_VAR => "email", self::STREAMER_CHECKS => array(self::STREAMER_CHECK_REQUIRED => self::STREAMER_CHECK_SETEMPTY)), SYNC_POOMCAL_NAME => array(self::STREAMER_VAR => "name", self::STREAMER_CHECKS => array(self::STREAMER_CHECK_REQUIRED => self::STREAMER_CHECK_SETEMPTY)));
     if (Request::GetProtocolVersion() >= 12.0) {
         $mapping[SYNC_POOMCAL_ATTENDEESTATUS] = array(self::STREAMER_VAR => "attendeestatus");
         $mapping[SYNC_POOMCAL_ATTENDEETYPE] = array(self::STREAMER_VAR => "attendeetype");
     }
     parent::SyncObject($mapping);
 }
开发者ID:alanturing1,项目名称:Z-Push-contrib,代码行数:9,代码来源:syncattendee.php

示例3: SyncUserInformation

 public function SyncUserInformation()
 {
     $mapping = array(SYNC_SETTINGS_ACCOUNTID => array(self::STREAMER_VAR => "accountid"), SYNC_SETTINGS_ACCOUNTNAME => array(self::STREAMER_VAR => "accountname"), SYNC_SETTINGS_EMAILADDRESSES => array(self::STREAMER_VAR => "emailaddresses", self::STREAMER_ARRAY => SYNC_SETTINGS_SMPTADDRESS), SYNC_SETTINGS_PROP_STATUS => array(self::STREAMER_VAR => "Status", self::STREAMER_TYPE => self::STREAMER_TYPE_IGNORE));
     if (Request::GetProtocolVersion() >= 12.1) {
         $mapping[SYNC_SETTINGS_USERDISPLAYNAME] = array(self::STREAMER_VAR => "userdisplayname");
     }
     if (Request::GetProtocolVersion() >= 14.0) {
         $mapping[SYNC_SETTINGS_SENDDISABLED] = array(self::STREAMER_VAR => "senddisabled");
     }
     parent::SyncObject($mapping);
 }
开发者ID:alanturing1,项目名称:Z-Push-contrib,代码行数:11,代码来源:syncuserinformation.php

示例4: SyncDeviceInformation

 public function SyncDeviceInformation()
 {
     $mapping = array(SYNC_SETTINGS_MODEL => array(self::STREAMER_VAR => "model"), SYNC_SETTINGS_IMEI => array(self::STREAMER_VAR => "imei"), SYNC_SETTINGS_FRIENDLYNAME => array(self::STREAMER_VAR => "friendlyname"), SYNC_SETTINGS_OS => array(self::STREAMER_VAR => "os"), SYNC_SETTINGS_OSLANGUAGE => array(self::STREAMER_VAR => "oslanguage"), SYNC_SETTINGS_PHONENUMBER => array(self::STREAMER_VAR => "phonenumber"), SYNC_SETTINGS_PROP_STATUS => array(self::STREAMER_VAR => "Status", self::STREAMER_TYPE => self::STREAMER_TYPE_IGNORE));
     if (Request::GetProtocolVersion() >= 12.1) {
         $mapping[SYNC_SETTINGS_USERAGENT] = array(self::STREAMER_VAR => "useragent");
     }
     if (Request::GetProtocolVersion() >= 14.0) {
         $mapping[SYNC_SETTINGS_MOBILEOPERATOR] = array(self::STREAMER_VAR => "mobileoperator");
         $mapping[SYNC_SETTINGS_ENABLEOUTBOUNDSMS] = array(self::STREAMER_VAR => "enableoutboundsms");
     }
     parent::SyncObject($mapping);
 }
开发者ID:karanikn,项目名称:php-addressbook,代码行数:12,代码来源:syncdeviceinformation.php

示例5: Check

 /**
  * Method checks if the object has the minimum of required parameters
  * and fullfills semantic dependencies
  *
  * This overloads the general check() with special checks to be executed
  *
  * @param boolean   $logAsDebug     (opt) default is false, so messages are logged in WARN log level
  *
  * @access public
  * @return boolean
  */
 public function Check($logAsDebug = false)
 {
     $ret = parent::Check($logAsDebug);
     if (!$ret) {
         return false;
     }
     if (isset($this->start) && isset($this->until) && $this->until < $this->start) {
         ZLog::Write(LOGLEVEL_WARN, sprintf("SyncObject->Check(): Unmet condition in object from type %s: parameter 'start' is HIGHER than 'until'. Check failed!", get_class($this)));
         return false;
     }
     return true;
 }
开发者ID:netconstructor,项目名称:sogosync,代码行数:23,代码来源:synctaskrecurrence.php

示例6: Check

 /**
  * Method checks if the object has the minimum of required parameters
  * and fullfills semantic dependencies
  *
  * This overloads the general check() with special checks to be executed
  *
  * @param boolean   $logAsDebug     (opt) default is false, so messages are logged in WARN log level
  *
  * @access public
  * @return boolean
  */
 public function Check($logAsDebug = false)
 {
     $ret = parent::Check($logAsDebug);
     // semantic checks general "turn off switch"
     if (defined("DO_SEMANTIC_CHECKS") && DO_SEMANTIC_CHECKS === false) {
         return $ret;
     }
     if (!$ret) {
         return false;
     }
     if (isset($this->start) && isset($this->until) && $this->until < $this->start) {
         ZLog::Write(LOGLEVEL_WARN, sprintf("SyncObject->Check(): Unmet condition in object from type %s: parameter 'start' is HIGHER than 'until'. Check failed!", get_class($this)));
         return false;
     }
     return true;
 }
开发者ID:narikenabilli,项目名称:spiritualtablet,代码行数:27,代码来源:synctaskrecurrence.php

示例7: importMessage

 /**
  * Imports a message
  *
  * @param SyncParameters    $spa            SyncParameters object
  * @param array             $actiondata     Actiondata array
  * @param integer           $todo           WBXML flag indicating how message should be imported.
  *                                          Valid values: SYNC_ADD, SYNC_MODIFY, SYNC_REMOVE
  * @param SyncObject        $message        SyncObject message to be imported
  * @param string            $clientid       Client message identifier
  * @param string            $serverid       Server message identifier
  * @param string            $foldertype     On sms sync, this says "SMS", else false
  * @param integer           $messageCount   Counter of already imported messages
  *
  * @access private
  * @throws StatusException  in case the importer is not available
  * @return -                Message related status are returned in the actiondata.
  */
 private function importMessage($spa, &$actiondata, $todo, $message, $clientid, $serverid, $foldertype, $messageCount)
 {
     // the importer needs to be available!
     if ($this->importer == false) {
         throw StatusException("Sync->importMessage(): importer not available", SYNC_STATUS_SERVERERROR);
     }
     // mark this state as used, e.g. for HeartBeat
     self::$deviceManager->SetHeartbeatStateIntegrity($spa->GetFolderId(), $spa->GetUuid(), $spa->GetUuidCounter());
     // Detect incoming loop
     // messages which were created/removed before will not have the same action executed again
     // if a message is edited we perform this action "again", as the message could have been changed on the mobile in the meantime
     $ignoreMessage = false;
     if ($actiondata["failstate"]) {
         // message was ADDED before, do NOT add it again
         if ($todo == SYNC_ADD && isset($actiondata["failstate"]["clientids"][$clientid])) {
             $ignoreMessage = true;
             // make sure no messages are sent back
             self::$deviceManager->SetWindowSize($spa->GetFolderId(), 0);
             $actiondata["clientids"][$clientid] = $actiondata["failstate"]["clientids"][$clientid];
             $actiondata["statusids"][$clientid] = $actiondata["failstate"]["statusids"][$clientid];
             ZLog::Write(LOGLEVEL_WARN, sprintf("Mobile loop detected! Incoming new message '%s' was created on the server before. Replying with known new server id: %s", $clientid, $actiondata["clientids"][$clientid]));
         }
         // message was REMOVED before, do NOT attemp to remove it again
         if ($todo == SYNC_REMOVE && isset($actiondata["failstate"]["removeids"][$serverid])) {
             $ignoreMessage = true;
             // make sure no messages are sent back
             self::$deviceManager->SetWindowSize($spa->GetFolderId(), 0);
             $actiondata["removeids"][$serverid] = $actiondata["failstate"]["removeids"][$serverid];
             $actiondata["statusids"][$serverid] = $actiondata["failstate"]["statusids"][$serverid];
             ZLog::Write(LOGLEVEL_WARN, sprintf("Mobile loop detected! Message '%s' was deleted by the mobile before. Replying with known status: %s", $clientid, $actiondata["statusids"][$serverid]));
         }
     }
     if (!$ignoreMessage) {
         switch ($todo) {
             case SYNC_MODIFY:
                 self::$topCollector->AnnounceInformation(sprintf("Saving modified message %d", $messageCount));
                 try {
                     $actiondata["modifyids"][] = $serverid;
                     // ignore sms messages
                     if ($foldertype == "SMS" || stripos($serverid, self::ZPUSHIGNORESMS) !== false) {
                         ZLog::Write(LOGLEVEL_DEBUG, "SMS sync are not supported. Ignoring message.");
                         // TODO we should update the SMS
                         $actiondata["statusids"][$serverid] = SYNC_STATUS_SUCCESS;
                     } else {
                         if (!$message instanceof SyncObject || !$message->Check(true)) {
                             $actiondata["statusids"][$serverid] = SYNC_STATUS_CLIENTSERVERCONVERSATIONERROR;
                         } else {
                             if (isset($message->read)) {
                                 // Currently, 'read' is only sent by the PDA when it is ONLY setting the read flag.
                                 $this->importer->ImportMessageReadFlag($serverid, $message->read);
                             } elseif (!isset($message->flag)) {
                                 $this->importer->ImportMessageChange($serverid, $message);
                             }
                             // email todoflags - some devices send todos flags together with read flags,
                             // so they have to be handled separately
                             if (isset($message->flag)) {
                                 $this->importer->ImportMessageChange($serverid, $message);
                             }
                             $actiondata["statusids"][$serverid] = SYNC_STATUS_SUCCESS;
                         }
                     }
                 } catch (StatusException $stex) {
                     $actiondata["statusids"][$serverid] = $stex->getCode();
                 }
                 break;
             case SYNC_ADD:
                 self::$topCollector->AnnounceInformation(sprintf("Creating new message from mobile %d", $messageCount));
                 try {
                     // ignore sms messages
                     if ($foldertype == "SMS") {
                         ZLog::Write(LOGLEVEL_DEBUG, "SMS sync are not supported. Ignoring message.");
                         // TODO we should create the SMS
                         // return a fake serverid which we can identify later
                         $actiondata["clientids"][$clientid] = self::ZPUSHIGNORESMS . $clientid;
                         $actiondata["statusids"][$clientid] = SYNC_STATUS_SUCCESS;
                     } else {
                         if (!$message instanceof SyncObject || !$message->Check(true)) {
                             $actiondata["clientids"][$clientid] = false;
                             $actiondata["statusids"][$clientid] = SYNC_STATUS_CLIENTSERVERCONVERSATIONERROR;
                         } else {
                             $actiondata["clientids"][$clientid] = false;
                             $actiondata["clientids"][$clientid] = $this->importer->ImportMessageChange(false, $message);
                             $actiondata["statusids"][$clientid] = SYNC_STATUS_SUCCESS;
//.........这里部分代码省略.........
开发者ID:SvKn,项目名称:Z-Push-contrib,代码行数:101,代码来源:sync.php

示例8: SyncRRPicture

 public function SyncRRPicture()
 {
     $mapping = array(SYNC_RESOLVERECIPIENTS_MAXSIZE => array(self::STREAMER_VAR => "maxsize"), SYNC_RESOLVERECIPIENTS_MAXPICTURES => array(self::STREAMER_VAR => "maxpictures"), SYNC_RESOLVERECIPIENTS_STATUS => array(self::STREAMER_VAR => "status"), SYNC_RESOLVERECIPIENTS_DATA => array(self::STREAMER_VAR => "data"));
     parent::SyncObject($mapping);
 }
开发者ID:SvKn,项目名称:Z-Push-contrib,代码行数:5,代码来源:syncresolverecipientspicture.php

示例9: SyncMailFlags

 function SyncMailFlags()
 {
     $mapping = array(SYNC_POOMTASKS_SUBJECT => array(self::STREAMER_VAR => "subject"), SYNC_POOMMAIL_FLAGSTATUS => array(self::STREAMER_VAR => "flagstatus"), SYNC_POOMMAIL_FLAGTYPE => array(self::STREAMER_VAR => "flagtype"), SYNC_POOMTASKS_DATECOMPLETED => array(self::STREAMER_VAR => "datecompleted", self::STREAMER_TYPE => self::STREAMER_TYPE_DATE_DASHES), SYNC_POOMMAIL_COMPLETETIME => array(self::STREAMER_VAR => "completetime", self::STREAMER_TYPE => self::STREAMER_TYPE_DATE_DASHES), SYNC_POOMTASKS_STARTDATE => array(self::STREAMER_VAR => "startdate", self::STREAMER_TYPE => self::STREAMER_TYPE_DATE_DASHES), SYNC_POOMTASKS_DUEDATE => array(self::STREAMER_VAR => "duedate", self::STREAMER_TYPE => self::STREAMER_TYPE_DATE_DASHES), SYNC_POOMTASKS_UTCSTARTDATE => array(self::STREAMER_VAR => "utcstartdate", self::STREAMER_TYPE => self::STREAMER_TYPE_DATE_DASHES), SYNC_POOMTASKS_UTCDUEDATE => array(self::STREAMER_VAR => "utcduedate", self::STREAMER_TYPE => self::STREAMER_TYPE_DATE_DASHES), SYNC_POOMTASKS_REMINDERSET => array(self::STREAMER_VAR => "reminderset"), SYNC_POOMTASKS_REMINDERTIME => array(self::STREAMER_VAR => "remindertime", self::STREAMER_TYPE => self::STREAMER_TYPE_DATE_DASHES), SYNC_POOMTASKS_ORDINALDATE => array(self::STREAMER_VAR => "ordinaldate", self::STREAMER_TYPE => self::STREAMER_TYPE_DATE_DASHES), SYNC_POOMTASKS_SUBORDINALDATE => array(self::STREAMER_VAR => "subordinaldate"));
     parent::SyncObject($mapping);
 }
开发者ID:narikenabilli,项目名称:spiritualtablet,代码行数:5,代码来源:syncmailflags.php

示例10: Check

 /**
  * Method checks if the object has the minimum of required parameters
  * and fullfills semantic dependencies
  *
  * This overloads the general check() with special checks to be executed
  *
  * @param boolean   $logAsDebug     (opt) default is false, so messages are logged in WARN log level
  *
  * @access public
  * @return boolean
  */
 public function Check($logAsDebug = false)
 {
     $ret = parent::Check($logAsDebug);
     // semantic checks general "turn off switch"
     if (defined("DO_SEMANTIC_CHECKS") && DO_SEMANTIC_CHECKS === false) {
         return $ret;
     }
     if (!$ret) {
         return false;
     }
     if (isset($this->startdate) && isset($this->duedate) && $this->duedate < $this->startdate) {
         ZLog::Write(LOGLEVEL_WARN, sprintf("SyncObject->Check(): Unmet condition in object from type %s: parameter 'startdate' is HIGHER than 'duedate'. Check failed!", get_class($this)));
         return false;
     }
     if (isset($this->utcstartdate) && isset($this->utcduedate) && $this->utcduedate < $this->utcstartdate) {
         ZLog::Write(LOGLEVEL_WARN, sprintf("SyncObject->Check(): Unmet condition in object from type %s: parameter 'utcstartdate' is HIGHER than 'utcduedate'. Check failed!", get_class($this)));
         return false;
     }
     if (isset($this->duedate) && $this->duedate != Utils::getDayStartOfTimestamp($this->duedate)) {
         $this->duedate = Utils::getDayStartOfTimestamp($this->duedate);
         ZLog::Write(LOGLEVEL_DEBUG, "Set the due time to the start of the day");
         if (isset($this->startdate) && $this->duedate < $this->startdate) {
             $this->startdate = Utils::getDayStartOfTimestamp($this->startdate);
             ZLog::Write(LOGLEVEL_DEBUG, "Set the start date to the start of the day");
         }
     }
     return true;
 }
开发者ID:SvKn,项目名称:Z-Push-contrib,代码行数:39,代码来源:synctask.php

示例11: array

 function __construct()
 {
     $mapping = array(SYNC_AIRSYNCBASE_TYPE => array(self::STREAMER_VAR => "type"), SYNC_AIRSYNCBASE_ESTIMATEDDATASIZE => array(self::STREAMER_VAR => "estimatedDataSize"), SYNC_AIRSYNCBASE_TRUNCATED => array(self::STREAMER_VAR => "truncated"), SYNC_AIRSYNCBASE_DATA => array(self::STREAMER_VAR => "data", self::STREAMER_TYPE => self::STREAMER_TYPE_STREAM_ASPLAIN, self::STREAMER_RONOTIFY => true));
     if (Request::GetProtocolVersion() >= 14.0) {
         $mapping[SYNC_AIRSYNCBASE_PREVIEW] = array(self::STREAMER_VAR => "preview");
     }
     parent::__construct($mapping);
 }
开发者ID:EGroupware,项目名称:z-push,代码行数:8,代码来源:syncbasebody.php

示例12: array

 function __construct()
 {
     $mapping = array(SYNC_POOMMAIL_ALLDAYEVENT => array(self::STREAMER_VAR => "alldayevent", self::STREAMER_CHECKS => array(self::STREAMER_CHECK_ZEROORONE => self::STREAMER_CHECK_SETZERO)), SYNC_POOMMAIL_STARTTIME => array(self::STREAMER_VAR => "starttime", self::STREAMER_TYPE => self::STREAMER_TYPE_DATE_DASHES, self::STREAMER_CHECKS => array(self::STREAMER_CHECK_REQUIRED => self::STREAMER_CHECK_SETZERO, self::STREAMER_CHECK_CMPLOWER => SYNC_POOMMAIL_ENDTIME)), SYNC_POOMMAIL_DTSTAMP => array(self::STREAMER_VAR => "dtstamp", self::STREAMER_TYPE => self::STREAMER_TYPE_DATE_DASHES, self::STREAMER_CHECKS => array(self::STREAMER_CHECK_REQUIRED => self::STREAMER_CHECK_SETZERO)), SYNC_POOMMAIL_ENDTIME => array(self::STREAMER_VAR => "endtime", self::STREAMER_TYPE => self::STREAMER_TYPE_DATE_DASHES, self::STREAMER_CHECKS => array(self::STREAMER_CHECK_REQUIRED => self::STREAMER_CHECK_SETONE, self::STREAMER_CHECK_CMPHIGHER => SYNC_POOMMAIL_STARTTIME)), SYNC_POOMMAIL_INSTANCETYPE => array(self::STREAMER_VAR => "instancetype", self::STREAMER_CHECKS => array(self::STREAMER_CHECK_REQUIRED => self::STREAMER_CHECK_SETZERO, self::STREAMER_CHECK_ONEVALUEOF => array(0, 1, 2, 3))), SYNC_POOMMAIL_LOCATION => array(self::STREAMER_VAR => "location"), SYNC_POOMMAIL_ORGANIZER => array(self::STREAMER_VAR => "organizer", self::STREAMER_CHECKS => array(self::STREAMER_CHECK_REQUIRED => self::STREAMER_CHECK_SETEMPTY)), SYNC_POOMMAIL_RECURRENCEID => array(self::STREAMER_VAR => "recurrenceid", self::STREAMER_TYPE => self::STREAMER_TYPE_DATE_DASHES), SYNC_POOMMAIL_REMINDER => array(self::STREAMER_VAR => "reminder", self::STREAMER_CHECKS => array(self::STREAMER_CHECK_CMPHIGHER => -1)), SYNC_POOMMAIL_RESPONSEREQUESTED => array(self::STREAMER_VAR => "responserequested"), SYNC_POOMMAIL_RECURRENCES => array(self::STREAMER_VAR => "recurrences", self::STREAMER_TYPE => "SyncMeetingRequestRecurrence", self::STREAMER_ARRAY => SYNC_POOMMAIL_RECURRENCE), SYNC_POOMMAIL_SENSITIVITY => array(self::STREAMER_VAR => "sensitivity", self::STREAMER_CHECKS => array(self::STREAMER_CHECK_REQUIRED => self::STREAMER_CHECK_SETZERO, self::STREAMER_CHECK_ONEVALUEOF => array(0, 1, 2, 3))), SYNC_POOMMAIL_BUSYSTATUS => array(self::STREAMER_VAR => "busystatus", self::STREAMER_CHECKS => array(self::STREAMER_CHECK_REQUIRED => self::STREAMER_CHECK_SETTWO, self::STREAMER_CHECK_ONEVALUEOF => array(0, 1, 2, 3, 4))), SYNC_POOMMAIL_TIMEZONE => array(self::STREAMER_VAR => "timezone", 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)))), SYNC_POOMMAIL_GLOBALOBJID => array(self::STREAMER_VAR => "globalobjid"));
     if (Request::GetProtocolVersion() >= 14.0) {
         $mapping[SYNC_POOMMAIL_DISALLOWNEWTIMEPROPOSAL] = array(self::STREAMER_VAR => "disallownewtimeproposal", self::STREAMER_CHECKS => array(self::STREAMER_CHECK_REQUIRED => self::STREAMER_CHECK_SETZERO, self::STREAMER_CHECK_ONEVALUEOF => array(0, 1)));
     }
     parent::__construct($mapping);
 }
开发者ID:EGroupware,项目名称:z-push,代码行数:8,代码来源:syncmeetingrequest.php

示例13: array

 function __construct()
 {
     $mapping = array(SYNC_POOMMAIL_TYPE => array(self::STREAMER_VAR => "type", self::STREAMER_CHECKS => array(self::STREAMER_CHECK_REQUIRED => self::STREAMER_CHECK_SETZERO, self::STREAMER_CHECK_ONEVALUEOF => array(0, 1, 2, 3, 5, 6))), SYNC_POOMMAIL_UNTIL => array(self::STREAMER_VAR => "until", self::STREAMER_TYPE => self::STREAMER_TYPE_DATE), SYNC_POOMMAIL_OCCURRENCES => array(self::STREAMER_VAR => "occurrences", self::STREAMER_CHECKS => array(self::STREAMER_CHECK_CMPHIGHER => 0, self::STREAMER_CHECK_CMPLOWER => 1000)), SYNC_POOMMAIL_INTERVAL => array(self::STREAMER_VAR => "interval", self::STREAMER_CHECKS => array(self::STREAMER_CHECK_CMPHIGHER => 0, self::STREAMER_CHECK_CMPLOWER => 1000)), SYNC_POOMMAIL_DAYOFWEEK => array(self::STREAMER_VAR => "dayofweek", self::STREAMER_CHECKS => array(self::STREAMER_CHECK_CMPHIGHER => 0, self::STREAMER_CHECK_CMPLOWER => 128)), SYNC_POOMMAIL_DAYOFMONTH => array(self::STREAMER_VAR => "dayofmonth", self::STREAMER_CHECKS => array(self::STREAMER_CHECK_CMPHIGHER => 0, self::STREAMER_CHECK_CMPLOWER => 32)), SYNC_POOMMAIL_WEEKOFMONTH => array(self::STREAMER_VAR => "weekofmonth", self::STREAMER_CHECKS => array(self::STREAMER_CHECK_ONEVALUEOF => array(1, 2, 3, 4, 5))), SYNC_POOMMAIL_MONTHOFYEAR => array(self::STREAMER_VAR => "monthofyear", self::STREAMER_CHECKS => array(self::STREAMER_CHECK_ONEVALUEOF => array(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12))));
     if (Request::GetProtocolVersion() >= 14.0) {
         $mapping[SYNC_POOMMAIL2_CALENDARTYPE] = array(self::STREAMER_VAR => "calendartype");
     }
     parent::__construct($mapping);
 }
开发者ID:EGroupware,项目名称:z-push,代码行数:8,代码来源:syncmeetingrequestrecurrence.php

示例14: array

 function __construct()
 {
     $mapping = array(SYNC_POOMCAL_EMAIL => array(self::STREAMER_VAR => "email", self::STREAMER_CHECKS => array(self::STREAMER_CHECK_REQUIRED => self::STREAMER_CHECK_SETEMPTY), self::STREAMER_RONOTIFY => true), SYNC_POOMCAL_NAME => array(self::STREAMER_VAR => "name", self::STREAMER_CHECKS => array(self::STREAMER_CHECK_REQUIRED => self::STREAMER_CHECK_SETEMPTY), self::STREAMER_RONOTIFY => true));
     if (Request::GetProtocolVersion() >= 12.0) {
         $mapping[SYNC_POOMCAL_ATTENDEESTATUS] = array(self::STREAMER_VAR => "attendeestatus", self::STREAMER_RONOTIFY => true);
         $mapping[SYNC_POOMCAL_ATTENDEETYPE] = array(self::STREAMER_VAR => "attendeetype", self::STREAMER_RONOTIFY => true);
     }
     parent::__construct($mapping);
 }
开发者ID:EGroupware,项目名称:z-push,代码行数:9,代码来源:syncattendee.php

示例15: __construct

 public function __construct()
 {
     $mapping = array();
     if (Request::GetProtocolVersion() >= 14.1) {
         $mapping[SYNC_RESOLVERECIPIENTS_MAXSIZE] = array(self::STREAMER_VAR => "maxsize");
         $mapping[SYNC_RESOLVERECIPIENTS_MAXPICTURES] = array(self::STREAMER_VAR => "maxpictures");
         $mapping[SYNC_RESOLVERECIPIENTS_STATUS] = array(self::STREAMER_VAR => "status");
         $mapping[SYNC_RESOLVERECIPIENTS_DATA] = array(self::STREAMER_VAR => "data", self::STREAMER_TYPE => self::STREAMER_TYPE_STREAM_ASBASE64);
     }
     parent::__construct($mapping);
 }
开发者ID:EGroupware,项目名称:z-push,代码行数:11,代码来源:syncresolverecipientspicture.php


注:本文中的SyncObject类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。