CEC chain item class.

author Timo A. Hummel
author Murat Purc
package CONTENIDO Backend Classes
subpackage CEC

 Methods

Constructor, sets the CEC chain item properties.

__construct(string $sChainName, string $sFunctionName, array $aParameters) : void

Parameters

$sChainName

string

$sFunctionName

string

$aParameters

array

Invokes the CEC function/callback.

execute() : mixed

Returns

mixedIf available, the result of the CEC function/callback

Returns the callback

getCallback() : string

Returns

stringarray

Returns the chain name

getChainName() : string

Returns

string

Returns the function name

getFunctionName() : string

Returns

string

Returns the function name

getParameters() : array

Returns

array

Will be invoked by execute() method.

getTemporaryArguments() : void

If temporary arguments where set before, it returns them and resets the property.

Sets the callback

setCallback($callback) : string

Parameters

$callback

Exceptions

\cInvalidArgumentException if the given callback is not a string or an array

Returns

stringarray

Sets the chain name

setChainName(string $sChainName) : void

Parameters

$sChainName

string

Sets the function name

setFunctionName(string $sFunctionName) : void

Parameters

$sFunctionName

string

Sets the callback parameters

setParameters(array $aParameters) : void

Parameters

$aParameters

array

Another way to set the arguments before invoking execute() method.

setTemporaryArguments(array $args) : void

Parameters

$args

array

 Properties

 

$_aParameters : array
 

$_mCallback : array

Contains either the function name to invoke, or a indexed array (class/object and method) and it's method to execute.

 

$_mTemporaryArguments : array
 

$_sChainName : string
 

$_sFunctionName : string