• Модуль: landing
  • Путь к файлу: ~/bitrix/modules/landing/lib/site/update/chatsalesorder.php
  • Класс: BitrixLandingSiteUpdateChatSalesOrder
  • Вызов: ChatSalesOrder::getExistsPageId
static function getExistsPageId(int $siteId, string $code): ?int
{
	$res = Landing::getList([
		'select' => [
			'ID'
		],
		'filter' => [
			'SITE_ID' => $siteId,
			'=TPL_CODE' => $code,
			'=PUBLIC' => 'Y',
		],
	]);
	if ($page = $res->fetch())
	{
		return $page['ID'];
	}
	return null;
}