Atomik::execute()
Atomik::Execute::Start
Fired at the beginning of a call to the Atomik::execute() method.
-
string &$action
The action name
-
array &$context
The context associated to the action
-
boolean &$triggerError
Whether to throw an exception when the action and the view files are missing
function myAtomikExecuteStartHandler(&$action, &$context, &$triggerError)
{
// your code
}
Atomik::listenEvent('Atomik::Execute::Start', 'myAtomikExecuteStartHandler');
Atomik::Execute::Before
Fired before the inclusion of the action file.
-
string &$action
The action name
-
array &$context
The context associated to the action
-
string &$actionFilename
The action file's name
-
string &$methodActionFilename
The method action file's name
-
boolean &$triggerError
Whether to throw an exception when the action and the view files are missing
function myAtomikExecuteBeforeHandler(&$action, &$context, &$actionFilename, &$methodActionFilename, &$triggerError)
{
// your code
}
Atomik::listenEvent('Atomik::Execute::Before', 'myAtomikExecuteBeforeHandler');
Atomik::Execute::After
Fired after the inclusion of the action file.
-
string $action
The action name
-
array &$context
The context associated to the action
-
array &$vars
Variables defined in the action file
-
boolean &$triggerError
Whether to throw an exception when the action and the view files are missing
function myAtomikExecuteAfterHandler($action, &$context, &$vars, &$triggerError)
{
// your code
}
Atomik::listenEvent('Atomik::Execute::After', 'myAtomikExecuteAfterHandler');

