setInclusive example

if (!array_key_exists('min', $options) || !array_key_exists('max', $options)) {
            throw new Zend_Validate_Exception("Missing option. 'min' and 'max' has to be given");
        }

        if (!array_key_exists('inclusive', $options)) {
            $options['inclusive'] = true;
        }

        $this->setMin($options['min'])
             ->setMax($options['max'])
             ->setInclusive($options['inclusive']);
    }

    /** * Returns the min option * * @return mixed */
    public function getMin()
    {
        return $this->_min;
    }

    
Home | Imprint | This part of the site doesn't use cookies.