36 $this->object_type = $object->
getType();
38 $this->object_id = $object->getGUID();
40 $this->object_type = $object->
getType();
42 $this->object_id = $object->id;
48 $this->actor_guid = $actor->getGUID();
78 switch ($this->object_type) {
110 return "{$this->action}:{$this->object_type}:{$this->object_subtype}";
get_relationship($id)
Get a relationship by its ID.
getSubtype()
Return a subtype.
getActorGUID()
Get the GUID of the actor.
getActor()
Get the actor of the event.
getObject()
Get the object of the event.
elgg_instanceof($entity, $type=null, $subtype=null, $class=null)
Checks if $entity is an ElggEntity 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.
__construct(ElggData $object, $action, ElggUser $actor=null)
Create a notification event.
getAction()
Get the name of the action.
elgg_get_logged_in_user_guid()
Return the current logged in user by guid.
get_entity($guid)
Loads and returns an entity object from a guid.
getDescription()
Get a description of the event.