19 defined(
'XOOPS_ROOT_PATH') or die('Restricted access');
37 var $_handlers = array();
52 if (! isset($instance)) {
53 $instance =
new XoopsHandlerRegistry();
66 $this->_handlers[
'kernel'][$name] =&
$handler;
76 function &getHandler($name)
78 if (!isset($this->_handlers[
'kernel'][$name])) {
81 return $this->_handlers[
'kernel'][$name];
89 function unsetHandler($name)
91 unset($this->_handlers[
'kernel'][$name]);
116 if (!isset($this->_handlers[
'module'][
$module][$name])) {
119 return $this->_handlers[
'module'][
$module][$name];
130 unset($this->_handlers[
'module'][
$module][$name]);