Lines Matching refs:attendee
239 foreach ($eventInfo['attendees'] as $key => $attendee) {
240 if (in_array($attendee['href'], $userHref)) {
257 foreach ($eventInfo['attendees'] as $attendee) {
258 if (in_array($attendee['href'], $userHref)) {
259 … return $this->parseEventForAttendee($baseCalendar, $eventInfo, $oldEventInfo, $attendee['href']);
354 $attendee = $vevent->ATTENDEE;
355 $instances[$recurId] = $attendee['PARTSTAT']->getValue();
373 foreach ($vevent->ATTENDEE as $attendee) {
374 if ($attendee->getValue() === $itipMessage->sender) {
376 $attendee['PARTSTAT'] = $instances[$recurId];
377 $attendee['SCHEDULE-STATUS'] = $requestStatus;
380 unset($attendee['RSVP']);
388 $attendee = $vevent->add('ATTENDEE', $itipMessage->sender, [
391 if ($itipMessage->senderName) $attendee['CN'] = $itipMessage->senderName;
430 foreach ($newObject->ATTENDEE as $attendee) {
431 if ($attendee->getValue() === $itipMessage->sender) {
433 $attendee['PARTSTAT'] = $partstat;
440 $attendee = $newObject->add('ATTENDEE', $itipMessage->sender, [
444 $attendee['CN'] = $itipMessage->senderName;
472 foreach ($oldEventInfo['attendees'] as $attendee) {
473 $attendees[$attendee['href']] = [
474 'href' => $attendee['href'],
475 'oldInstances' => $attendee['instances'],
477 'name' => $attendee['name'],
481 foreach ($eventInfo['attendees'] as $attendee) {
482 if (isset($attendees[$attendee['href']])) {
483 $attendees[$attendee['href']]['name'] = $attendee['name'];
484 $attendees[$attendee['href']]['newInstances'] = $attendee['instances'];
485 $attendees[$attendee['href']]['forceSend'] = $attendee['forceSend'];
487 $attendees[$attendee['href']] = [
488 'href' => $attendee['href'],
490 'newInstances' => $attendee['instances'],
491 'name' => $attendee['name'],
492 'forceSend' => $attendee['forceSend'],
499 foreach ($attendees as $attendee) {
503 if ($attendee['href'] === $eventInfo['organizer']) {
513 $message->recipient = $attendee['href'];
514 $message->recipientName = $attendee['name'];
516 if (!$attendee['newInstances']) {
541 $event->add('ATTENDEE', $attendee['href'], [
542 'CN' => $attendee['name'],
568 $attendee['forceSend'] === 'REQUEST' ||
569 … array_keys($attendee['oldInstances']) != array_keys($attendee['newInstances']) ||
572 foreach ($attendee['newInstances'] as $instanceId => $instanceInfo) {
581 if (!isset($attendee['newInstances'][$instanceId])) {
604 foreach ($currentEvent->ATTENDEE as $attendee) {
605 unset($attendee['SCHEDULE-FORCE-SEND']);
606 unset($attendee['SCHEDULE-STATUS']);
610 if (!isset($attendee['PARTSTAT'])) {
611 $attendee['PARTSTAT'] = 'NEEDS-ACTION';
641 * @param string $attendee
645 …tion parseEventForAttendee(VCalendar $calendar, array $eventInfo, array $oldEventInfo, $attendee) { argument
657 $oldInstances = !empty($oldEventInfo['attendees'][$attendee]['instances']) ?
658 $oldEventInfo['attendees'][$attendee]['instances'] :
671 foreach ($eventInfo['attendees'][$attendee]['instances'] as $instance) {
724 $message->sender = $attendee;
725 $message->senderName = $eventInfo['attendees'][$attendee]['name'];
789 $attendee = $event->add('ATTENDEE', $message->sender, [
793 $attendee['CN'] = $message->senderName;
905 foreach ($vevent->ATTENDEE as $attendee) {
908 isset($attendee['SCHEDULE-AGENT']) &&
909 strtoupper($attendee['SCHEDULE-AGENT']->getValue()) === 'CLIENT'
914 isset($attendee['PARTSTAT']) ?
915 strtoupper($attendee['PARTSTAT']) :
919 isset($attendee['SCHEDULE-FORCE-SEND']) ?
920 strtoupper($attendee['SCHEDULE-FORCE-SEND']) :
924 if (isset($attendees[$attendee->getNormalizedValue()])) {
925 $attendees[$attendee->getNormalizedValue()]['instances'][$recurId] = [
931 $attendees[$attendee->getNormalizedValue()] = [
932 'href' => $attendee->getNormalizedValue(),
939 'name' => isset($attendee['CN']) ? (string)$attendee['CN'] : null,