XOOPS 2.5.6  Final
 All Classes Namespaces Files Functions Variables Pages
XoopsHandlerRegistry Class Reference

Public Member Functions

getHandler ($name)
 
getModuleHandler ($module, $name)
 
 setHandler ($name, &$handler)
 
 setModuleHandler ($module, $name, &$handler)
 
 unsetHandler ($name)
 
 unsetModuleHandler ($module, $name)
 

Static Public Member Functions

instance ()
 

Public Attributes

 $_handlers = array()
 

Detailed Description

Definition at line 29 of file handlerregistry.php.

Member Function Documentation

& XoopsHandlerRegistry::getHandler (   $name)

Get a registered handler class object

Parameters
string$nameShort name of a handler class
Returns
object XoopsObjectHandler, FALSE if not registered

Definition at line 76 of file handlerregistry.php.

& XoopsHandlerRegistry::getModuleHandler (   $module,
  $name 
)

Get a registered handler class object for a module

Parameters
string$moduleDirectory name of a module
string$nameShort name of a handler class
Returns
object XoopsObjectHandler, FALSE if not registered

Definition at line 114 of file handlerregistry.php.

References $module.

& XoopsHandlerRegistry::instance ( )
static

get a reference to the only instance of this class

if the class has not been instantiated yet, this will also take care of that

object The only instance of this class

Returns
object Reference to the only instance of this class

Definition at line 49 of file handlerregistry.php.

XoopsHandlerRegistry::setHandler (   $name,
$handler 
)

Register a handler class object

Parameters
string$nameShort name of a handler class
object&$handlerXoopsObjectHandler class object

Definition at line 64 of file handlerregistry.php.

References $handler.

XoopsHandlerRegistry::setModuleHandler (   $module,
  $name,
$handler 
)

Register a handler class object for a module

Parameters
string$moduleDirectory name of a module
string$nameShort name of a handler class
object&$handlerXoopsObjectHandler class object

Definition at line 101 of file handlerregistry.php.

References $handler, and $module.

XoopsHandlerRegistry::unsetHandler (   $name)

Unregister a handler class object

Parameters
string$nameShort name of a handler class

Definition at line 89 of file handlerregistry.php.

XoopsHandlerRegistry::unsetModuleHandler (   $module,
  $name 
)

Unregister a handler class object for a module

Parameters
string$moduleDirectory name of a module
string$nameShort name of a handler class

Definition at line 128 of file handlerregistry.php.

References $module.

Member Data Documentation

XoopsHandlerRegistry::$_handlers = array()

Definition at line 37 of file handlerregistry.php.


The documentation for this class was generated from the following file: