public function setConfig($config)
    {
        if (0 >= $config) {
            throw new HTML_QuickForm2_InvalidArgumentException(
                'MaxFileSize Rule requires a positive size limit, ' .
                preg_replace('/\s+/', ' ', var_export($config, true)) . ' given'
            );
        }
        return parent::setConfig($config);
    }
public function setConfig($config)
    {
        if (0 >= $config) {
            throw new HTML_QuickForm2_InvalidArgumentException(
                'MaxFileSize Rule requires a positive size limit, ' .
                preg_replace('/\s+/', ' ', var_export($config, true)) . ' given'
            );
        }
        return parent::setConfig($config);
    }
public function setConfig ( $ config ) { if ( 0 >= $ config ) { throw new HTML_QuickForm2_InvalidArgumentException ( 'MaxFileSize Rule requires a positive size limit, ' . preg_replace ( '/\s+/' , ' ' , var_export ( $ config , true ) ) . ' given' ) ; } return parent :: setConfig ( $ config ) ; }
Sets maximum allowed file size

@param    int     Maximum allowed size
@return   HTML_QuickForm2_Rule
@throws   HTML_QuickForm2_InvalidArgumentException    if a bogus size limit was provided
Sets maximum allowed file size