Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'libs/Zend/Validate/GreaterThan.php')
-rw-r--r--libs/Zend/Validate/GreaterThan.php28
1 files changed, 9 insertions, 19 deletions
diff --git a/libs/Zend/Validate/GreaterThan.php b/libs/Zend/Validate/GreaterThan.php
index a9b7a21879..3c7b7931c9 100644
--- a/libs/Zend/Validate/GreaterThan.php
+++ b/libs/Zend/Validate/GreaterThan.php
@@ -1,4 +1,5 @@
<?php
+
/**
* Zend Framework
*
@@ -14,20 +15,22 @@
*
* @category Zend
* @package Zend_Validate
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: GreaterThan.php 20358 2010-01-17 19:03:49Z thomas $
+ * @version $Id: GreaterThan.php 17470 2009-08-08 22:27:09Z thomas $
*/
+
/**
* @see Zend_Validate_Abstract
*/
-// require_once 'Zend/Validate/Abstract.php';
+require_once 'Zend/Validate/Abstract.php';
+
/**
* @category Zend
* @package Zend_Validate
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Validate_GreaterThan extends Zend_Validate_Abstract
@@ -39,7 +42,7 @@ class Zend_Validate_GreaterThan extends Zend_Validate_Abstract
* @var array
*/
protected $_messageTemplates = array(
- self::NOT_GREATER => "'%value%' is not greater than '%min%'",
+ self::NOT_GREATER => "'%value%' is not greater than '%min%'"
);
/**
@@ -59,24 +62,11 @@ class Zend_Validate_GreaterThan extends Zend_Validate_Abstract
/**
* Sets validator options
*
- * @param mixed|Zend_Config $min
+ * @param mixed $min
* @return void
*/
public function __construct($min)
{
- if ($min instanceof Zend_Config) {
- $min = $min->toArray();
- }
-
- if (is_array($min)) {
- if (array_key_exists('min', $min)) {
- $min = $min['min'];
- } else {
- // require_once 'Zend/Validate/Exception.php';
- throw new Zend_Validate_Exception("Missing option 'min'");
- }
- }
-
$this->setMin($min);
}