ChannelOpenLine::getWidgets

  1. Bitrix24 API (v. 23.675.0)
  2. crm
  3. ChannelOpenLine
  4. getWidgets
  • Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/sitebutton/channel/channelopenline.php
  • Класс: Bitrix\Crm\SiteButton\Channel\ChannelOpenLine
  • Вызов: ChannelOpenLine::getWidgets
static function getWidgets($id, $removeCopyright = true, $lang = null, array $config = [])
{
	Loc::loadMessages(__FILE__); // TODO: remove with dependence main: deeply lazy Load loc files
	Loc::loadMessages(\Bitrix\Main\Application::getDocumentRoot() . '/bitrix/modules/imconnector/lib/connector.php');

	$result = [];
	$lines = explode(',', $id);
	foreach ($lines as $lineId)
	{
		$lineConfig = $config[$lineId] ?? [];
		$widgets = self::getWidgetsById($lineId, $removeCopyright, $lang, $lineConfig);
		$result = array_merge($result, $widgets);
	}

	return $result;
}

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