...Человеческий поиск в разработке...
- Модуль: calendar
- Путь к файлу: ~/bitrix/modules/calendar/lib/util.php
- Класс: BitrixCalendarUtil
- Вызов: Util::getDefaultEntityList
static function getDefaultEntityList($userId, $type, $ownerId) { $entityList = [['entityId' => 'user', 'id' => $userId]]; if ($type === 'user' && $ownerId !== $userId) { $entityList[] = ['entityId' => 'user', 'id' => $ownerId]; } else if($type === 'group') { $entityList[] = ['entityId' => 'project', 'id' => $ownerId]; } return $entityList; }