15     const OPTION_STOPPABLE = 
'stoppable';
 
   16     const OPTION_DEPRECATION_MESSAGE = 
'deprecation_message';
 
   17     const OPTION_DEPRECATION_VERSION = 
'deprecation_version';
 
   28             self::OPTION_STOPPABLE => 
true,
 
   29             self::OPTION_DEPRECATION_MESSAGE => 
'',
 
   30             self::OPTION_DEPRECATION_VERSION => 
'',
 
   33         $events = $this->hasHandler($event, 
$type);
 
   34         if ($events && 
$options[self::OPTION_DEPRECATION_MESSAGE]) {
 
   36                 $options[self::OPTION_DEPRECATION_MESSAGE],
 
   37                 $options[self::OPTION_DEPRECATION_VERSION],
 
   42         $events = $this->getOrderedHandlers($event, 
$type);
 
   45         foreach ($events as $callback) {
 
   46             if (!is_callable($callback)) {
 
   48                     $this->logger->warn(
"handler for event [$event, $type] is not callable: " 
   49                                         . $this->describeCallable($callback));
 
trigger($event, $type, $object=null, array $options=array())
Triggers an Elgg event.
 
elgg_deprecated_notice($msg, $dep_version, $backtrace_level=1)
Sends a notice about deprecated use of a function, view, etc.
 
$args
Some servers don't allow PHP to check the rewrite, so try via AJAX.