Lines Matching refs:attendee

237                 foreach($eventInfo['attendees'] as $key=>$attendee) {
238 if (in_array($attendee['href'], $userHref)) {
255 foreach($eventInfo['attendees'] as $attendee) {
256 if (in_array($attendee['href'], $userHref)) {
257 … return $this->parseEventForAttendee($baseCalendar, $eventInfo, $oldEventInfo, $attendee['href']);
349 $attendee = $vevent->ATTENDEE;
350 $instances[$recurId] = $attendee['PARTSTAT']->getValue();
368 foreach($vevent->ATTENDEE as $attendee) {
369 if ($attendee->getValue() === $itipMessage->sender) {
371 $attendee['PARTSTAT'] = $instances[$recurId];
372 $attendee['SCHEDULE-STATUS'] = $requestStatus;
375 unset($attendee['RSVP']);
383 $attendee = $vevent->add('ATTENDEE', $itipMessage->sender, array(
386 if ($itipMessage->senderName) $attendee['CN'] = $itipMessage->senderName;
425 foreach($newObject->ATTENDEE as $attendee) {
426 if ($attendee->getValue() === $itipMessage->sender) {
428 $attendee['PARTSTAT'] = $partstat;
435 $attendee = $newObject->add('ATTENDEE', $itipMessage->sender, array(
439 $attendee['CN'] = $itipMessage->senderName;
466 foreach($oldEventInfo['attendees'] as $attendee) {
467 $attendees[$attendee['href']] = array(
468 'href' => $attendee['href'],
469 'oldInstances' => $attendee['instances'],
471 'name' => $attendee['name'],
475 foreach($eventInfo['attendees'] as $attendee) {
476 if (isset($attendees[$attendee['href']])) {
477 $attendees[$attendee['href']]['name'] = $attendee['name'];
478 $attendees[$attendee['href']]['newInstances'] = $attendee['instances'];
479 $attendees[$attendee['href']]['forceSend'] = $attendee['forceSend'];
481 $attendees[$attendee['href']] = array(
482 'href' => $attendee['href'],
484 'newInstances' => $attendee['instances'],
485 'name' => $attendee['name'],
486 'forceSend' => $attendee['forceSend'],
493 foreach($attendees as $attendee) {
497 if ($attendee['href']===$eventInfo['organizer']) {
507 $message->recipient = $attendee['href'];
508 $message->recipientName = $attendee['name'];
510 if (!$attendee['newInstances']) {
530 $event->add('ATTENDEE', $attendee['href'], array(
531 'CN' => $attendee['name'],
557 $attendee['forceSend'] === 'REQUEST' ||
558 … array_keys($attendee['oldInstances']) != array_keys($attendee['newInstances']) ||
561 foreach($attendee['newInstances'] as $instanceId => $instanceInfo) {
570 if (!isset($attendee['newInstances'][$instanceId])) {
593 foreach($currentEvent->ATTENDEE as $attendee) {
594 unset($attendee['SCHEDULE-FORCE-SEND']);
595 unset($attendee['SCHEDULE-STATUS']);
599 if (!isset($attendee['PARTSTAT'])) {
600 $attendee['PARTSTAT'] = 'NEEDS-ACTION';
630 * @param string $attendee
633 …tion parseEventForAttendee(VCalendar $calendar, array $eventInfo, array $oldEventInfo, $attendee) { argument
645 $oldInstances = !empty($oldEventInfo['attendees'][$attendee]['instances']) ?
646 $oldEventInfo['attendees'][$attendee]['instances'] :
659 foreach($eventInfo['attendees'][$attendee]['instances'] as $instance) {
712 $message->sender = $attendee;
713 $message->senderName = $eventInfo['attendees'][$attendee]['name'];
772 $attendee = $event->add('ATTENDEE', $message->sender, array(
776 $attendee['CN'] = $message->senderName;
876 foreach($vevent->ATTENDEE as $attendee) {
879 isset($attendee['SCHEDULE-AGENT']) &&
880 strtoupper($attendee['SCHEDULE-AGENT']->getValue()) === 'CLIENT'
885 isset($attendee['PARTSTAT']) ?
886 strtoupper($attendee['PARTSTAT']) :
890 isset($attendee['SCHEDULE-FORCE-SEND']) ?
891 strtoupper($attendee['SCHEDULE-FORCE-SEND']) :
895 if (isset($attendees[$attendee->getNormalizedValue()])) {
896 $attendees[$attendee->getNormalizedValue()]['instances'][$recurId] = array(
902 $attendees[$attendee->getNormalizedValue()] = array(
903 'href' => $attendee->getNormalizedValue(),
910 'name' => isset($attendee['CN'])?(string)$attendee['CN']:null,