public function validate($value)
    {
        $this->pushResult();
        if ($this->acceptsEmptyValues === false || $this->isEmpty($value) === false) {
            $this->isValid($value);
        }
        return $this->popResult();
    }
public function validate($value)
    {
        $this->pushResult();
        if ($this->acceptsEmptyValues === false || $this->isEmpty($value) === false) {
            $this->isValid($value);
        }
        return $this->popResult();
    }
public function validate ( $ value ) { $ this -> pushResult ( ) ; if ( $ this -> acceptsEmptyValues === false || $ this -> isEmpty ( $ value ) === false ) { $ this -> isValid ( $ value ) ; } return $ this -> popResult ( ) ; }
Checks if the given value is valid according to the validator, and returns
the Error Messages object which occurred.

@param mixed $value The value that should be validated
@return ErrorResult
@api
Checks if the given value is valid according to the validator and returns the Error Messages object which occurred .