phpbb_hook
class phpbb_hook
phpBB Hook Class
Properties
$hooks | Registered hooks |
||
$hook_result | Results returned by functions called |
||
$current_hook | internal pointer |
Methods
Initialize hook class.
Register function/method to be called within hook This function is normally called by the modification/application to attach/register the functions.
Calling all functions/methods attached to a specified hook.
Get result from previously called functions/methods for the same hook
Check if the called functions/methods returned something.
Give actual result from called functions/methods back.
Add new function to the allowed hooks.
Remove function from the allowed hooks.
Details
at line 47
__construct(array $valid_hooks)
Initialize hook class.
at line 68
register(mixed $definition, mixed $hook, string $mode = 'normal')
Register function/method to be called within hook This function is normally called by the modification/application to attach/register the functions.
at line 109
bool
call_hook(mixed $definition)
Calling all functions/methods attached to a specified hook.
Called by the function allowing hooks...
at line 162
mixed
previous_hook_result(mixed $definition)
Get result from previously called functions/methods for the same hook
at line 181
bool
hook_return(mixed $definition)
Check if the called functions/methods returned something.
at line 200
mixed
hook_return_result(mixed $definition)
Give actual result from called functions/methods back.
at line 220
add_hook(mixed $definition)
Add new function to the allowed hooks.
at line 235
remove_hook(mixed $definition)
Remove function from the allowed hooks.