toInteger example


    public function filter($value)
    {
        if (is_array($value)) {
            $date = new Zend_Date($value$this->_options['locale']);
            return $date->toString($this->_options['date_format']);
        } else if ($this->_options['precision'] === 0) {
            return Zend_Locale_Format::toInteger($value$this->_options);
        } else if ($this->_options['precision'] === null) {
            return Zend_Locale_Format::toFloat($value$this->_options);
        }

        return Zend_Locale_Format::toNumber($value$this->_options);
    }
}
Home | Imprint | This part of the site doesn't use cookies.