"'%value%' does not appear to be an integer" ); /** * Defined by Zend_Validate_Interface * * Returns true if and only if $value is a valid integer * * @param string $value * @return boolean */ public function isValid($value) { $valueString = (string) $value; $this->_setValue($valueString); $locale = localeconv(); $valueFiltered = str_replace($locale['decimal_point'], '.', $valueString); $valueFiltered = str_replace($locale['thousands_sep'], '', $valueFiltered); if (strval(intval($valueFiltered)) != $valueFiltered) { $this->_error(); return false; } return true; } }