27 self::OPTION_STOPPABLE =>
true,
28 self::OPTION_DEPRECATION_MESSAGE =>
'',
29 self::OPTION_DEPRECATION_VERSION =>
'',
33 if ($events &&
$options[self::OPTION_DEPRECATION_MESSAGE]) {
35 $options[self::OPTION_DEPRECATION_MESSAGE],
36 $options[self::OPTION_DEPRECATION_VERSION],
44 foreach ($events as $callback) {
45 if (!is_callable($callback)) {
47 $this->logger->warn(
"handler for event [$event, $type] is not callable: " describeCallable($callable)
Get a string description of a callback.
trigger($event, $type, $object=null, array $options=array())
Triggers an Elgg event.
$args
Some servers don't allow PHP to check the rewrite, so try via AJAX.
const OPTION_DEPRECATION_MESSAGE
elgg_deprecated_notice($msg, $dep_version, $backtrace_level=1)
Sends a notice about deprecated use of a function, view, etc.
hasHandler($name, $type)
Does the hook have a handler?
const OPTION_DEPRECATION_VERSION
getOrderedHandlers($name, $type)
Returns an ordered array of handlers registered for $name and $type.