Moodle  2.2.1
http://www.collinsharper.com
C:/xampp/htdocs/moodle/lib/zend/Zend/Validate/Db/RecordExists.php
Go to the documentation of this file.
00001 <?php
00025 require_once 'Zend/Validate/Db/Abstract.php';
00026 
00036 class Zend_Validate_Db_RecordExists extends Zend_Validate_Db_Abstract
00037 {
00038     public function isValid($value)
00039     {
00040         $valid = true;
00041         $this->_setValue($value);
00042 
00043         $result = $this->_query($value);
00044         if (!$result) {
00045             $valid = false;
00046             $this->_error(self::ERROR_NO_RECORD_FOUND);
00047         }
00048 
00049         return $valid;
00050     }
00051 }
 All Data Structures Namespaces Files Functions Variables Enumerations