A VCALENDAR object will be created from the perspective of either an
attendee, or an organizer. You must pass a string identifying the
current user, so we can figure out who in the list of attendees or the
organizer we are sending this message on behalf of.
It's possible to specify the current user as an array, in case the user
has more than one identifying href (such as multiple emails).
It $oldCalendar is specified, it is assumed that the operation is
updating an existing event, which means that we need to look at the
differences between events, and potentially send old attendees
cancellations, and current attendees updates.
If $calendar is null, but $oldCalendar is specified, we treat the
operation as if the user has deleted an event. If the user was an
organizer, this means that we need to send cancellation notices to
people. If the user was an attendee, we need to make sure that the
organizer gets the 'declined' message.
public parseEvent ( Sabre\VObject\Component\VCalendar | string $calendar = null, string | array $userHref, Sabre\VObject\Component\VCalendar | string $oldCalendar = null ) : array | ||
$calendar | Sabre\VObject\Component\VCalendar | string | |
$userHref | string | array | |
$oldCalendar | Sabre\VObject\Component\VCalendar | string | |
리턴 | array |