Table of Contents
Interfaces
- EventManagerInterface
Constants
-
CREATE_PATH
= '/calendars/%CALENDAR_ID%/events/'
-
EVENT_PATH
= '/calendars/%CALENDAR_ID%/events/%EVENT_ID%'
Methods
-
__construct()
: mixed
-
create()
: Result
-
createInstance()
: Result
-
createRecurrence()
: Result
-
delete()
: Result
-
deleteInstance()
: Result
-
getInstanceForDay()
: Event
-
getServiceName()
: string
-
prepareContextForInstance()
: EventContext|null
-
prepareCreateUrl()
: string
-
prepareUpdateUrl()
: string
-
saveRecurrence()
: Result
-
update()
: Result
-
updateInstance()
: Result
-
updateRecurrence()
: Result
CREATE_PATH
public
mixed
CREATE_PATH
= '/calendars/%CALENDAR_ID%/events/'
EVENT_PATH
public
mixed
EVENT_PATH
= '/calendars/%CALENDAR_ID%/events/%EVENT_ID%'
__construct()
public
__construct(Connection $connection, int $userId) : mixed
Parameters
-
$connection
: Connection
-
-
$userId
: int
-
-
throws
-
SystemException
create()
public
create(Event $event, EventContext $context) : Result
Parameters
-
$event
: Event
-
-
$context
: EventContext
-
-
throws
-
LoaderException
createInstance()
public
createInstance(Event $event, EventContext $context) : Result
Parameters
-
$event
: Event
-
-
$context
: EventContext
-
-
throws
-
LoaderException
-
throws
-
ObjectException
-
throws
-
BaseException
createRecurrence()
public
createRecurrence(SyncEvent $recurrenceEvent, SectionConnection $sectionConnection, Context $context) : Result
Parameters
-
$recurrenceEvent
: SyncEvent
-
-
$sectionConnection
: SectionConnection
-
-
$context
: Context
-
-
throws
-
BaseException
-
throws
-
LoaderException
-
throws
-
ObjectException
delete()
public
delete(Event $event, EventContext $context) : Result
Parameters
-
$event
: Event
-
-
$context
: EventContext
-
-
throws
-
LoaderException
deleteInstance()
public
deleteInstance(Event $event, EventContext $context) : Result
Parameters
-
$event
: Event
-
-
$context
: EventContext
-
-
throws
-
BaseException
-
throws
-
LoaderException
-
throws
-
ObjectException
getInstanceForDay()
public
getInstanceForDay(Event $event, Date $excludeDate[, Date|null $originalDate = null ]) : Event
Parameters
-
$event
: Event
-
-
$excludeDate
: Date
-
-
$originalDate
: Date|null
= null
-
getServiceName()
public
getServiceName() : string
prepareContextForInstance()
public
prepareContextForInstance(Event $event, EventContext $context) : EventContext|null
Parameters
-
$event
: Event
-
-
$context
: EventContext
-
prepareCreateUrl()
public
prepareCreateUrl(EventContext $context) : string
Parameters
-
$context
: EventContext
-
prepareUpdateUrl()
public
prepareUpdateUrl(EventContext $context) : string
Parameters
-
$context
: EventContext
-
saveRecurrence()
public
saveRecurrence(SyncEvent $recurrenceEvent, SectionConnection $sectionConnection, Context $context) : Result
Parameters
-
$recurrenceEvent
: SyncEvent
-
-
$sectionConnection
: SectionConnection
-
-
$context
: Context
-
-
throws
-
BaseException
-
throws
-
LoaderException
-
throws
-
ObjectException
update()
public
update(Event $event, EventContext $context) : Result
Parameters
-
$event
: Event
-
-
$context
: EventContext
-
-
throws
-
BaseException
-
throws
-
LoaderException
-
throws
-
SystemException
updateInstance()
public
updateInstance(Event $event, EventContext $context) : Result
Parameters
-
$event
: Event
-
-
$context
: EventContext
-
-
throws
-
BaseException
-
throws
-
LoaderException
updateRecurrence()
public
updateRecurrence(SyncEvent $recurrenceEvent, SectionConnection $sectionConnection, Context $context) : Result
Parameters
-
$recurrenceEvent
: SyncEvent
-
-
$sectionConnection
: SectionConnection
-
-
$context
: Context
-
-
throws
-
BaseException
-
throws
-
LoaderException
-
throws
-
ObjectException