/** * @param string $sSearchDesc = '' * @param int $iTenantId = 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; }