• Main Page
  • Related Pages
  • Namespaces
  • Data Structures
  • Files
  • Examples
  • File List

E:/E/GEAMP/www/openbiz/openbiz/others/Zend/Validate/Db/NoRecordExists.php

00001 <?php
00002 
00026 require_once 'Zend/Validate/Db/Abstract.php';
00027 
00037 class Zend_Validate_Db_NoRecordExists extends Zend_Validate_Db_Abstract
00038 {
00039     public function isValid($value)
00040     {
00041         $valid = true;
00042         $this->_setValue($value);
00043 
00044         $result = $this->_query($value);
00045         if ($result) {
00046             $valid = false;
00047             $this->_error(self::ERROR_RECORD_FOUND);
00048         }
00049 
00050         return $valid;
00051     }
00052 }

Generated on Thu Apr 19 2012 17:01:18 for openbiz by  doxygen 1.7.2