\TriTan\Common\HooksExecuteActionHook

Summary

Methods
Properties
Constants
__construct()
execute()
$all
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Properties

$all

$all : object

access public

Type

object

Methods

__construct()

__construct(\TriTan\Interfaces\CallAllHookInterface  $all) 

Parameters

\TriTan\Interfaces\CallAllHookInterface $all

execute()

execute(string  $hook, mixed  $arg = '') 

Execute functions/methods hooked on a specific action hook.

This method invokes all functions/methods attached to action hook $hook. It is possible to create new action hooks by simply calling this method, specifying the name of the new hook using the $hook parameter.

You can pass extra arguments to the hooks, much like you can with ApplyFilterHook::apply().

Parameters

string $hook

The name of the action to be executed.

mixed $arg

Optional. Additional arguments which are passed on to the functions/methods hooked to the action. Default empty.