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

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

	return false;
}