/** * @param string $sSearchDesc Default value is empty string. * * @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; }