Changeset View
Changeset View
Standalone View
Standalone View
plugins/libkolab/lib/kolab_format_xcal.php
Show First 20 Lines • Show All 658 Lines • ▼ Show 20 Lines | public function get_tags($obj = null) | ||||
if (!empty($object['valarms'])) { | if (!empty($object['valarms'])) { | ||||
$tags[] = 'x-has-alarms'; | $tags[] = 'x-has-alarms'; | ||||
} | } | ||||
// create tags reflecting participant status | // create tags reflecting participant status | ||||
if (is_array($object['attendees'])) { | if (is_array($object['attendees'])) { | ||||
foreach ($object['attendees'] as $attendee) { | foreach ($object['attendees'] as $attendee) { | ||||
if (!empty($attendee['email']) && !empty($attendee['status'])) | if (!empty($attendee['email']) && !empty($attendee['status'])) { | ||||
$tags[] = 'x-partstat:' . $attendee['email'] . ':' . strtolower($attendee['status']); | if ($attendee['email'] != $object['organizer']['email']) { | ||||
$tags[] = 'x-partstat:' . | |||||
$attendee['email'] . ':' . | |||||
strtolower($attendee['status']); | |||||
} | |||||
} | |||||
} | } | ||||
} | } | ||||
// collect tags from recurrence exceptions | // collect tags from recurrence exceptions | ||||
if (is_array($object['exceptions'])) { | if (is_array($object['exceptions'])) { | ||||
foreach ($object['exceptions'] as $exception) { | foreach ($object['exceptions'] as $exception) { | ||||
$tags = array_merge($tags, $this->get_tags($exception)); | $tags = array_merge($tags, $this->get_tags($exception)); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 77 Lines • Show Last 20 Lines |