class EventOccurrenceService (View source)

Properties

protected $entityManager

Methods

__construct(EntityManagerInterface $entityManagerInterface)

No description

getByID($versionOccurrenceID)

No description

getByOccurrenceID($occurrenceID, $retrieveVersion = EventService::EVENT_VERSION_APPROVED)

This code below retrieves based on the occurrence ID which can remain the same across versions.

save(CalendarEventVersionOccurrence $occurrence)

No description

delete(CalendarEventVersion $version, CalendarEventOccurrence $occurrence)

No description

cancel(CalendarEventVersionOccurrence $occurrence)

No description

Details

__construct(EntityManagerInterface $entityManagerInterface)

Parameters

EntityManagerInterface $entityManagerInterface

CalendarEventVersionOccurrence getByID($versionOccurrenceID)

Parameters

$versionOccurrenceID

Return Value

CalendarEventVersionOccurrence

getByOccurrenceID($occurrenceID, $retrieveVersion = EventService::EVENT_VERSION_APPROVED)

This code below retrieves based on the occurrence ID which can remain the same across versions.

Parameters

$occurrenceID
$retrieveVersion

save(CalendarEventVersionOccurrence $occurrence)

Parameters

CalendarEventVersionOccurrence $occurrence

delete(CalendarEventVersion $version, CalendarEventOccurrence $occurrence)

Parameters

CalendarEventVersion $version
CalendarEventOccurrence $occurrence

cancel(CalendarEventVersionOccurrence $occurrence)

Parameters

CalendarEventVersionOccurrence $occurrence