Concrete implementation of AbstractEvent and in fact EventInterface.
In most case, you’d better to implement your own events
Inherits from: AbstractEvent
| bool |
contains( DateTime $datetime)
Check if the given date is during the event |
from AbstractEvent |
| bool |
containsPeriod( PeriodInterface $period)
Check if the given period is during the event |
from AbstractEvent |
| bool |
isDuring( PeriodInterface $period)
Check if the event is during the given period |
from AbstractEvent |
| __construct($uid, DateTime $start, DateTime $end) | ||
| string |
getUid()
Returns an unique identifier for the Event. |
|
| DateTime |
getBegin()
Returns the event begin |
|
| DateTime |
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 |
|
|||
public
__construct($uid, DateTime $start, DateTime $end)
| Parameters |
|
|||||||||
|---|---|---|---|---|---|---|---|---|---|---|
public string
getUid()
Returns an unique identifier for the Event.
Could be any string, but MUST to be unique. ex : ‘event-8’, ‘meeting-43’
| Return Value |
|
|---|
public DateTime
getBegin()
public DateTime
getEnd()