code/libraries/joomlatools/library/filter/chain.php
public function validate($value)
    {
        $result = true;

        foreach($this->_queue as $filter)
        {
            if($filter->validate($value) === false) {
                $result = false;
            }
        }

        return $result;
    }
public function validate($value)
    {
        $result = true;

        foreach($this->_queue as $filter)
        {
            if($filter->validate($value) === false) {
                $result = false;
            }
        }

        return $result;
    }
public function validate ( $ value ) { $ result = true ; foreach ( $ this -> _queue as $ filter ) { if ( $ filter -> validate ( $ value ) === false ) { $ result = false ; } } return $ result ; }
Validate a scalar or traversable value

NOTE: This should always be a simple yes/no question (is $value valid?), so only true or false should be returned

@param   mixed   $value Value to be validated
@return  bool    True when the value is valid. False otherwise.
Validate a scalar or traversable value