CBPHelper::getExtendedGroupName

  1. Bitrix24 API (v. 23.675.0)
  2. bizproc
  3. CBPHelper
  4. getExtendedGroupName
  • Модуль: bizproc
  • Путь к файлу: ~/bitrix/modules/bizproc/classes/general/helper.php
  • Класс: CBPHelper
  • Вызов: CBPHelper::getExtendedGroupName
static function getExtendedGroupName($group, $appendId = true)
{
	if (mb_strpos($group, 'group_') === 0)
		$group = mb_substr($group, mb_strlen('group_'));
	$group = mb_strtoupper($group);
	$access = self::getAccessProvider();
	$arNames = $access->GetNames(array($group));
	$groupName = $arNames[$group]['name'] ?? null;

	return $groupName . ($appendId ? ' ['.$group.']' : '');
}

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