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/Db/RecordExists.php')
-rw-r--r--libs/Zend/Validate/Db/RecordExists.php52
1 files changed, 27 insertions, 25 deletions
diff --git a/libs/Zend/Validate/Db/RecordExists.php b/libs/Zend/Validate/Db/RecordExists.php
index bf96b96f5c..2d753e4b0a 100644
--- a/libs/Zend/Validate/Db/RecordExists.php
+++ b/libs/Zend/Validate/Db/RecordExists.php
@@ -1,4 +1,5 @@
<?php
+
/**
* Zend Framework
*
@@ -14,38 +15,39 @@
*
* @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: RecordExists.php 20096 2010-01-06 02:05:09Z bkarwin $
- */
-
+ * @version $Id: RecordExists.php 16971 2009-07-22 18:05:45Z mikaelkael $
+ */
+
+
/**
* @see Zend_Validate_Db_Abstract
- */
-// require_once 'Zend/Validate/Db/Abstract.php';
-
+ */
+require_once 'Zend/Validate/Db/Abstract.php';
+
/**
* Confirms a record exists in a table.
- *
+ *
* @category Zend
* @package Zend_Validate
* @uses Zend_Validate_Db_Abstract
- * @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_Db_RecordExists extends Zend_Validate_Db_Abstract
-{
- public function isValid($value)
- {
- $valid = true;
- $this->_setValue($value);
-
- $result = $this->_query($value);
- if (!$result) {
- $valid = false;
- $this->_error(self::ERROR_NO_RECORD_FOUND);
- }
-
- return $valid;
- }
+ */
+class Zend_Validate_Db_RecordExists extends Zend_Validate_Db_Abstract
+{
+ public function isValid($value)
+ {
+ $valid = true;
+ $this->_setValue($value);
+
+ $result = $this->_query($value);
+ if (!$result) {
+ $valid = false;
+ $this->_error(self::ERROR_NO_RECORD_FOUND);
+ }
+
+ return $valid;
+ }
}