• Модуль: report
  • Путь к файлу: ~/bitrix/modules/report/lib/visualconstructor/analyticboard.php
  • Класс: BitrixReportVisualConstructorAnalyticBoard
  • Вызов: AnalyticBoard::getButtonsContent
public function getButtonsContent()
{
	$result = [
		'html' => '',
		'assets' => [
			'js' => [],
			'css' => [],
			'string' => [],
		]
	];
	if ($this->isDisabled())
	{
		return $result;
	}
	$buttons = $this->getButtons();
	foreach ($buttons as $button)
	{
		$result['html'] .= $button->process()->getHtml();
		foreach ($button->getJsList() as $jsPath)
		{
			$result['assets']['js'][] = $jsPath;
		}

		foreach ($button->getCssList() as $cssPath)
		{
			$result['assets']['css'][] = $cssPath;
		}

		foreach ($button->getStringList() as $string)
		{
			$result['assets']['string'][] = $string;
		}
	}

	return $result;
}