CCrmUserType::appendNamePrefix

  1. Bitrix24 API (v. 23.675.0)
  2. crm
  3. CCrmUserType
  4. appendNamePrefix
  • Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/classes/general/crm_usertype.php
  • Класс: \CCrmUserType
  • Вызов: CCrmUserType::appendNamePrefix
protected function appendNamePrefix(array $fields): array
{
	if(!$this->fieldNamePrefix)
	{
		return $fields;
	}

	$result = [];
	foreach ($fields as $field)
	{
		$fieldName = $this->fieldNamePrefix . $field['FIELD_NAME'];
		$field['FIELD_NAME'] = $fieldName;

		$result[$fieldName] = $field;
	}

	return $result;
}

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