• Модуль: landing
  • Путь к файлу: ~/bitrix/modules/landing/lib/dataloader/landing.php
  • Класс: BitrixLandingDataLoaderLanding
  • Вызов: Landing::getElementData
public function getElementData($element)
{
	$this->seo->clear();

	$element = intval($element);
	if ($element <= 0)
	{
		return [];
	}

	// select
	$select = $this->getPreparedSelectFields();
	if (empty($select))
	{
		return [];
	}

	// filter
	$filter = $this->getInternalFilter();
	if (empty($filter))
	{
		return [];
	}
	$filter['ID'] = $element;
	$select[] = 'ID';

	// get data
	$res = LandingCore::getList([
		'select' => $select,
		'filter' => $filter,
	]);
	$row = $res->fetch();
	if (empty($row))
	{
		return [];
	}

	Cache::register($row['ID']);
	$this->seo->setTitle($row['TITLE']);

	return [$row];
}