• Модуль: tasks
  • Путь к файлу: ~/bitrix/modules/tasks/lib/internals/counter/event/event.php
  • Класс: Bitrix\Tasks\Internals\Counter\Event\Event
  • Вызов: Event::getGroupId
public function getGroupId(): int
{
	$groupId = 0;

	switch ($this->type)
	{
		case EventDictionary::EVENT_AFTER_COMMENTS_READ_ALL:
		case EventDictionary::EVENT_AFTER_PROJECT_READ_ALL:
		case EventDictionary::EVENT_AFTER_SCRUM_READ_ALL:
		case EventDictionary::EVENT_PROJECT_DELETE:
		case EventDictionary::EVENT_PROJECT_USER_ADD:
		case EventDictionary::EVENT_PROJECT_USER_UPDATE:
		case EventDictionary::EVENT_PROJECT_USER_DELETE:
			$groupId = (int) $this->data['GROUP_ID'];
			break;
	}

	return $groupId;
}