コード例 #1
0
ファイル: storage.php プロジェクト: BertLasker/Catch-design
 /**
  * @param string $sSql
  * @return CHelpdeskUser
  */
 protected function getUserBySql($sSql)
 {
     $oUser = false;
     if ($this->oConnection->Execute($sSql)) {
         $oUser = null;
         $oRow = $this->oConnection->GetNextRecord();
         if ($oRow) {
             $oUser = new CHelpdeskUser();
             $oUser->InitByDbRow($oRow);
         }
         $this->oConnection->FreeResult();
     }
     $this->throwDbExceptionIfExist();
     return $oUser;
 }