PHP 클래스 ezcWorkflowNodeArithmeticBase, Workflow

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.
상속: extends ezcWorkflowNode
파일 보기 프로젝트 열기: zetacomponents/workflow

보호된 프로퍼티들

프로퍼티 타입 설명
$operand mixed Contains the operand (if any).
$variable mixed Contains the data to manipulate.

공개 메소드들

메소드 설명
__construct ( mixed $configuration ) Constructs a new action node with the configuration $configuration.
execute ( ezcWorkflowExecution $execution ) : boolean Executes this node and returns true.

보호된 메소드들

메소드 설명
doExecute ( ) Implementors should perform the variable computation in this method.

메소드 상세

__construct() 공개 메소드

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.
public __construct ( mixed $configuration )
$configuration mixed

doExecute() 추상적인 보호된 메소드

doExecute() is called automatically by execute().
abstract protected doExecute ( )

execute() 공개 메소드

Expects the configuration parameters 'name' the name of the workflow variable to work on and the parameter 'value' the value to operate with or the name of the workflow variable containing the value.
public execute ( ezcWorkflowExecution $execution ) : boolean
$execution ezcWorkflowExecution
리턴 boolean

프로퍼티 상세

$operand 보호되어 있는 프로퍼티

Contains the operand (if any).
protected mixed $operand
리턴 mixed

$variable 보호되어 있는 프로퍼티

Contains the data to manipulate.
protected mixed $variable
리턴 mixed