Exemplo n.º 1
0
 /**
  * @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;
 }