16 const OPTION_STOPPABLE =
'stoppable';
17 const OPTION_DEPRECATION_MESSAGE =
'deprecation_message';
18 const OPTION_DEPRECATION_VERSION =
'deprecation_version';
29 self::OPTION_STOPPABLE =>
true,
30 self::OPTION_DEPRECATION_MESSAGE =>
'',
31 self::OPTION_DEPRECATION_VERSION =>
'',
34 $events = $this->hasHandler($event,
$type);
35 if ($events &&
$options[self::OPTION_DEPRECATION_MESSAGE]) {
37 $options[self::OPTION_DEPRECATION_MESSAGE],
38 $options[self::OPTION_DEPRECATION_VERSION],
43 $events = $this->getOrderedHandlers($event,
$type);
46 foreach ($events as $callback) {
47 if (!is_callable($callback)) {
50 $this->logger->warn(
"handler for event [$event, $type] is not callable: " 51 . $inspector->describeCallable($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.
elgg_deprecated_notice($msg, $dep_version, $backtrace_level=1)
Log a notice about deprecated use of a function, view, etc.