PHP Class ezcWorkflowConditionVariables, Workflow

Inheritance: implements ezcWorkflowCondition
Afficher le fichier Open project: zetacomponents/workflow Class Usage Examples

Protected Properties

Свойство Type Description
$condition ezcWorkflowCondition The condition that is applied to the variable.
$variableNameA string The name of the first variable the condition is applied to.
$variableNameB string The name of the second variable the condition is applied to.

Méthodes publiques

Méthode Description
__construct ( string $variableNameA, string $variableNameB, ezcWorkflowCondition $condition ) Constructor.
__toString ( ) : string Returns a textual representation of this condition.
evaluate ( mixed $value ) : boolean Evaluates this condition.
getCondition ( ) : ezcWorkflowCondition Returns the condition.
getVariableNames ( ) : array Returns the names of the variables the condition is evaluated for.

Method Details

__construct() public méthode

Constructor.
public __construct ( string $variableNameA, string $variableNameB, ezcWorkflowCondition $condition )
$variableNameA string
$variableNameB string
$condition ezcWorkflowCondition

__toString() public méthode

Returns a textual representation of this condition.
public __toString ( ) : string
Résultat string

evaluate() public méthode

Evaluates this condition.
public evaluate ( mixed $value ) : boolean
$value mixed
Résultat boolean true when the condition holds, false otherwise.

getCondition() public méthode

Returns the condition.
public getCondition ( ) : ezcWorkflowCondition
Résultat ezcWorkflowCondition

getVariableNames() public méthode

Returns the names of the variables the condition is evaluated for.
public getVariableNames ( ) : array
Résultat array

Property Details

$condition protected_oe property

The condition that is applied to the variable.
protected ezcWorkflowCondition $condition
Résultat ezcWorkflowCondition

$variableNameA protected_oe property

The name of the first variable the condition is applied to.
protected string $variableNameA
Résultat string

$variableNameB protected_oe property

The name of the second variable the condition is applied to.
protected string $variableNameB
Résultat string