• Модуль: landing
  • Путь к файлу: ~/bitrix/modules/landing/lib/transfer/import/landing.php
  • Класс: BitrixLandingTransferImportLanding
  • Вызов: Landing::getRepoId
static function getRepoId(string $appCode, string $xmlId): ?int
{
	static $items = null;

	if ($items === null)
	{
		$items = [];
		$res = Repo::getList([
			'select' => [
				'ID', 'APP_CODE', 'XML_ID'
			]
		]);
		while ($row = $res->fetch())
		{
			$items[$row['APP_CODE'] . '@' . $row['XML_ID']] = $row['ID'];
		}
	}

	if (isset($items[$appCode . '@' . $xmlId]))
	{
		return $items[$appCode . '@' . $xmlId];
	}

	return null;
}