From 9b3416a7d87cc8bfff53f75216403d0b28383960 Mon Sep 17 00:00:00 2001 From: "Michael J. Rubinsky" Date: Wed, 7 Apr 2010 20:12:39 -0400 Subject: [PATCH] Add support for attendees when syncing via ActiveSync devices --- kronolith/lib/Event.php | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/kronolith/lib/Event.php b/kronolith/lib/Event.php index 511b0b3b9..a1c8eae3e 100644 --- a/kronolith/lib/Event.php +++ b/kronolith/lib/Event.php @@ -279,7 +279,7 @@ abstract class Kronolith_Event /** * For exceptions, the date of the original recurring event that this is an * exception for. - * + * * @var Horde_Date */ public $exceptionoriginaldate; @@ -1078,6 +1078,12 @@ abstract class Kronolith_Event } } + /* Attendees */ + $attendees = $message->getAttendees(); + foreach ($attendees as $attendee) { + $this->addAttendee($attendee->email, $attendee->type, $attendee->status, $attendee->name); + } + /* Flag that we are initialized */ $this->initialized = true; } @@ -1180,6 +1186,13 @@ abstract class Kronolith_Event } /* Attendees */ + foreach ($this->attendees as $email => $properties) { + $attendee = new Horde_ActiveSync_Message_Attendee(); + $attendee->email = $email; + $attendee->type = $properties['attendance']; + $attendee->status = $properties['response']; + $message->addAttendee($attendee); + } /* Reminder */ $message->setReminder($this->alarm); -- 2.11.0