* $condition = new ezcWorkflowConditionVariable ( 'variable name' , * new ezcWorkflowConditionIsString * ); * * * @package Workflow * @version 1.0.1 */ class ezcWorkflowConditionIsString extends ezcWorkflowConditionType { /** * Evaluates this condition and returns true if $value is a string or false if not. * * @param mixed $value * @return boolean true when the condition holds, false otherwise. * @ignore */ public function evaluate( $value ) { return is_string( $value ); } /** * Returns a textual representation of this condition. * * @return string * @ignore */ public function __toString() { return 'is string'; } } ?>