| Elgg
    Version 6.3
    | 
Helpers for providing callable-based APIs. More...
| Public Member Functions | |
| call ($callable, $object, $args) | |
| Call the handler with the event object.  More... | |
| isCallable ($callback) | |
| Test is callback is callable Unlike is_callable(), this function also tests invokable classes.  More... | |
| resolveCallable ($callable) | |
| Resolve a callable, possibly instantiating a class name.  More... | |
| describeCallable ($callable, $file_root='') | |
| Get a string description of a callback.  More... | |
| Protected Attributes | |
| const | CLASS_NAME_PATTERN_53 = '/^(\\\\?[a-z_\x7f-\xff][a-z0-9_\x7f-\xff]*)+$/i' | 
Helpers for providing callable-based APIs.
Definition at line 15 of file HandlersService.php.
| Elgg\HandlersService::call | ( | $callable, | |
| $object, | |||
| $args | |||
| ) | 
Call the handler with the event object.
| callable | $callable | Callable | 
| mixed | $object | Event object | 
| array | $args | Arguments for legacy events | 
Definition at line 30 of file HandlersService.php.
| Elgg\HandlersService::describeCallable | ( | $callable, | |
| $file_root = '' | |||
| ) | 
Get a string description of a callback.
E.g. "function_name", "Static::method", "(ClassName)->method", "(Closure path/to/file.php:23)"
| mixed | $callable | Callable | 
| string | $file_root | If provided, it will be removed from the beginning of file names | 
Definition at line 115 of file HandlersService.php.
| Elgg\HandlersService::isCallable | ( | $callback | ) | 
Test is callback is callable Unlike is_callable(), this function also tests invokable classes.
| mixed | $callback | Callable | 
Definition at line 80 of file HandlersService.php.
| Elgg\HandlersService::resolveCallable | ( | $callable | ) | 
Resolve a callable, possibly instantiating a class name.
| callable | string | $callable | Callable or class name | 
Definition at line 92 of file HandlersService.php.
| 
 | protected | 
Definition at line 19 of file HandlersService.php.