コード例 #1
0
ファイル: storage.php プロジェクト: Git-Host/email
 /**
  * @param string $sType
  * @param string $sIdAccount
  * @return string
  */
 public function isAccountExists($sType, $sIdAccount)
 {
     $bResult = false;
     if ($this->oConnection->Execute($this->oCommandCreator->isAccountExists($sType, $sIdAccount))) {
         $oRow = $this->oConnection->GetNextRecord();
         if ($oRow) {
             $bResult = 0 < (int) $oRow->account_count;
         }
         $this->oConnection->FreeResult();
     }
     $this->throwDbExceptionIfExist();
     return $bResult;
 }