• Модуль: calendar
  • Путь к файлу: ~/bitrix/modules/calendar/lib/sync/factories/factorybase.php
  • Класс: BitrixCalendarSyncFactoriesFactoryBase
  • Вызов: FactoryBase::getContext
public function getContext(): ?Context;

/**
 * @throws BaseException
 */
public function __construct(Connection $connection, Context $context = null)
{
	if ($connection->getOwner() === null)
	{
		throw new BaseException('the connection must have owner');
	}

	$this->connection = $connection;
	$this->context = $context;
}