CCrmEntityHelper::getStageIdFieldName

  1. Bitrix24 API (v. 23.675.0)
  2. crm
  3. CCrmEntityHelper
  4. getStageIdFieldName
  • Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/classes/general/entity_helper.php
  • Класс: \CCrmEntityHelper
  • Вызов: CCrmEntityHelper::getStageIdFieldName
static function getStageIdFieldName(array $fieldsInfo): ?string
{
	foreach ($fieldsInfo as $fieldName => $singleFieldInfo)
	{
		$type = $singleFieldInfo['TYPE'] ?? null;

		if (
			$type === \Bitrix\Crm\Field::TYPE_CRM_STATUS
			&& \CCrmFieldInfoAttr::isFieldHasAttribute($singleFieldInfo, \CCrmFieldInfoAttr::Progress)
		)
		{
			return $fieldName;
		}
	}

	return null;
}

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