Prado\Web\UI\WebControls\TRangeValidator::isValidString PHP Method

isValidString() protected method

Uses strcmp for comparision.
protected isValidString ( $value ) : boolean
return boolean true if the string is within range.
    protected function isValidString($value)
    {
        $minValue = $this->getMinValue();
        $maxValue = $this->getMaxValue();
        $valid = true;
        if ($minValue !== '') {
            $valid = $valid && $this->isGreaterThan(strcmp($value, $minValue), 0);
        }
        if ($maxValue !== '') {
            $valid = $valid && $this->isLessThan(strcmp($value, $maxValue), 0);
        }
        return $valid;
    }