Commit a8b25c37 authored by Sebastian Kummer's avatar Sebastian Kummer

Merge pull request #66 in ZP/z-push from bugfix/ZP-724-contact-s-birthday-is-not-updated to develop

* commit 'c782d49a':
  ZP-724 Add CalendarType also to SyncTaskRecurrence and SyncMeetingRequestRecurrence objects.
  ZP-724 Add instance variable for calendar type.
  ZP-724 ADD CalendarType to SyncRecurrence object.
parents 96b99c45 c782d49a
...@@ -56,6 +56,7 @@ class SyncMeetingRequestRecurrence extends SyncObject { ...@@ -56,6 +56,7 @@ class SyncMeetingRequestRecurrence extends SyncObject {
public $dayofmonth; public $dayofmonth;
public $weekofmonth; public $weekofmonth;
public $monthofyear; public $monthofyear;
public $calendartype;
function SyncMeetingRequestRecurrence() { function SyncMeetingRequestRecurrence() {
$mapping = array ( $mapping = array (
...@@ -114,6 +115,10 @@ class SyncMeetingRequestRecurrence extends SyncObject { ...@@ -114,6 +115,10 @@ class SyncMeetingRequestRecurrence extends SyncObject {
self::STREAMER_CHECKS => array( self::STREAMER_CHECK_ONEVALUEOF => array(1,2,3,4,5,6,7,8,9,10,11,12) )), 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::SyncObject($mapping); parent::SyncObject($mapping);
} }
} }
...@@ -56,6 +56,7 @@ class SyncRecurrence extends SyncObject { ...@@ -56,6 +56,7 @@ class SyncRecurrence extends SyncObject {
public $dayofmonth; public $dayofmonth;
public $weekofmonth; public $weekofmonth;
public $monthofyear; public $monthofyear;
public $calendartype;
function SyncRecurrence() { function SyncRecurrence() {
$mapping = array ( $mapping = array (
...@@ -114,6 +115,10 @@ class SyncRecurrence extends SyncObject { ...@@ -114,6 +115,10 @@ class SyncRecurrence extends SyncObject {
self::STREAMER_CHECKS => array( self::STREAMER_CHECK_ONEVALUEOF => array(1,2,3,4,5,6,7,8,9,10,11,12) )), 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_POOMCAL_CALENDARTYPE] = array ( self::STREAMER_VAR => "calendartype");
}
parent::SyncObject($mapping); parent::SyncObject($mapping);
} }
} }
...@@ -59,6 +59,7 @@ class SyncTaskRecurrence extends SyncObject { ...@@ -59,6 +59,7 @@ class SyncTaskRecurrence extends SyncObject {
public $monthofyear; public $monthofyear;
public $regenerate; public $regenerate;
public $deadoccur; public $deadoccur;
public $calendartype;
function SyncTaskRecurrence() { function SyncTaskRecurrence() {
$mapping = array ( $mapping = array (
...@@ -121,8 +122,12 @@ class SyncTaskRecurrence extends SyncObject { ...@@ -121,8 +122,12 @@ class SyncTaskRecurrence extends SyncObject {
// 1-12 representing the month // 1-12 representing the month
SYNC_POOMTASKS_MONTHOFYEAR => array ( self::STREAMER_VAR => "monthofyear", 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) )), 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_POOMTASKS_CALENDARTYPE] = array ( self::STREAMER_VAR => "calendartype");
}
parent::SyncObject($mapping); parent::SyncObject($mapping);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment