• Модуль: report
  • Путь к файлу: ~/bitrix/modules/report/lib/visualconstructor/entity/widget.php
  • Класс: BitrixReportVisualConstructorEntityWidget
  • Вызов: Widget::buildPseudoWidget
static function buildPseudoWidget($params)
{
	if (mb_strpos($params['widgetGId'], 'pseudo_') === 0)
	{
		$widget = new self();
		$widget->setViewKey($params['viewKey']);
		$widget->setGId($params['widgetGId']);
		$widget->setWidgetClass(BaseWidget::getClassName());
		return $widget;
	}

	$widget = self::getCurrentUserWidgetByGId($params['widgetGId']);
	if ($widget)
	{
		$widget->setViewKey($params['viewKey']);
	}
	return $widget;
}