Does anyone know if a new object of type class (defined in logic_hooks.php) is created every time a logic_hook is executed or is that object just created once for the server scope (a singleton)?
For example:
$hook_version = 1;
$hook_array = Array();
$hook_array[âafter_saveâ] = Array();
$hook_array[âafter_saveâ][] = Array(
100,
âCommentâ,
âcustom/modules/test/test.phpâ,
âTestClassâ,
âTestMethodâ);
On save of this module test item, will every save create a object of type TestClass?
Regards,
Vishal.