* $div = new ezcWorkflowNodeVariableDiv ( * array ( 'name' = > 'variable name' , 'value' = > $value ) * ); * * If $value is a string, the value of the variable identi?ed by that string is used. * * Incomming nodes: 1 * Outgoing nodes: 1 * * @package Workflow * @version 1.0beta2 */ class ezcWorkflowNodeVariableDiv extends ezcWorkflowNodeVariable { /** * Array with the name of the workflow variable and the value * that it is divided by. * * @var array */ protected $configuration; /** * Perform variable modification. */ protected function doExecute() { $this->variable /= $this->value; } /** * Returns a textual representation of this node. * * @return string */ public function __toString() { return $this->configuration['name'] . ' /= ' . $this->configuration['value']; } } ?>