...Человеческий поиск в разработке...
- Модуль: calendar
- Путь к файлу: ~/bitrix/modules/calendar/lib/access/sectionaccesscontroller.php
- Класс: BitrixCalendarAccessSectionAccessController
- Вызов: SectionAccessController::loadItem
protected function loadItem(int $itemId = null): ?AccessibleItem { $key = self::ITEM_TYPE . '_' . $itemId; if (!array_key_exists($key, static::$cache)) { /**@var BitrixCalendarCoreSectionSection $section */ $section = (new Section())->getById($itemId); $sectionModel = SectionModel::createFromId($itemId); if ($section instanceof BitrixCalendarCoreSectionSection) { $owner = $section->getOwner(); $ownerId = $owner ? $owner->getId() : 0; $sectionModel ->setType($section->getType()) ->setOwnerId($ownerId) ; } static::$cache[$key] = $sectionModel; } return static::$cache[$key]; }