public function setMax($max)
    {
        if (!is_string($max) && !is_numeric($max)) {

            throw new Zend_Validate_Exception ('Invalid options to validator provided');
        }

        $max = (integer) $this->_fromByteString($max);
        $min = $this->getMin(true);
        if (($min !== null) && ($max < $min)) {

            throw new Zend_Validate_Exception("The maximum must be greater than or equal to the minimum filesize, but "
                                            . "$max < $min");
        }

        $this->_max = $max;
        return $this;
    }
public function setMax($max)
    {
        if (!is_string($max) && !is_numeric($max)) {

            throw new Zend_Validate_Exception ('Invalid options to validator provided');
        }

        $max = (integer) $this->_fromByteString($max);
        $min = $this->getMin(true);
        if (($min !== null) && ($max < $min)) {

            throw new Zend_Validate_Exception("The maximum must be greater than or equal to the minimum filesize, but "
                                            . "$max < $min");
        }

        $this->_max = $max;
        return $this;
    }
public function setMax ( $ max ) { if ( ! is_string ( $ max ) && ! is_numeric ( $ max ) ) { throw new Zend_Validate_Exception ( 'Invalid options to validator provided' ) ; } $ max = ( integer ) $ this -> _fromByteString ( $ max ) ; $ min = $ this -> getMin ( true ) ; if ( ( $ min !== null ) && ( $ max < $ min ) ) { throw new Zend_Validate_Exception ( "The maximum must be greater than or equal to the minimum filesize, but " . "$max < $min" ) ; } $ this -> _max = $ max ; return $ this ; }
Sets the maximum filesize

@param  integer $max The maximum filesize
@throws Zend_Validate_Exception When max is smaller than min
@return Zend_Validate_StringLength Provides a fluent interface
Sets the maximum filesize