/** * @param string $sSearchDesc = '' * * @return int | false */ public function GetTenantCount($sSearchDesc = '') { $iResultCount = false; if ($this->oConnection->Execute($this->oCommandCreator->GetTenantCount($sSearchDesc))) { $oRow = $this->oConnection->GetNextRecord(); if ($oRow) { $iResultCount = (int) $oRow->tenants_count; } $this->oConnection->FreeResult(); } $this->throwDbExceptionIfExist(); return $iResultCount; }