- Модуль: calendar
- Путь к файлу: ~/bitrix/modules/calendar/lib/sync/factories/factoriescollection.php
- Класс: BitrixCalendarSyncFactoriesFactoriesCollection
- Вызов: FactoriesCollection::prepareContextForSection
static function prepareContextForSection(
Connection $connection,
SyncConnectionSectionConnection $sectionConnection,
Section $section
): Context
{
$connectionsMap = new SyncConnectionConnectionMap();
$connectionsMap->add($connection, $connection->getId());
$sectionConnectionsMap = new SyncConnectionSectionConnectionMap();
$sectionConnectionsMap->add($sectionConnection, $section->getId());
$sectionsMap = new SectionMap();
$sectionsMap->add($section, $section->getId());
return new Context([
'sections' => $sectionsMap,
'sectionConnections' => $sectionConnectionsMap,
'connections' => $connectionsMap
]);
}