$date
$date : \DateTime
The internal date pointer.
Simple PHP Calendar Class.
$events : array
The events array.
addEvent(string $start, string $end, string $summary = false, bool $mask = false, bool $classes = false) : object
Add an event to the current calendar instantiation.
string | $start | The start date in Y-m-d format. |
string | $end | The end date in Y-m-d format. |
string | $summary | The summary string of the event. |
bool | $mask | The masking class. |
bool | $classes | (optional) A list of classes to use for the event. |
Return this object for chain-ability.
addEvents(array $events) : object
Add an array of events using $this->addEvent();
Each array element must have the following: 'start' => start date in Y-m-d format. 'end' => end date in Y-m-d format. (optional) 'mask' => a masking class name. (optional) 'classes' => custom classes to include.
array | $events | The events array. |
Return this object for chain-ability.