• Модуль: sender
  • Путь к файлу: ~/bitrix/modules/sender/lib/ui/tileview.php
  • Класс: BitrixSenderUITileView
  • Вызов: TileView::get
public function get()
{
	$list = $this->sections;
	$sections = array_keys($list);

	if (in_array(self::SECTION_ALL, $sections))
	{
		$list[self::SECTION_ALL]['items'] = $this->tiles;
	}

	foreach ($this->tiles as $tile)
	{
		foreach ($sections as $section)
		{
			if ($section === self::SECTION_ALL)
			{
				continue;
			}

			if (empty($tile['data'][$section]))
			{
				continue;
			}

			self::prepareTileForSorting($tile, $section);
			$list[$section]['items'][] = $tile;
		}
	}

	self::sortTiles($list);
	return array_values($list);
}