equal
deleted
inserted
replaced
12 * obtain it through the world-wide-web, please send an email |
12 * obtain it through the world-wide-web, please send an email |
13 * to license@zend.com so we can send you a copy immediately. |
13 * to license@zend.com so we can send you a copy immediately. |
14 * |
14 * |
15 * @category Zend |
15 * @category Zend |
16 * @package Zend_Validate |
16 * @package Zend_Validate |
17 * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com) |
17 * @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com) |
18 * @license http://framework.zend.com/license/new-bsd New BSD License |
18 * @license http://framework.zend.com/license/new-bsd New BSD License |
19 * @version $Id: Int.php 24593 2012-01-05 20:35:02Z matthew $ |
19 * @version $Id$ |
20 */ |
20 */ |
21 |
21 |
22 /** |
22 /** |
23 * @see Zend_Validate_Abstract |
23 * @see Zend_Validate_Abstract |
24 */ |
24 */ |
30 require_once 'Zend/Locale/Format.php'; |
30 require_once 'Zend/Locale/Format.php'; |
31 |
31 |
32 /** |
32 /** |
33 * @category Zend |
33 * @category Zend |
34 * @package Zend_Validate |
34 * @package Zend_Validate |
35 * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com) |
35 * @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com) |
36 * @license http://framework.zend.com/license/new-bsd New BSD License |
36 * @license http://framework.zend.com/license/new-bsd New BSD License |
37 */ |
37 */ |
38 class Zend_Validate_Int extends Zend_Validate_Abstract |
38 class Zend_Validate_Int extends Zend_Validate_Abstract |
39 { |
39 { |
40 const INVALID = 'intInvalid'; |
40 const INVALID = 'intInvalid'; |
91 |
91 |
92 /** |
92 /** |
93 * Sets the locale to use |
93 * Sets the locale to use |
94 * |
94 * |
95 * @param string|Zend_Locale $locale |
95 * @param string|Zend_Locale $locale |
|
96 * @return $this |
96 */ |
97 */ |
97 public function setLocale($locale = null) |
98 public function setLocale($locale = null) |
98 { |
99 { |
99 require_once 'Zend/Locale.php'; |
100 require_once 'Zend/Locale.php'; |
100 $this->_locale = Zend_Locale::findLocale($locale); |
101 $this->_locale = Zend_Locale::findLocale($locale); |