Beispiel #1
0
 public function isValid($sValue)
 {
     $bIsExist = null;
     $nBBarcodeId = $sValue;
     $oModelSybase = new Admin_Model_Sybase();
     try {
         $sToday = $oModelSybase->getToday();
         if (isset($sToday)) {
             $bIsExist = $oModelSybase->findBorrowerBBarcode($nBBarcodeId);
         } else {
             throw new Zend_Exception();
         }
     } catch (Zend_Exception $e) {
         return true;
     }
     if ($bIsExist) {
         return true;
     } else {
         $this->_error(self::NOT_MATCH);
         return false;
     }
 }