CCrmReportHelper::getStatusName

  1. Bitrix24 API (v. 23.675.0)
  2. crm
  3. CCrmReportHelper
  4. getStatusName
  • Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/classes/general/crm_report_helper.php
  • Класс: \CCrmReportHelper
  • Вызов: CCrmReportHelper::getStatusName
static function getStatusName($code, $type, $htmlEncode = false)
{
	$code = strval($code);
	$type = strval($type);
	if($code === '' || $type === '')
	{
		return '';
	}

	$statuses = CCrmStatus::GetStatus($type);
	$name = array_key_exists($code, $statuses) ? $statuses[$code]['NAME'] : $code;
	return $htmlEncode ? htmlspecialcharsbx($name) : $name;
}

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