/** * @param int $iTenantId * * @return int */ public function GetTenantAllocatedSize($iTenantId) { $iResult = 0; if ($this->oConnection->Execute($this->oCommandCreator->GetTenantAllocatedSize($iTenantId))) { $oRow = $this->oConnection->GetNextRecord(); if ($oRow) { $iResult = (int) ($oRow->allocated_size / 1024); } $this->oConnection->FreeResult(); } $this->throwDbExceptionIfExist(); return $iResult; }