protected function filterAlfanumeric($field, $details, $label, $message) {
        if (!$this->filterString($field, $details, $label, $message)) {
            return false;
        }
        if (ctype_alnum($this->getValue($field))) {
            return true;
        }

        throw new \Exception($message ? $message : $this->translate("$label must be alfanumeric!"));
    }
protected function filterAlfanumeric($field, $details, $label, $message) {
        if (!$this->filterString($field, $details, $label, $message)) {
            return false;
        }
        if (ctype_alnum($this->getValue($field))) {
            return true;
        }

        throw new \Exception($message ? $message : $this->translate("$label must be alfanumeric!"));
    }
protected function filterAlfanumeric ( $ field , $ details , $ label , $ message ) { if ( ! $ this -> filterString ( $ field , $ details , $ label , $ message ) ) { return false ; } if ( ctype_alnum ( $ this -> getValue ( $ field ) ) ) { return true ; } throw new \ Exception ( $ message ? $ message : $ this -> translate ( "$label must be alfanumeric!" ) ) ; }
Checks if it's string, and then if it's alfanumeric. Same options as for
string check.
@param string $field
@param string [string] $details
@param string $label
@param string $message
@return boolean
@throws \Exception
Checks if it s string and then if it s alfanumeric . Same options as for string check .