Method | Description | |
---|---|---|
__construct ( |
Constructor | |
registerHandler ( $name, $type, $callback, $priority = 500 ) | ||
trigger ( $event, $type, $object = null, array $options = [] ) | Triggers an Elgg event. | |
triggerAfter ( string $event, string $object_type, string $object = null ) : true | Trigger an "After event" indicating a process has finished. | |
triggerBefore ( string $event, string $object_type, string $object = null ) : boolean | Trigger a "Before event" indicating a process is about to begin. | |
triggerDeprecated ( string $event, string $object_type, string $object = null, string $message, string $version ) : boolean | Trigger an event normally, but send a notice about deprecated use if any handlers are registered. |
public __construct ( |
||
$inspector | Inspector |
public triggerBefore ( string $event, string $object_type, string $object = null ) : boolean | ||
$event | string | The event type. The fired event type will be appended with ":before". |
$object_type | string | The object type |
$object | string | The object involved in the event |
return | boolean | False if any handler returned false, otherwise true |
public triggerDeprecated ( string $event, string $object_type, string $object = null, string $message, string $version ) : boolean | ||
$event | string | The event type |
$object_type | string | The object type |
$object | string | The object involved in the event |
$message | string | The deprecation message |
$version | string | Human-readable *release* version: 1.9, 1.10, ... |
return | boolean |