24 protected string $name,
25 protected string $type,
98 if (!is_array($this->params)) {
111 if (isset($this->params[
'entity']) && $this->params[
'entity'] instanceof \
ElggEntity) {
112 return $this->params[
'entity'];
124 if (isset($this->params[
'user']) && $this->params[
'user'] instanceof \
ElggUser) {
125 return $this->params[
'user'];
146 return elgg_extract(
'_elgg_sequence_id', $this->params);
$params
Saves global plugin settings.
getSequenceID()
When the event is part of a sequence a unique ID is set for each sequence.
if(!$user||!$user->canDelete()) $name
getParams()
Get the parameters passed to the trigger call.
c Accompany it with the information you received as to the offer to distribute corresponding source complete source code means all the source code for all modules it plus any associated interface definition plus the scripts used to control compilation and installation of the executable as a special the source code distributed need not include anything that is normally and so on of the operating system on which the executable unless that component itself accompanies the executable If distribution of executable or object code is made by offering access to copy from a designated then offering equivalent access to copy the source code from the same place counts as distribution of the source even though third parties are not compelled to copy the source along with the object code You may not or distribute the Program except as expressly provided under this License Any attempt otherwise to sublicense or distribute the Program is void
getUserParam()
Gets the "user" key from the params if it holds an ElggUser.
getName()
Get the name of the event.
elgg_extract($key, $array, $default=null, bool $strict=true)
Checks for $array[$key] and returns its value if it exists, else returns $default.
getEntityParam()
Gets the "entity" key from the params if it holds an ElggEntity.
getParam(string $key, $default=null)
Get an element of the params array.
elgg()
Get the DI container.
if($container instanceof ElggGroup &&$container->guid!=elgg_get_page_owner_guid()) $key
getValue()
Get the current value of the event.
getObject()
Get the object of the event.
getType()
Get the type of the event object.
setValue($value)
Update the value.
Models an event passed to event handlers.
__construct(protected PublicContainer $dic, protected string $name, protected string $type, protected $value=null, protected $params=[])
Constructor.