• Модуль: main
  • Путь к файлу: ~/bitrix/modules/main/classes/general/main.php
  • Класс: CAllMain
  • Вызов: CAllMain::GetViewContent
public function GetViewContent($view)
{
	if(!isset($this->__view[$view]) || !is_array($this->__view[$view]))
		return '';

	uasort(
		$this->__view[$view],
		function ($a, $b) {
			if ($a[1] == $b[1])
			{
				return 0;
			}
			return ($a[1] < $b[1] ? -1 : 1);
		}
	);

	$res = array();
	foreach($this->__view[$view] as $item)
		$res[] = $item[0];

	return implode($res);
}