EventCompareManager
implements
CompareManager
Table of Contents
Interfaces
- CompareManager
Constants
-
COMPARE_FIELDS
= ['name' => 'name', 'recurringRule' => 'recurringRule', 'start' => 'start', 'end' => 'end', 'startTimezone' => 'startTimezone', 'endTimezone' => 'endTimezone', 'location' => 'location', 'attendees' => 'attendees', 'description' => 'description', 'ownerId' => 'ownerId', 'creatorId' => 'creatorId', 'accessibility' => 'accessibility', 'transparent' => 'transparent', 'isPrivate' => 'isPrivate', 'importance' => 'importance', 'calendarType' => 'calendarType', 'specialLabel' => 'specialLabel', 'isFullDay' => 'isFullDay', 'color' => 'color', 'section' => 'section', 'uid' => 'uid', 'isActive' => 'isActive', 'deleted' => 'deleted', 'originalDateFrom' => 'originalDateFrom']
-
SIGNIFICANT_FIELDS
= ['name' => 'name', 'attendees' => 'attendees', 'start' => 'start', 'end' => 'end', 'location' => 'location', 'recurringRule' => 'recurringRule', 'creatorId' => 'creatorId', 'hostId' => 'hostId', 'excludedDates' => 'excludedDates']
Methods
-
__construct()
: mixed
-
compare()
: $this
-
getDiff()
: array<string|int, mixed>
-
getDifferenceFieldsWithOriginalValue()
: array<string|int, mixed>
-
getDifferenceKeyFields()
: array<string|int, mixed>
-
getSignificantChanges()
: array<string|int, string>
-
hasDifferenceFields()
: bool
-
hasSignificantFields()
: bool
COMPARE_FIELDS
public
mixed
COMPARE_FIELDS
= ['name' => 'name', 'recurringRule' => 'recurringRule', 'start' => 'start', 'end' => 'end', 'startTimezone' => 'startTimezone', 'endTimezone' => 'endTimezone', 'location' => 'location', 'attendees' => 'attendees', 'description' => 'description', 'ownerId' => 'ownerId', 'creatorId' => 'creatorId', 'accessibility' => 'accessibility', 'transparent' => 'transparent', 'isPrivate' => 'isPrivate', 'importance' => 'importance', 'calendarType' => 'calendarType', 'specialLabel' => 'specialLabel', 'isFullDay' => 'isFullDay', 'color' => 'color', 'section' => 'section', 'uid' => 'uid', 'isActive' => 'isActive', 'deleted' => 'deleted', 'originalDateFrom' => 'originalDateFrom']
SIGNIFICANT_FIELDS
public
mixed
SIGNIFICANT_FIELDS
= ['name' => 'name', 'attendees' => 'attendees', 'start' => 'start', 'end' => 'end', 'location' => 'location', 'recurringRule' => 'recurringRule', 'creatorId' => 'creatorId', 'hostId' => 'hostId', 'excludedDates' => 'excludedDates']
__construct()
public
__construct(Event $event, Event $originalEvent) : mixed
Parameters
-
$event
: Event
-
-
$originalEvent
: Event
-
compare()
public
compare() : $this
getDiff()
public
getDiff() : array<string|int, mixed>
Return values
array<string|int, mixed>
getDifferenceFieldsWithOriginalValue()
public
getDifferenceFieldsWithOriginalValue() : array<string|int, mixed>
Return values
array<string|int, mixed>
getDifferenceKeyFields()
public
getDifferenceKeyFields() : array<string|int, mixed>
Return values
array<string|int, mixed>
getSignificantChanges()
public
getSignificantChanges() : array<string|int, string>
Return values
array<string|int, string>
hasDifferenceFields()
public
hasDifferenceFields() : bool
hasSignificantFields()
public
hasSignificantFields() : bool