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

        if(($min = $this->getDefinitionValue($key,'min')) !== false && $value < $min){
            return $this->setError($key,"`{$key}` must be greater than {$min}");
        }//if

        if(($max = $this->getDefinitionValue($key,'max')) !== false && $value > $max){
            return $this->setError($key,"`{$key}` must be less than {$max}");
        }//if

        return true;

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

        if(($min = $this->getDefinitionValue($key,'min')) !== false && $value < $min){
            return $this->setError($key,"`{$key}` must be greater than {$min}");
        }//if

        if(($max = $this->getDefinitionValue($key,'max')) !== false && $value > $max){
            return $this->setError($key,"`{$key}` must be less than {$max}");
        }//if

        return true;

    }
protected final function _isBetweenMinAndMax ( $ key , $ value ) { if ( ( $ min = $ this -> getDefinitionValue ( $ key , 'min' ) ) !== false && $ value < $ min ) { return $ this -> setError ( $ key , "`{$key}` must be greater than {$min}" ) ; } //if if ( ( $ max = $ this -> getDefinitionValue ( $ key , 'max' ) ) !== false && $ value > $ max ) { return $ this -> setError ( $ key , "`{$key}` must be less than {$max}" ) ; } //if return true ; }
Determine if the value is greater than `min` if set, and less than `max` if set.

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

@return boolean
Determine if the value is greater than min if set and less than max if set .