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: Float.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_Float extends Zend_Validate_Abstract |
38 class Zend_Validate_Float extends Zend_Validate_Abstract |
39 { |
39 { |
40 const INVALID = 'floatInvalid'; |
40 const INVALID = 'floatInvalid'; |
89 |
89 |
90 /** |
90 /** |
91 * Sets the locale to use |
91 * Sets the locale to use |
92 * |
92 * |
93 * @param string|Zend_Locale $locale |
93 * @param string|Zend_Locale $locale |
|
94 * @return $this |
94 */ |
95 */ |
95 public function setLocale($locale = null) |
96 public function setLocale($locale = null) |
96 { |
97 { |
97 require_once 'Zend/Locale.php'; |
98 require_once 'Zend/Locale.php'; |
98 $this->_locale = Zend_Locale::findLocale($locale); |
99 $this->_locale = Zend_Locale::findLocale($locale); |