Changeset View
Changeset View
Standalone View
Standalone View
plugins/libkolab/lib/kolab_format_xcal.php
Show First 20 Lines • Show All 165 Lines • ▼ Show 20 Lines | public function to_array($data = array()) | ||||
'cutype' => $cutype_map[$attendee->cutype()], | 'cutype' => $cutype_map[$attendee->cutype()], | ||||
'status' => $part_status_map[$attendee->partStat()], | 'status' => $part_status_map[$attendee->partStat()], | ||||
'rsvp' => $attendee->rsvp(), | 'rsvp' => $attendee->rsvp(), | ||||
'email' => $cr->email(), | 'email' => $cr->email(), | ||||
'name' => $cr->name(), | 'name' => $cr->name(), | ||||
'delegated-from' => $delegators, | 'delegated-from' => $delegators, | ||||
'delegated-to' => $delegatees, | 'delegated-to' => $delegatees, | ||||
); | ); | ||||
} else { | |||||
$object['attendees'][] = array( | |||||
'role' => 'ORGANIZER', | |||||
'cutype' => 'REQ-PARTICIPANT', | |||||
'status' => $object['status'] == 'CANCELLED' ? 'DECLINED' : 'ACCEPTED', | |||||
'rsvp' => false, | |||||
'email' => $object['organizer']['email'], | |||||
'name' => $object['organizer']['name'] | |||||
); | |||||
} | } | ||||
} | } | ||||
// read recurrence rule | // read recurrence rule | ||||
if (($rr = $this->obj->recurrenceRule()) && $rr->isValid()) { | if (($rr = $this->obj->recurrenceRule()) && $rr->isValid()) { | ||||
$rrule_type_map = array_flip($this->rrule_type_map); | $rrule_type_map = array_flip($this->rrule_type_map); | ||||
$object['recurrence'] = array('FREQ' => $rrule_type_map[$rr->frequency()]); | $object['recurrence'] = array('FREQ' => $rrule_type_map[$rr->frequency()]); | ||||
▲ Show 20 Lines • Show All 572 Lines • Show Last 20 Lines |