• Модуль: report
  • Путь к файлу: ~/bitrix/modules/report/lib/visualconstructor/controller/widget.php
  • Класс: BitrixReportVisualConstructorControllerWidget
  • Вызов: Widget::showConfigurationFormAction
public function showConfigurationFormAction($widgetId, $boardId)
{
	$componentName = 'bitrix:report.visualconstructor.widget.form';
	$widget = BitrixReportVisualConstructorEntityWidget::getCurrentUserWidgetByGId($widgetId);
	if ($widget)
	{
		$templateName = '';
		$params = array(
			'MODE' => 'update',
			'ORIGINAL_WIDGET_GID' => $widgetId,
			'WIDGET' => $widget,
			'BOARD_ID' => $boardId,
			'PAGE_TITLE' => Loc::getMessage('REPORT_WIDGET_SETTINGS_CONTENT_TITLE'),
			'SAVE_BUTTON_TITLE' => Loc::getMessage('REPORT_WIDGET_SETTINGS_SAVE_BUTTON_TITLE'),
		);
		return new Component($componentName, $templateName, $params);
	}
	else
	{
		$this->addError(new Error('No widget with this id'));
		return false;
	}
}