- Модуль: tasks
- Путь к файлу: ~/bitrix/modules/tasks/lib/internals/project/event/eventhandler.php
- Класс: BitrixTasksInternalsProjectEventEventHandler
- Вызов: EventHandler::getNotVisibleGroupIds
private function getNotVisibleGroupIds($groups): array
{
[$added, $changed, $removed, $userChanged] = $groups;
$filter = function($groupId) {
return ($this->newFields[$groupId]['VISIBLE'] === 'N');
};
$changedFilter = function ($groupId) {
return ($this->newFields[$groupId]['VISIBLE'] === 'N' && $this->oldFields[$groupId]['VISIBLE'] === 'N');
};
$removedFilter = function ($groupId) {
return ($this->oldFields[$groupId]['VISIBLE'] === 'N');
};
return array_merge(
array_filter($added, $filter),
array_filter($changed, $changedFilter),
array_filter($removed, $removedFilter),
array_filter($userChanged, $filter)
);
}