Lines Matching refs:attendee

234                 foreach ($eventInfo['attendees'] as $key => $attendee) {
235 if (in_array($attendee['href'], $userHref)) {
250 foreach ($eventInfo['attendees'] as $attendee) {
251 if (in_array($attendee['href'], $userHref)) {
252 … return $this->parseEventForAttendee($baseCalendar, $eventInfo, $oldEventInfo, $attendee['href']);
347 $attendee = $vevent->ATTENDEE;
348 $instances[$recurId] = $attendee['PARTSTAT']->getValue();
366 foreach ($vevent->ATTENDEE as $attendee) {
367 if ($attendee->getValue() === $itipMessage->sender) {
369 $attendee['PARTSTAT'] = $instances[$recurId];
370 $attendee['SCHEDULE-STATUS'] = $requestStatus;
373 unset($attendee['RSVP']);
381 $attendee = $vevent->add('ATTENDEE', $itipMessage->sender, [
385 $attendee['CN'] = $itipMessage->senderName;
424 foreach ($newObject->ATTENDEE as $attendee) {
425 if ($attendee->getValue() === $itipMessage->sender) {
427 $attendee['PARTSTAT'] = $partstat;
434 $attendee = $newObject->add('ATTENDEE', $itipMessage->sender, [
438 $attendee['CN'] = $itipMessage->senderName;
465 foreach ($oldEventInfo['attendees'] as $attendee) {
466 $attendees[$attendee['href']] = [
467 'href' => $attendee['href'],
468 'oldInstances' => $attendee['instances'],
470 'name' => $attendee['name'],
474 foreach ($eventInfo['attendees'] as $attendee) {
475 if (isset($attendees[$attendee['href']])) {
476 $attendees[$attendee['href']]['name'] = $attendee['name'];
477 $attendees[$attendee['href']]['newInstances'] = $attendee['instances'];
478 $attendees[$attendee['href']]['forceSend'] = $attendee['forceSend'];
480 $attendees[$attendee['href']] = [
481 'href' => $attendee['href'],
483 'newInstances' => $attendee['instances'],
484 'name' => $attendee['name'],
485 'forceSend' => $attendee['forceSend'],
492 foreach ($attendees as $attendee) {
495 if ($attendee['href'] === $eventInfo['organizer']) {
505 $message->recipient = $attendee['href'];
506 $message->recipientName = $attendee['name'];
515 if (!$attendee['newInstances']) {
541 $event->add('ATTENDEE', $attendee['href'], [
542 'CN' => $attendee['name'],
560 'REQUEST' === $attendee['forceSend'] ||
561 … array_keys($attendee['oldInstances']) != array_keys($attendee['newInstances']) ||
564 foreach ($attendee['newInstances'] as $instanceId => $instanceInfo) {
571 if (!isset($attendee['newInstances'][$instanceId])) {
594 foreach ($currentEvent->ATTENDEE as $attendee) {
595 unset($attendee['SCHEDULE-FORCE-SEND']);
596 unset($attendee['SCHEDULE-STATUS']);
600 if (!isset($attendee['PARTSTAT'])) {
601 $attendee['PARTSTAT'] = 'NEEDS-ACTION';
626 * @param string $attendee
630 …nction parseEventForAttendee(VCalendar $calendar, array $eventInfo, array $oldEventInfo, $attendee) argument
642 $oldInstances = !empty($oldEventInfo['attendees'][$attendee]['instances']) ?
643 $oldEventInfo['attendees'][$attendee]['instances'] :
654 foreach ($eventInfo['attendees'][$attendee]['instances'] as $instance) {
701 $message->sender = $attendee;
702 $message->senderName = $eventInfo['attendees'][$attendee]['name'];
769 $attendee = $event->add('ATTENDEE', $message->sender, [
773 $attendee['CN'] = $message->senderName;
901 foreach ($vevent->ATTENDEE as $attendee) {
903 isset($attendee['SCHEDULE-AGENT']) &&
904 'CLIENT' === strtoupper($attendee['SCHEDULE-AGENT']->getValue())
909 isset($attendee['PARTSTAT']) ?
910 strtoupper($attendee['PARTSTAT']) :
914 isset($attendee['SCHEDULE-FORCE-SEND']) ?
915 strtoupper($attendee['SCHEDULE-FORCE-SEND']) :
918 if (isset($attendees[$attendee->getNormalizedValue()])) {
919 $attendees[$attendee->getNormalizedValue()]['instances'][$recurId] = [
925 $attendees[$attendee->getNormalizedValue()] = [
926 'href' => $attendee->getNormalizedValue(),
933 'name' => isset($attendee['CN']) ? (string) $attendee['CN'] : null,