* $and = new ezcWorkflowConditionAnd ( array ( $condition , ... ) ) ; * * * @package Workflow * @version 1.2alpha1 */ class ezcWorkflowConditionAnd extends ezcWorkflowConditionBooleanSet { /** * @var string */ protected $concatenation = '&&'; /** * Evaluates this condition with $value and returns true if the condition holds and false otherwise. * * @param mixed $value * @return boolean true when the condition holds, false otherwise. * @ignore */ public function evaluate( $value ) { foreach ( $this->conditions as $condition ) { if ( !$condition->evaluate( $value ) ) { return false; } } return true; } } ?>