• Модуль: landing
  • Путь к файлу: ~/bitrix/modules/landing/lib/block.php
  • Класс: BitrixLandingBlock
  • Вызов: Block::getLandingIdByBlockId
static function getLandingIdByBlockId($id)
{
	$data = array();
	$res = parent::getList(array(
		'select' => array(
			'ID', 'LID'
		),
		'filter' => array(
			'ID' => $id
		)
	));
	while ($row = $res->fetch())
	{
		$data[$row['ID']] = $row['LID'];
	}

	if (is_array($id))
	{
		return $data;
	}
	elseif (!empty($data))
	{
		return array_pop($data);
	}

	return false;
}