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

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

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

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