public function apply($value)
    {
        $modified = false;

        foreach ($this->filters as $filter) {
            $result = $filter->apply($value);

            if ($result === false) {
                return false;
            } elseif ($result === true) {
            } else {
                $modified = true;
                $value    = $result;
            }
        }

        return $modified ? $value : true;
    }
public function apply($value)
    {
        $modified = false;

        foreach ($this->filters as $filter) {
            $result = $filter->apply($value);

            if ($result === false) {
                return false;
            } elseif ($result === true) {
            } else {
                $modified = true;
                $value    = $result;
            }
        }

        return $modified ? $value : true;
    }
public function apply ( $ value ) { $ modified = false ; foreach ( $ this -> filters as $ filter ) { $ result = $ filter -> apply ( $ value ) ; if ( $ result === false ) { return false ; } elseif ( $ result === true ) { } else { $ modified = true ; $ value = $ result ; } } return $ modified ? $ value : true ; }
Returns true if all filters allow the value

@param mixed $value
@return boolean
Returns true if all filters allow the value