- Модуль: tasks
- Путь к файлу: ~/bitrix/modules/tasks/lib/internals/counter/counterprocessor.php
- Класс: BitrixTasksInternalsCounterCounterProcessor
- Вызов: CounterProcessor::readAll
public function readAll(int $groupId = 0, string $role = null): void
{
$groupIds = [];
if ($groupId)
{
$groupIds[] = $groupId;
}
$counters = array_merge(
array_values(CounterDictionary::MAP_COMMENTS),
array_values(CounterDictionary::MAP_MUTED_COMMENTS)
);
if (in_array($role, MemberTable::possibleTypes()))
{
$this->crossTypeReset([CounterDictionary::MAP_COMMENTS[$role], CounterDictionary::MAP_MUTED_COMMENTS[$role]], $counters, $groupIds);
}
else
{
$this->reset($counters, [], $groupIds);
}
CounterState::getInstance($this->userId)->reload();
}