Workflow: ezcWorkflowNodeArithmeticBase
[ ]
[ ]
[ ]
[ ]
[ ]
Class: ezcWorkflowNodeArithmeticBase
|
Base class for nodes that implement simple integer arithmetic. [
source]
This class takes care of the configuration and setting and getting of data. The data to manipulate is put into the $variable member. The manipulating parameter is put into the member $value.
Implementors must implement the method doExecute() and put the result of the computation in $value member variable.
Parents
ezcWorkflowNode
|
--ezcWorkflowNodeArithmeticBase
Descendents
Inherited Constants
From
ezcWorkflowNode:
Member Variables
|
protected mixed |
$operand
= null
Contains the operand (if any). |
|
protected mixed |
$variable
Contains the data to manipulate. |
Inherited Member Variables
From
ezcWorkflowNode:
Method Summary
|
public ezcWorkflowNodeArithmeticBase |
__construct(
$configuration )
Constructs a new action node with the configuration $configuration. |
|
protected abstract void |
doExecute(
)
Implementors should perform the variable computation in this method. |
Inherited Methods
From
ezcWorkflowNode :
Methods
__construct
ezcWorkflowNodeArithmeticBase __construct(
mixed
$configuration )
Constructs a new action node with the configuration $configuration.
Configuration format
- String: The name of the workflow variable to operate on.
- Array:
- name: The name of the workflow variable to operate on.
- operand: Name of workflow variable or a numerical value.
Not used by implementations without an operand.
Parameters
| Name |
Type |
Description |
$configuration |
mixed |
|
Throws
| Class | Description |
ezcWorkflowDefinitionStorageException |
|
Redefinition of
doExecute
void doExecute(
)
Implementors should perform the variable computation in this method.
doExecute() is called automatically by execute().
Redefined in descendants as
Last updated: Wed, 28 Nov 2007