6 use Elgg\Traits\Notifications\EventSerialization;
16 use EventSerialization;
51 $this->actor =
_elgg_services()->session_manager->getLoggedInUser();
80 return $this->actor ? $this->actor->guid : 0;
111 return implode(
':', [
113 $this->object->getType(),
114 $this->object->getSubtype(),
125 $obj = new \stdClass();
127 $vars = get_object_vars($this);
129 if (is_object(
$value) && is_callable([
$value,
'toObject'])) {
130 $obj->$key =
$value->toObject();
A generic class that contains shared code among \ElggExtender, \ElggEntity, and \ElggRelationship.
Exception thrown if an argument is not of the expected type.
Subscription notification event.
__construct(\ElggData $object, string $action, ?\ElggEntity $actor=null)
Create a notification event.
getDescription()
Get a description of the event.
getActorGUID()
Get the GUID of the actor.
getActor()
Get the actor of the event.
getObject()
Get the object of the event.
toObject()
Export the notification event into a serializable object This method is mainly used for logging purpo...
getAction()
Get the name of the action.
_elgg_services()
Get the global service provider.
Notification event interface.
if($container instanceof ElggGroup && $container->guid !=elgg_get_page_owner_guid()) $key