Base interface for events implementation
getUid()
Returns an unique identifier for the Event. |
||
getBegin()
Returns the event begin |
||
getEnd()
Returns the event end |
||
bool |
contains( DateTime $datetime)
Check if the given date is during the event |
|
bool |
containsPeriod( PeriodInterface $period)
Check if the given period is during the event |
|
bool |
isDuring( PeriodInterface $period)
Check if the event is during the given period |
public
getUid()
Returns an unique identifier for the Event.
Could be any string, but MUST to be unique. ex : ‘event-8’, ‘meeting-43’
public
getBegin()
Returns the event begin
public
getEnd()
Returns the event end
public bool
contains( DateTime $datetime)
Check if the given date is during the event
Parameters |
|
|||
---|---|---|---|---|
Return Value |
|
public bool
containsPeriod( PeriodInterface $period)
Check if the given period is during the event
Parameters |
|
|||
---|---|---|---|---|
Return Value |
|
public bool
isDuring( PeriodInterface $period)
Check if the event is during the given period
Parameters |
|
|||
---|---|---|---|---|
Return Value |
|