Exemplo n.º 1
0
 /**
  * @param string $sSearchDesc Default value is empty string.
  * @param int $iTenantId Default value is **0**.
  *
  * @return int|false
  */
 public function getDomainCount($sSearchDesc = '', $iTenantId = 0)
 {
     $iResultCount = false;
     if ($this->oConnection->Execute($this->oCommandCreator->getDomainCount($sSearchDesc, $iTenantId))) {
         $oRow = $this->oConnection->GetNextRecord();
         if ($oRow) {
             $iResultCount = (int) $oRow->domains_count;
         }
         $this->oConnection->FreeResult();
     }
     $this->throwDbExceptionIfExist();
     return $iResultCount;
 }