104 $this->counters = $this->getCountersEmptyState();
106 $user = UserRegistry::getInstance($this->userId);
107 $groups =
$user->getUserGroups(UserRegistry::MODE_GROUP);
110 foreach ($this as $item)
112 if ($this->
getLoader()->isCounterFlag($item[
'TYPE']))
117 $logId = $item[
'SONET_LOG_ID'];
118 $groupId = $item[
'GROUP_ID'];
119 $value = $item[
'VALUE'];
120 $type = $item[
'TYPE'];
122 $meta = $this->getMetaProp($item,
$groups);
123 $subType = $this->getItemSubType(
$type);
125 if (!isset($this->counters[$meta][
$type][$groupId]))
127 $this->counters[$meta][
$type][$groupId] = 0;
129 if (!isset($this->counters[$meta][$subType][$groupId]))
131 $this->counters[$meta][$subType][$groupId] = 0;
133 if (!isset($tmpHeap[$meta][$subType][$groupId]))
135 $tmpHeap[$meta][$subType][$groupId] = [];
154 if (!isset($tmpHeap[$meta][
$type][$groupId][$logId]))
156 $tmpHeap[$meta][
$type][$groupId][$logId] = $value;
157 $this->counters[$meta][
$type][$groupId] += $value;
167 && !isset($tmpHeap[$meta][$subType][$groupId][$logId])
170 $tmpHeap[$meta][$subType][$groupId][$logId] = $value;
171 $this->counters[$meta][$subType][$groupId] += $value;