PieWidget::__construct

  1. Bitrix24 API (v. 23.675.0)
  2. crm
  3. PieWidget
  4. __construct
  • Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/widget/piewidget.php
  • Класс: Bitrix\Crm\Widget\PieWidget
  • Вызов: PieWidget::__construct
public function __construct(array $settings, Filter $filter, $userID = 0, $enablePermissionCheck = true)
{
	parent::__construct($settings, $filter, $userID, $enablePermissionCheck);

	$this->configs = array();
	$configs = $this->getSettingArray('configs', array());
	foreach($configs as $config)
	{
		$this->configs[] = new WidgetConfig($config);
	}

	if(isset($settings['group']) && is_string($settings['group']) && $settings['group'] !== '')
	{
		$this->setGroupField($settings['group']);
	}
}

Добавить комментарий