37 $this->object_type =
$object->getType();
38 $this->object_subtype =
$object->getSubtype();
39 $this->object_id =
$object->getGUID();
41 $this->object_type =
$object->getType();
42 $this->object_subtype =
$object->getSubtype();
47 $this->actor_guid =
_elgg_services()->session->getLoggedInUserGuid();
49 $this->actor_guid = $actor->getGUID();
79 switch ($this->object_type) {
111 return "{$this->action}:{$this->object_type}:{$this->object_subtype}";
elgg_get_annotation_from_id($id)
Get a specific annotation by its id.
getObject()
Get the object of the event.
getActor()
Get the actor of the event.
getDescription()
Get a description of the event.
__construct(\ElggData $object, $action, \ElggEntity $actor=null)
Create a notification event.
getAction()
Get the name of the action.
getActorGUID()
Get the GUID of the actor.
elgg_instanceof($entity, $type=null, $subtype=null, $class=null)
Checks if $entity is an \ElggEntity and optionally for type and subtype.
get_entity($guid)
Loads and returns an entity object from a guid.
get_relationship($id)
Get a relationship by its ID.
elgg button elgg button action