16 use EventSerialization;
72 return $this->actor ? $this->actor->guid : 0;
103 if (!$this->
object) {
107 return implode(
':', [
109 $this->object->getType(),
110 $this->object->getSubtype(),
121 $obj =
new stdClass();
122 $vars = get_object_vars($this);
124 if (is_object(
$value) && is_callable([
$value,
'toObject'])) {
125 $obj->$key =
$value->toObject();
elgg button elgg button action
Instant notification event.
getActorGUID()
Get the GUID of the actor.
const DEFAULT_ACTION_NAME
__construct(ElggData $object=null, $action=null, ElggEntity $actor=null)
Constructor.
getObject()
Get the object of the event.
getAction()
Get the name of the action.
getDescription()
Get a description of the event.
getActor()
Get the actor of the event.
toObject()
Export the notification event into a serializable object This method is mainly used for logging purpo...
_elgg_services(\Elgg\Di\ServiceProvider $services=null)
Get the global service provider.