Esempio n. 1
0
 /**
  * @param string $sType
  * @param string $sIdAccount
  * @return string
  */
 public function AccountExists($sType, $sIdAccount)
 {
     $bResult = false;
     if ($this->oConnection->Execute($this->oCommandCreator->AccountExists($sType, $sIdAccount))) {
         $oRow = $this->oConnection->GetNextRecord();
         if ($oRow) {
             $bResult = 0 < (int) $oRow->account_count;
         }
         $this->oConnection->FreeResult();
     }
     $this->throwDbExceptionIfExist();
     return $bResult;
 }