/** * @param int $iTenantId * @param int|null $iExceptUserId = null * * @return array */ public function GetSubscriptionUserUsage($iTenantId, $iExceptUserId = null) { $aLimits = false; if ($this->oConnection->Execute($this->oCommandCreator->GetSubscriptionUserUsage($iTenantId, $iExceptUserId))) { $oRow = null; $aLimits = array(); while (false !== ($oRow = $this->oConnection->GetNextRecord())) { $aLimits[$oRow->id_subscription] = $oRow->cnt; } } $this->throwDbExceptionIfExist(); return $aLimits; }