本文整理汇总了PHP中SyncObject::SyncObject方法的典型用法代码示例。如果您正苦于以下问题:PHP SyncObject::SyncObject方法的具体用法?PHP SyncObject::SyncObject怎么用?PHP SyncObject::SyncObject使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类SyncObject
的用法示例。
在下文中一共展示了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);
}
示例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);
}
示例3: SyncTask
function SyncTask()
{
$mapping = array(SYNC_POOMTASKS_BODY => array(self::STREAMER_VAR => "body"), SYNC_POOMTASKS_COMPLETE => array(self::STREAMER_VAR => "complete", self::STREAMER_CHECKS => array(self::STREAMER_CHECK_REQUIRED => self::STREAMER_CHECK_SETZERO, self::STREAMER_CHECK_ZEROORONE => self::STREAMER_CHECK_SETZERO)), SYNC_POOMTASKS_DATECOMPLETED => array(self::STREAMER_VAR => "datecompleted", 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_UTCDUEDATE => array(self::STREAMER_VAR => "utcduedate", self::STREAMER_TYPE => self::STREAMER_TYPE_DATE_DASHES), SYNC_POOMTASKS_IMPORTANCE => array(self::STREAMER_VAR => "importance", self::STREAMER_CHECKS => array(self::STREAMER_CHECK_REQUIRED => self::STREAMER_CHECK_SETONE, self::STREAMER_CHECK_ONEVALUEOF => array(0, 1, 2))), SYNC_POOMTASKS_RECURRENCE => array(self::STREAMER_VAR => "recurrence", self::STREAMER_TYPE => "SyncTaskRecurrence"), SYNC_POOMTASKS_REGENERATE => array(self::STREAMER_VAR => "regenerate"), SYNC_POOMTASKS_DEADOCCUR => array(self::STREAMER_VAR => "deadoccur"), SYNC_POOMTASKS_REMINDERSET => array(self::STREAMER_VAR => "reminderset", self::STREAMER_CHECKS => array(self::STREAMER_CHECK_REQUIRED => self::STREAMER_CHECK_SETZERO, self::STREAMER_CHECK_ZEROORONE => self::STREAMER_CHECK_SETZERO)), SYNC_POOMTASKS_REMINDERTIME => array(self::STREAMER_VAR => "remindertime", self::STREAMER_TYPE => self::STREAMER_TYPE_DATE_DASHES), SYNC_POOMTASKS_SENSITIVITY => array(self::STREAMER_VAR => "sensitivity", self::STREAMER_CHECKS => array(self::STREAMER_CHECK_ONEVALUEOF => array(0, 1, 2, 3))), SYNC_POOMTASKS_STARTDATE => array(self::STREAMER_VAR => "startdate", 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_SUBJECT => array(self::STREAMER_VAR => "subject"), SYNC_POOMTASKS_RTF => array(self::STREAMER_VAR => "rtf"), SYNC_POOMTASKS_CATEGORIES => array(self::STREAMER_VAR => "categories", self::STREAMER_ARRAY => SYNC_POOMTASKS_CATEGORY));
if (Request::GetProtocolVersion() >= 12.0) {
$mapping[SYNC_AIRSYNCBASE_BODY] = array(self::STREAMER_VAR => "asbody", self::STREAMER_TYPE => "SyncBaseBody");
//unset these properties because airsyncbase body and attachments will be used instead
unset($mapping[SYNC_POOMTASKS_BODY]);
}
parent::SyncObject($mapping);
}
示例4: 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);
}
示例5: 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);
}
示例6: SyncResolveRecipients
public function SyncResolveRecipients()
{
$mapping = array(SYNC_RESOLVERECIPIENTS_TO => array(self::STREAMER_VAR => "to", self::STREAMER_ARRAY => SYNC_RESOLVERECIPIENTS_TO, self::STREAMER_PROP => self::STREAMER_TYPE_NO_CONTAINER), SYNC_RESOLVERECIPIENTS_OPTIONS => array(self::STREAMER_VAR => "options", self::STREAMER_TYPE => "SyncRROptions"), SYNC_RESOLVERECIPIENTS_STATUS => array(self::STREAMER_VAR => "status"), SYNC_RESOLVERECIPIENTS_RECIPIENTCOUNT => array(self::STREAMER_VAR => "recipientcount"), SYNC_RESOLVERECIPIENTS_RECIPIENT => array(self::STREAMER_VAR => "recipient", self::STREAMER_TYPE => "SyncResolveRecipient"));
parent::SyncObject($mapping);
}
示例7: SyncDevicePassword
public function SyncDevicePassword()
{
$mapping = array(SYNC_SETTINGS_DEVICEPW => array(self::STREAMER_VAR => "password"), SYNC_SETTINGS_PROP_STATUS => array(self::STREAMER_VAR => "Status", self::STREAMER_TYPE => self::STREAMER_TYPE_IGNORE));
parent::SyncObject($mapping);
}
示例8: SyncValidateCert
public function SyncValidateCert()
{
$mapping = array(SYNC_VALIDATECERT_CERTIFICATECHAIN => array(self::STREAMER_VAR => "certificatechain", self::STREAMER_ARRAY => SYNC_VALIDATECERT_CERTIFICATE), SYNC_VALIDATECERT_CERTIFICATES => array(self::STREAMER_VAR => "certificates", self::STREAMER_ARRAY => SYNC_VALIDATECERT_CERTIFICATE), SYNC_VALIDATECERT_CHECKCRL => array(self::STREAMER_VAR => "checkCRL"), SYNC_SETTINGS_PROP_STATUS => array(self::STREAMER_VAR => "Status", self::STREAMER_TYPE => self::STREAMER_TYPE_IGNORE));
parent::SyncObject($mapping);
}
示例9: SyncMail
function SyncMail()
{
$mapping = array(SYNC_POOMMAIL_TO => array(self::STREAMER_VAR => "to", self::STREAMER_TYPE => self::STREAMER_TYPE_COMMA_SEPARATED, self::STREAMER_CHECKS => array(self::STREAMER_CHECK_LENGTHMAX => 32768, self::STREAMER_CHECK_EMAIL => "")), SYNC_POOMMAIL_CC => array(self::STREAMER_VAR => "cc", self::STREAMER_TYPE => self::STREAMER_TYPE_COMMA_SEPARATED, self::STREAMER_CHECKS => array(self::STREAMER_CHECK_LENGTHMAX => 32768, self::STREAMER_CHECK_EMAIL => "")), SYNC_POOMMAIL_FROM => array(self::STREAMER_VAR => "from", self::STREAMER_CHECKS => array(self::STREAMER_CHECK_LENGTHMAX => 32768, self::STREAMER_CHECK_EMAIL => "")), SYNC_POOMMAIL_SUBJECT => array(self::STREAMER_VAR => "subject"), SYNC_POOMMAIL_THREADTOPIC => array(self::STREAMER_VAR => "threadtopic"), SYNC_POOMMAIL_DATERECEIVED => array(self::STREAMER_VAR => "datereceived", self::STREAMER_TYPE => self::STREAMER_TYPE_DATE_DASHES), SYNC_POOMMAIL_DISPLAYTO => array(self::STREAMER_VAR => "displayto"), SYNC_POOMMAIL_IMPORTANCE => array(self::STREAMER_VAR => "importance", self::STREAMER_CHECKS => array(self::STREAMER_CHECK_REQUIRED => self::STREAMER_CHECK_SETONE, self::STREAMER_CHECK_ONEVALUEOF => array(0, 1, 2))), SYNC_POOMMAIL_READ => array(self::STREAMER_VAR => "read", self::STREAMER_CHECKS => array(self::STREAMER_CHECK_ONEVALUEOF => array(0, 1))), SYNC_POOMMAIL_ATTACHMENTS => array(self::STREAMER_VAR => "attachments", self::STREAMER_TYPE => "SyncAttachment", self::STREAMER_ARRAY => SYNC_POOMMAIL_ATTACHMENT), SYNC_POOMMAIL_MIMETRUNCATED => array(self::STREAMER_VAR => "mimetruncated", self::STREAMER_CHECKS => array(self::STREAMER_CHECK_ZEROORONE => self::STREAMER_CHECK_SETZERO)), SYNC_POOMMAIL_MIMEDATA => array(self::STREAMER_VAR => "mimedata"), SYNC_POOMMAIL_MIMESIZE => array(self::STREAMER_VAR => "mimesize", self::STREAMER_CHECKS => array(self::STREAMER_CHECK_CMPHIGHER => -1)), SYNC_POOMMAIL_BODYTRUNCATED => array(self::STREAMER_VAR => "bodytruncated", self::STREAMER_CHECKS => array(self::STREAMER_CHECK_ZEROORONE => self::STREAMER_CHECK_SETZERO)), SYNC_POOMMAIL_BODYSIZE => array(self::STREAMER_VAR => "bodysize", self::STREAMER_CHECKS => array(self::STREAMER_CHECK_CMPHIGHER => -1)), SYNC_POOMMAIL_BODY => array(self::STREAMER_VAR => "body"), SYNC_POOMMAIL_MESSAGECLASS => array(self::STREAMER_VAR => "messageclass"), SYNC_POOMMAIL_MEETINGREQUEST => array(self::STREAMER_VAR => "meetingrequest", self::STREAMER_TYPE => "SyncMeetingRequest"), SYNC_POOMMAIL_REPLY_TO => array(self::STREAMER_VAR => "reply_to", self::STREAMER_TYPE => self::STREAMER_TYPE_SEMICOLON_SEPARATED, self::STREAMER_CHECKS => array(self::STREAMER_CHECK_EMAIL => "")));
if (Request::GetProtocolVersion() >= 2.5) {
$mapping[SYNC_POOMMAIL_INTERNETCPID] = array(self::STREAMER_VAR => "internetcpid");
}
if (Request::GetProtocolVersion() >= 12.0) {
$mapping[SYNC_AIRSYNCBASE_BODY] = array(self::STREAMER_VAR => "asbody", self::STREAMER_TYPE => "SyncBaseBody");
$mapping[SYNC_AIRSYNCBASE_ATTACHMENTS] = array(self::STREAMER_VAR => "asattachments", self::STREAMER_TYPE => "SyncBaseAttachment", self::STREAMER_ARRAY => SYNC_AIRSYNCBASE_ATTACHMENT);
$mapping[SYNC_POOMMAIL_CONTENTCLASS] = array(self::STREAMER_VAR => "contentclass", self::STREAMER_CHECKS => array(self::STREAMER_CHECK_ONEVALUEOF => array(DEFAULT_EMAIL_CONTENTCLASS, DEFAULT_CALENDAR_CONTENTCLASS)));
$mapping[SYNC_POOMMAIL_FLAG] = array(self::STREAMER_VAR => "flag", self::STREAMER_TYPE => "SyncMailFlags", self::STREAMER_PROP => self::STREAMER_TYPE_SEND_EMPTY);
$mapping[SYNC_AIRSYNCBASE_NATIVEBODYTYPE] = array(self::STREAMER_VAR => "nativebodytype");
//unset these properties because airsyncbase body and attachments will be used instead
unset($mapping[SYNC_POOMMAIL_BODY], $mapping[SYNC_POOMMAIL_BODYTRUNCATED], $mapping[SYNC_POOMMAIL_ATTACHMENTS]);
}
if (Request::GetProtocolVersion() >= 14.0) {
$mapping[SYNC_POOMMAIL2_UMCALLERID] = array(self::STREAMER_VAR => "umcallerid");
$mapping[SYNC_POOMMAIL2_UMUSERNOTES] = array(self::STREAMER_VAR => "umusernotes");
$mapping[SYNC_POOMMAIL2_CONVERSATIONID] = array(self::STREAMER_VAR => "conversationid");
$mapping[SYNC_POOMMAIL2_CONVERSATIONINDEX] = array(self::STREAMER_VAR => "conversationindex");
$mapping[SYNC_POOMMAIL2_LASTVERBEXECUTED] = array(self::STREAMER_VAR => "lastverbexecuted");
$mapping[SYNC_POOMMAIL2_LASTVERBEXECUTIONTIME] = array(self::STREAMER_VAR => "lastverbexectime", self::STREAMER_TYPE => self::STREAMER_TYPE_DATE_DASHES);
$mapping[SYNC_POOMMAIL2_RECEIVEDASBCC] = array(self::STREAMER_VAR => "receivedasbcc");
$mapping[SYNC_POOMMAIL2_SENDER] = array(self::STREAMER_VAR => "sender");
$mapping[SYNC_POOMMAIL_CATEGORIES] = array(self::STREAMER_VAR => "categories", self::STREAMER_ARRAY => SYNC_POOMMAIL_CATEGORY);
//TODO bodypart, accountid, rightsmanagementlicense
}
parent::SyncObject($mapping);
}
示例10: SyncOOFMessage
public function SyncOOFMessage()
{
$mapping = array(SYNC_SETTINGS_APPLIESTOINTERVAL => array(self::STREAMER_VAR => "appliesToInternal", self::STREAMER_PROP => self::STREAMER_TYPE_SEND_EMPTY), SYNC_SETTINGS_APPLIESTOEXTERNALKNOWN => array(self::STREAMER_VAR => "appliesToExternal", self::STREAMER_PROP => self::STREAMER_TYPE_SEND_EMPTY), SYNC_SETTINGS_APPLIESTOEXTERNALUNKNOWN => array(self::STREAMER_VAR => "appliesToExternalUnknown", self::STREAMER_PROP => self::STREAMER_TYPE_SEND_EMPTY), SYNC_SETTINGS_ENABLED => array(self::STREAMER_VAR => "enabled"), SYNC_SETTINGS_REPLYMESSAGE => array(self::STREAMER_VAR => "replymessage"), SYNC_SETTINGS_BODYTYPE => array(self::STREAMER_VAR => "bodytype", self::STREAMER_CHECKS => array(self::STREAMER_CHECK_ONEVALUEOF => array(SYNC_SETTINGSOOF_BODYTYPE_HTML, ucfirst(strtolower(SYNC_SETTINGSOOF_BODYTYPE_TEXT))))));
parent::SyncObject($mapping);
}
示例11: SyncTaskRecurrence
function SyncTaskRecurrence()
{
$mapping = array(SYNC_POOMTASKS_START => array(self::STREAMER_VAR => "start", self::STREAMER_TYPE => self::STREAMER_TYPE_DATE), SYNC_POOMTASKS_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_POOMTASKS_UNTIL => array(self::STREAMER_VAR => "until", self::STREAMER_TYPE => self::STREAMER_TYPE_DATE), SYNC_POOMTASKS_OCCURRENCES => array(self::STREAMER_VAR => "occurrences", self::STREAMER_CHECKS => array(self::STREAMER_CHECK_CMPHIGHER => 0, self::STREAMER_CHECK_CMPLOWER => 1000)), SYNC_POOMTASKS_INTERVAL => array(self::STREAMER_VAR => "interval", self::STREAMER_CHECKS => array(self::STREAMER_CHECK_CMPHIGHER => 0, self::STREAMER_CHECK_CMPLOWER => 1000)), SYNC_POOMTASKS_DEADOCCUR => array(self::STREAMER_VAR => "deadoccur"), SYNC_POOMTASKS_DAYOFWEEK => array(self::STREAMER_VAR => "dayofweek", self::STREAMER_CHECKS => array(self::STREAMER_CHECK_ONEVALUEOF => array(1, 2, 4, 8, 16, 32, 62, 64, 127))), SYNC_POOMTASKS_DAYOFMONTH => array(self::STREAMER_VAR => "dayofmonth", self::STREAMER_CHECKS => array(self::STREAMER_CHECK_CMPHIGHER => 0, self::STREAMER_CHECK_CMPLOWER => 32)), SYNC_POOMTASKS_WEEKOFMONTH => array(self::STREAMER_VAR => "weekofmonth", self::STREAMER_CHECKS => array(self::STREAMER_CHECK_ONEVALUEOF => array(1, 2, 3, 4, 5))), SYNC_POOMTASKS_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))));
parent::SyncObject($mapping);
}
示例12: SyncSendMail
function SyncSendMail()
{
$mapping = array(SYNC_COMPOSEMAIL_CLIENTID => array(self::STREAMER_VAR => "clientid"), SYNC_COMPOSEMAIL_SAVEINSENTITEMS => array(self::STREAMER_VAR => "saveinsent", self::STREAMER_PROP => self::STREAMER_TYPE_SEND_EMPTY), SYNC_COMPOSEMAIL_REPLACEMIME => array(self::STREAMER_VAR => "replacemime", self::STREAMER_PROP => self::STREAMER_TYPE_SEND_EMPTY), SYNC_COMPOSEMAIL_ACCOUNTID => array(self::STREAMER_VAR => "accountid"), SYNC_COMPOSEMAIL_SOURCE => array(self::STREAMER_VAR => "source", self::STREAMER_TYPE => "SyncSendMailSource"), SYNC_COMPOSEMAIL_MIME => array(self::STREAMER_VAR => "mime"), SYNC_COMPOSEMAIL_REPLYFLAG => array(self::STREAMER_VAR => "replyflag", self::STREAMER_TYPE => self::STREAMER_TYPE_IGNORE), SYNC_COMPOSEMAIL_FORWARDFLAG => array(self::STREAMER_VAR => "forwardflag", self::STREAMER_TYPE => self::STREAMER_TYPE_IGNORE));
parent::SyncObject($mapping);
}
示例13: SyncAppointment
function SyncAppointment()
{
$mapping = array(SYNC_POOMCAL_TIMEZONE => array(self::STREAMER_VAR => "timezone"), SYNC_POOMCAL_DTSTAMP => array(self::STREAMER_VAR => "dtstamp", self::STREAMER_TYPE => self::STREAMER_TYPE_DATE, self::STREAMER_CHECKS => array(self::STREAMER_CHECK_REQUIRED => self::STREAMER_CHECK_SETZERO)), SYNC_POOMCAL_STARTTIME => array(self::STREAMER_VAR => "starttime", self::STREAMER_TYPE => self::STREAMER_TYPE_DATE, self::STREAMER_CHECKS => array(self::STREAMER_CHECK_REQUIRED => self::STREAMER_CHECK_SETZERO, self::STREAMER_CHECK_CMPLOWER => SYNC_POOMCAL_ENDTIME)), SYNC_POOMCAL_SUBJECT => array(self::STREAMER_VAR => "subject", self::STREAMER_CHECKS => array(self::STREAMER_CHECK_REQUIRED => self::STREAMER_CHECK_SETEMPTY)), SYNC_POOMCAL_UID => array(self::STREAMER_VAR => "uid"), SYNC_POOMCAL_ORGANIZERNAME => array(self::STREAMER_VAR => "organizername"), SYNC_POOMCAL_ORGANIZEREMAIL => array(self::STREAMER_VAR => "organizeremail"), SYNC_POOMCAL_LOCATION => array(self::STREAMER_VAR => "location"), SYNC_POOMCAL_ENDTIME => array(self::STREAMER_VAR => "endtime", self::STREAMER_TYPE => self::STREAMER_TYPE_DATE, self::STREAMER_CHECKS => array(self::STREAMER_CHECK_REQUIRED => self::STREAMER_CHECK_SETONE, self::STREAMER_CHECK_CMPHIGHER => SYNC_POOMCAL_STARTTIME)), SYNC_POOMCAL_RECURRENCE => array(self::STREAMER_VAR => "recurrence", self::STREAMER_TYPE => "SyncRecurrence"), SYNC_POOMCAL_SENSITIVITY => array(self::STREAMER_VAR => "sensitivity", self::STREAMER_CHECKS => array(self::STREAMER_CHECK_ONEVALUEOF => array(0, 1, 2, 3))), SYNC_POOMCAL_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))), SYNC_POOMCAL_ALLDAYEVENT => array(self::STREAMER_VAR => "alldayevent", self::STREAMER_CHECKS => array(self::STREAMER_CHECK_ZEROORONE => self::STREAMER_CHECK_SETZERO)), SYNC_POOMCAL_REMINDER => array(self::STREAMER_VAR => "reminder", self::STREAMER_CHECKS => array(self::STREAMER_CHECK_CMPHIGHER => -1)), SYNC_POOMCAL_RTF => array(self::STREAMER_VAR => "rtf"), SYNC_POOMCAL_MEETINGSTATUS => array(self::STREAMER_VAR => "meetingstatus", self::STREAMER_CHECKS => array(self::STREAMER_CHECK_ONEVALUEOF => array(0, 1, 3, 5, 7, 9, 11, 13, 15))), SYNC_POOMCAL_ATTENDEES => array(self::STREAMER_VAR => "attendees", self::STREAMER_TYPE => "SyncAttendee", self::STREAMER_ARRAY => SYNC_POOMCAL_ATTENDEE), SYNC_POOMCAL_BODY => array(self::STREAMER_VAR => "body"), SYNC_POOMCAL_BODYTRUNCATED => array(self::STREAMER_VAR => "bodytruncated"), SYNC_POOMCAL_EXCEPTIONS => array(self::STREAMER_VAR => "exceptions", self::STREAMER_TYPE => "SyncAppointmentException", self::STREAMER_ARRAY => SYNC_POOMCAL_EXCEPTION), SYNC_POOMCAL_CATEGORIES => array(self::STREAMER_VAR => "categories", self::STREAMER_ARRAY => SYNC_POOMCAL_CATEGORY));
if (Request::GetProtocolVersion() >= 12.0) {
$mapping[SYNC_AIRSYNCBASE_BODY] = array(self::STREAMER_VAR => "asbody", self::STREAMER_TYPE => "SyncBaseBody");
$mapping[SYNC_AIRSYNCBASE_NATIVEBODYTYPE] = array(self::STREAMER_VAR => "nativebodytype");
//unset these properties because airsyncbase body and attachments will be used instead
unset($mapping[SYNC_POOMCAL_BODY], $mapping[SYNC_POOMCAL_BODYTRUNCATED]);
}
if (Request::GetProtocolVersion() >= 14.0) {
$mapping[SYNC_POOMCAL_DISALLOWNEWTIMEPROPOSAL] = array(self::STREAMER_VAR => "disallownewtimeprop");
$mapping[SYNC_POOMCAL_RESPONSEREQUESTED] = array(self::STREAMER_VAR => "responserequested");
$mapping[SYNC_POOMCAL_RESPONSETYPE] = array(self::STREAMER_VAR => "responsetype");
}
parent::SyncObject($mapping);
}
示例14: SyncMeetingRequestRecurrence
function SyncMeetingRequestRecurrence()
{
$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))));
parent::SyncObject($mapping);
}
示例15: SyncSendMailSource
function SyncSendMailSource()
{
$mapping = array(SYNC_COMPOSEMAIL_FOLDERID => array(self::STREAMER_VAR => "folderid"), SYNC_COMPOSEMAIL_ITEMID => array(self::STREAMER_VAR => "itemid"), SYNC_COMPOSEMAIL_LONGID => array(self::STREAMER_VAR => "longid"), SYNC_COMPOSEMAIL_INSTANCEID => array(self::STREAMER_VAR => "instanceid"));
parent::SyncObject($mapping);
}