PHP Class ezcWorkflowConditionVariable, 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.
$variableName string The name of the variable the condition is applied to.

Méthodes publiques

Méthode Description
__construct ( string $variableName, ezcWorkflowCondition $condition ) Constructor.
__toString ( ) : string Returns a textual representation of this condition.
evaluate ( mixed $value ) : boolean Evaluates this condition.
getCondition ( ) : ezcWorkflowCondition Returns the condition.
getVariableName ( ) : string Returns the name of the variable the condition is evaluated for.

Method Details

__construct() public méthode

Constructor.
public __construct ( string $variableName, ezcWorkflowCondition $condition )
$variableName 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

getVariableName() public méthode

Returns the name of the variable the condition is evaluated for.
public getVariableName ( ) : string
Résultat string

Property Details

$condition protected_oe property

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

$variableName protected_oe property

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