addChainFunction()
chainFunctionExists()
getInstance()
getIterator()
getRegisteredChainNames()
isChainRegistered()
registerChain()
removeChainFunction()
unregisterChain()
__construct()
_addChain()
_resetIterator()
__clone()
$_aChains
$_instance
CEC registry class. Used to register chains and chain functions to invoke.
Following 3 types of CEC functions/callbacks are supported at the moment: - Callbacks, which should only be invoked. They don't return a value and have no break conditions, @see CEC_Hook::execute() - Callbacks, which should return a value and/or should modify a passed parameter,
see | \CEC_Hook::executeAndReturn() |
---|---|
see | \CEC_Hook::executeWhileBreakCondition() |
author | Timo A. Hummel |
author | Murat Purc |
package | Contenido Backend classes |
subpackage | CEC |
addChainFunction(string $sChainName, string $sFunctionName) : bool
string
Chain name
string
Name of function/callback to invoke. Feasible values are: - "ClassName->methodName" to invoke a method of a ClassName instance. A instance of the clas will be created here. - "ClassName::methodName" to invoke a static method of ClassName. - "FunctionName" to invoke a function. NOTE: Necessary files must be manually included before or by defined autoloader.
bool
True on success, otherwhise falsechainFunctionExists(string $sChainName, string $sFunctionName) : bool
string
Chain name
string
Name of function to check
bool
getIterator(string $sChainName) : \cIterator
TODO | : cIterator should be replaced by ArrayIterator (@see http://www.php.net/spl) but ArrayIterator uses rewind() instead of reset()... |
---|
string
Chain name
getRegisteredChainNames() : array
array
isChainRegistered(string $sChainName) : bool
string
bool
registerChain(string $sChainName) : void
string
removeChainFunction(string $sChainName, string $sFunctionName)
string
Chain name
string
Name of function to remove from chain.
unregisterChain(string $sChainName) : void
string
__construct() : void
_addChain(string $sChainName, array $aParameters) : void
string
Chain name
array
Chain parameter
_resetIterator(string $sChainName) : void
string
__clone() : void
$_aChains : array