core/classes/DataModel.class.php
protected final function _isValidInt($key,$value){

        if(!is_numeric($value) || strpos($value,'.') !== false){
            return $this->setError($key,"`{$key}` must be a integer");
        }//if

        if(!$this->_isBetweenMinAndMax($key,$value)){
            return false;
        }//if

        return true;

    }
protected final function _isValidInt($key,$value){

        if(!is_numeric($value) || strpos($value,'.') !== false){
            return $this->setError($key,"`{$key}` must be a integer");
        }//if

        if(!$this->_isBetweenMinAndMax($key,$value)){
            return false;
        }//if

        return true;

    }
protected final function _isValidInt ( $ key , $ value ) { if ( ! is_numeric ( $ value ) || strpos ( $ value , '.' ) !== false ) { return $ this -> setError ( $ key , "`{$key}` must be a integer" ) ; } //if if ( ! $ this -> _isBetweenMinAndMax ( $ key , $ value ) ) { return false ; } //if return true ; }
Determine if the value is a valid int.

@param string $key The data key.
@param mixed $value The data value.

@return boolean
Determine if the value is a valid int .