MarkStatistics::prepareGroupingExtras

  1. Bitrix24 API (v. 23.675.0)
  2. crm
  3. MarkStatistics
  4. prepareGroupingExtras
  • Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/widget/data/activity/markstatistics.php
  • Класс: Bitrix\Crm\Widget\Data\Activity\MarkStatistics
  • Вызов: MarkStatistics::prepareGroupingExtras
static function prepareGroupingExtras(array &$groupings)
{
	$sourceKey = \CCrmOwnerType::ActivityName.':'.self::GROUP_BY_SOURCE;
	if(isset($groupings[$sourceKey]))
	{
		return;
	}

	self::includeModuleFile();
	$groupings[$sourceKey] = array(
		'entity' => \CCrmOwnerType::ActivityName,
		'title' => GetMessage('CRM_ACTIVITY_ACTIVITY_MARK_STAT_GROUP_BY_SOURCE'),
		'name' => self::GROUP_BY_SOURCE
	);
	$sourceKey = \CCrmOwnerType::ActivityName.':'.self::GROUP_BY_MARK;
	if(isset($groupings[$sourceKey]))
	{
		return;
	}

	self::includeModuleFile();
	$groupings[$sourceKey] = array(
		'entity' => \CCrmOwnerType::ActivityName,
		'title' => GetMessage('CRM_ACTIVITY_ACTIVITY_MARK_STAT_GROUP_BY_MARK'),
		'name' => self::GROUP_BY_MARK
	);
}

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