API - XOOPS 2.5.11 Beta 2
By monxoops.fr
XoopsHandlerRegistry Class Reference

Public Member Functions

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

Static Public Member Functions

 instance ()
 

Data Fields

 $_handlers = array()
 

Member Function Documentation

◆ getHandler()

getHandler (   $name)

Get a registered handler class object

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

◆ getModuleHandler()

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
XoopsObjectHandler XoopsObjectHandler, FALSE if not registered

◆ instance()

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

@staticvar object The only instance of this class

Returns
XoopsHandlerRegistry Reference to the only instance of this class

◆ setHandler()

setHandler (   $name,
XoopsObjectHandler  $handler 
)

Register a handler class object

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

◆ setModuleHandler()

setModuleHandler (   $module,
  $name,
XoopsObjectHandler  $handler 
)

Register a handler class object for a module

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

◆ unsetHandler()

unsetHandler (   $name)

Unregister a handler class object

Parameters
string$nameShort name of a handler class

◆ unsetModuleHandler()

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

Field Documentation

◆ $_handlers

$_handlers = array()

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