• Модуль: landing
  • Путь к файлу: ~/bitrix/modules/landing/lib/block.php
  • Класс: BitrixLandingBlock
  • Вызов: Block::search
static function search($query, array $filter = [], array $select = ['LID'], array $group = ['LID'])
{
	$result = [];

	$filter['*%SEARCH_CONTENT'] = $query;
	$filter['=DELETED'] = 'N';

	$res = InternalsBlockTable::getList([
		'select' => $select,
		'filter' => $filter,
		'group' => $group,
		'order' => ['SORT' => 'desc']
	]);
	while ($row = $res->fetch())
	{
		$result[] = $row;
	}

	return $result;
}