class phpbb_hook
phpBB Hook Class
Properties
$hooks | Registered hooks | |
$hook_result | Results returned by functions called | |
$current_hook | internal pointer |
Methods
phpbb_hook(array $valid_hooks)
Initialize hook class. |
||
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. |
||
bool |
call_hook(mixed $definition)
Calling all functions/methods attached to a specified hook. |
|
mixed |
previous_hook_result(mixed $definition)
Get result from previously called functions/methods for the same hook |
|
bool |
hook_return(mixed $definition)
Check if the called functions/methods returned something. |
|
mixed |
hook_return_result(mixed $definition)
Give actual result from called functions/methods back. |
|
add_hook(mixed $definition)
Add new function to the allowed hooks. |
||
remove_hook(mixed $definition)
Remove function from the allowed hooks. |
Details
at line 47
public
phpbb_hook(array $valid_hooks)
Initialize hook class.
at line 68
public
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
public bool
call_hook(mixed $definition)
Calling all functions/methods attached to a specified hook.
Called by the function allowing hooks...
at line 162
public mixed
previous_hook_result(mixed $definition)
Get result from previously called functions/methods for the same hook
at line 181
public bool
hook_return(mixed $definition)
Check if the called functions/methods returned something.
at line 200
public mixed
hook_return_result(mixed $definition)
Give actual result from called functions/methods back.
at line 220
public
add_hook(mixed $definition)
Add new function to the allowed hooks.
at line 235
public
remove_hook(mixed $definition)
Remove function from the allowed hooks.