public function isValid($group_name, $object = null)
    {
        if (false === $this->isValidGroup($group_name)) {
            throw new InvalidArgumentException("$group_name is not a valid cache validator group.");
        }

        $is_valid = true;
        foreach ($this->validators[$group_name] as $validator) {
            if (false === $validator->isValid($object)) {
                $is_valid = false;
                break;
            }
        }

        return $is_valid;
    }
public function isValid($group_name, $object = null)
    {
        if (false === $this->isValidGroup($group_name)) {
            throw new InvalidArgumentException("$group_name is not a valid cache validator group.");
        }

        $is_valid = true;
        foreach ($this->validators[$group_name] as $validator) {
            if (false === $validator->isValid($object)) {
                $is_valid = false;
                break;
            }
        }

        return $is_valid;
    }
public function isValid ( $ group_name , $ object = null ) { if ( false === $ this -> isValidGroup ( $ group_name ) ) { throw new InvalidArgumentException ( "$group_name is not a valid cache validator group." ) ; } $ is_valid = true ; foreach ( $ this -> validators [ $ group_name ] as $ validator ) { if ( false === $ validator -> isValid ( $ object ) ) { $ is_valid = false ; break ; } } return $ is_valid ; }
It will invoke every validators of provided group name to define if current set is valid or not.

@param string $group_name the validator group name to use
@param mixed  $object

@return boolean return true if every validators return true, else false
It will invoke every validators of provided group name to define if current set is valid or not .