Event
Event.php
:
22
Base class for calendar events.
See documentation
Methods¶
__construct() ¶
Event.php
:
33
|
|
Parameters
Name | Type | Default value | Description |
---|---|---|---|
$type | EventTypeInterface | - | - |
$id | string | - | - |
$dateTime | DateTimeInterface | - | - |
__toString() ¶
Event.php
:
97
|
|
compareTo() ¶
Event.php
:
92
Compares $this with given $event.
|
|
Parameters
Name | Type | Default value | Description |
---|---|---|---|
$event | Event | - | - |
Return values
int
getDateTime() ¶
Event.php
:
54
|
|
Return values
DateTimeInterface
getId() ¶
Event.php
:
49
|
|
Return values
string
getName() ¶
Event.php
:
62
Returns human-readable label of the event. For example: "Birthday of John".
|
|
Return values
string
getType() ¶
Event.php
:
44
|
|
Return values
isAfter() ¶
Event.php
:
72
Returns true if the $this is after given $event.
|
|
Parameters
Name | Type | Default value | Description |
---|---|---|---|
$event | Event | - | - |
Return values
bool
isBefore() ¶
Event.php
:
82
Returns true if the $this is before given $event.
|
|
Parameters
Name | Type | Default value | Description |
---|---|---|---|
$event | Event | - | - |
Return values
bool
executeAction() ¶
Event.php
:
102
|
|
Parameters
Name | Type | Default value | Description |
---|---|---|---|
$context | EventActionContext | - | - |