Definition at line 16 of file Event.php.
Elgg\Notifications\Event::__construct |
( |
ElggData |
$object, |
|
|
|
$action, |
|
|
ElggEntity |
$actor = null |
|
) |
| |
Create a notification event.
- Parameters
-
ElggData | $object | The object of the event (ElggEntity) |
string | $action | The name of the action (default: create) |
ElggEntity | $actor | The entity that caused the event (default: logged in user) |
- Exceptions
-
Definition at line 38 of file Event.php.
Elgg\Notifications\Event::getAction |
( |
| ) |
|
Elgg\Notifications\Event::getActor |
( |
| ) |
|
Get the actor of the event.
- Note
- Note that the actor and the object of the notification event may have been deleted/disabled since the event was serialized and stored in the database.
- Returns
- ElggEntity|false|null
Implements Elgg\Notifications\NotificationEvent.
Definition at line 69 of file Event.php.
Elgg\Notifications\Event::getActorGUID |
( |
| ) |
|
Get the GUID of the actor.
- Note
- Note that the actor and the object of the notification event may have been deleted/disabled since the event was serialized and stored in the database.
- Returns
- int
Implements Elgg\Notifications\NotificationEvent.
Definition at line 82 of file Event.php.
Elgg\Notifications\Event::getDescription |
( |
| ) |
|
Elgg\Notifications\Event::getObject |
( |
| ) |
|
Get the object of the event.
- Note
- Note that the actor and the object of the notification event may have been deleted/disabled since the event was serialized and stored in the database.
- Returns
- ElggData|false|null
Implements Elgg\Notifications\NotificationEvent.
Definition at line 95 of file Event.php.
Elgg\Notifications\Event::toObject |
( |
| ) |
|
Export the notification event into a serializable object This method is mainly used for logging purposes.
- Returns
- stdClass
Definition at line 127 of file Event.php.
Elgg\Notifications\Event::$action |
|
protected |
Elgg\Notifications\Event::$actor |
|
protected |
Elgg\Notifications\Event::$object |
|
protected |
The documentation for this class was generated from the following file: