src/Ouzo/Core/Validatable.php
public function validateStringMaxLength($value, $maxLength, $errorMessage, $errorField = null)
    {
        if (strlen($value) > $maxLength) {
            $this->error($errorMessage);
            $this->_errorFields[] = $errorField;
        }
    }
public function validateStringMaxLength($value, $maxLength, $errorMessage, $errorField = null)
    {
        if (strlen($value) > $maxLength) {
            $this->error($errorMessage);
            $this->_errorFields[] = $errorField;
        }
    }
public function validateStringMaxLength ( $ value , $ maxLength , $ errorMessage , $ errorField = null ) { if ( strlen ( $ value ) > $ maxLength ) { $ this -> error ( $ errorMessage ) ; $ this -> _errorFields [ ] = $ errorField ; } }
Checks whether string does not exceed max length
@param string $value - string to check
@param int $maxLength - max length which doesn't cause error
@param $errorMessage - error message
@param null $errorField
Checks whether string does not exceed max length