diff options
author | mattpiwik <matthieu.aubry@gmail.com> | 2007-09-14 17:39:18 +0400 |
---|---|---|
committer | mattpiwik <matthieu.aubry@gmail.com> | 2007-09-14 17:39:18 +0400 |
commit | 072bada4c51bc7ec7549ebf744a5a5e424771033 (patch) | |
tree | 89025d31219423c374cc893d34137f3a9ad204eb /libs/Zend/Validate/Int.php | |
parent | 5e672e15ae582ec495dd6ae79e5297c336e26afc (diff) |
Cleaned the SVN deleting useless libs
still phpdocumentor is huge... need to remove it from the releases
git-svn-id: http://dev.piwik.org/svn/trunk@81 59fd770c-687e-43c8-a1e3-f5a4ff64c105
Diffstat (limited to 'libs/Zend/Validate/Int.php')
-rwxr-xr-x | libs/Zend/Validate/Int.php | 75 |
1 files changed, 0 insertions, 75 deletions
diff --git a/libs/Zend/Validate/Int.php b/libs/Zend/Validate/Int.php deleted file mode 100755 index dc1d7de831..0000000000 --- a/libs/Zend/Validate/Int.php +++ /dev/null @@ -1,75 +0,0 @@ -<?php - -/** - * Zend Framework - * - * LICENSE - * - * This source file is subject to the new BSD license that is bundled - * with this package in the file LICENSE.txt. - * It is also available through the world-wide-web at this URL: - * http://framework.zend.com/license/new-bsd - * If you did not receive a copy of the license and are unable to - * obtain it through the world-wide-web, please send an email - * to license@zend.com so we can send you a copy immediately. - * - * @category Zend - * @package Zend_Validate - * @copyright Copyright (c) 2005-2007 Zend Technologies USA Inc. (http://www.zend.com) - * @license http://framework.zend.com/license/new-bsd New BSD License - * @version $Id: Int.php 4974 2007-05-25 21:11:56Z bkarwin $ - */ - - -/** - * @see Zend_Validate_Abstract - */ -require_once 'Zend/Validate/Abstract.php'; - - -/** - * @category Zend - * @package Zend_Validate - * @copyright Copyright (c) 2005-2007 Zend Technologies USA Inc. (http://www.zend.com) - * @license http://framework.zend.com/license/new-bsd New BSD License - */ -class Zend_Validate_Int extends Zend_Validate_Abstract -{ - - const NOT_INT = 'notInt'; - - /** - * @var array - */ - protected $_messageTemplates = array( - self::NOT_INT => "'%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; - } - -} |