PHP Class ezcWorkflowConditionIsString, Workflow

Typically used together with ezcWorkflowConditionVariable to use the condition on a workflow variable.
Inheritance: extends ezcWorkflowConditionType
Show file Open project: zetacomponents/workflow Class Usage Examples

Public Methods

Method Description
__toString ( ) : string Returns a textual representation of this condition.
evaluate ( mixed $value ) : boolean Evaluates this condition and returns true if $value is a string or false if not.

Method Details

__toString() public method

Returns a textual representation of this condition.
public __toString ( ) : string
return string

evaluate() public method

Evaluates this condition and returns true if $value is a string or false if not.
public evaluate ( mixed $value ) : boolean
$value mixed
return boolean true when the condition holds, false otherwise.