37 $this->object_type = $object->
getType();
39 $this->object_id = $object->getGUID();
41 $this->object_type = $object->
getType();
43 $this->object_id = $object->id;
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}";
__construct(\ElggData $object, $action,\ElggEntity $actor=null)
Create a notification event.
get_relationship($id)
Get a relationship by its ID.
getAction()
Get the name of the action.
getSubtype()
Return a subtype.
getActorGUID()
Get the GUID of the actor.
elgg_instanceof($entity, $type=null, $subtype=null, $class=null)
Checks if $entity is an and optionally for type and subtype.
elgg_get_annotation_from_id($id)
Get a specific annotation by its id.
getType()
Return the type of the object - eg.
getActor()
Get the actor of the event.
getDescription()
Get a description of the event.
get_entity($guid)
Loads and returns an entity object from a guid.
getObject()
Get the object of the event.