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.