src/Ouzo/Core/Validatable.php
public function validateTrue($value, $errorMessage, $errorField = null)
    {
        if (!$value) {
            $this->error($errorMessage);
            $this->_errorFields[] = $errorField;
        }
    }
public function validateTrue($value, $errorMessage, $errorField = null)
    {
        if (!$value) {
            $this->error($errorMessage);
            $this->_errorFields[] = $errorField;
        }
    }
public function validateTrue ( $ value , $ errorMessage , $ errorField = null ) { if ( ! $ value ) { $ this -> error ( $ errorMessage ) ; $ this -> _errorFields [ ] = $ errorField ; } }
Checks whether value is true, if not it saves error
@param $value - value to check whether is true
(values which are considered as TRUE or FALSE are presented here http://php.net/manual/en/types.comparisons.php )
@param $errorMessage - error message
@param null $errorField
Checks whether value is true if not it saves error