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 }