CBPDocumentService::getTypesMap

  1. Bitrix24 API (v. 23.675.0)
  2. bizproc
  3. CBPDocumentService
  4. getTypesMap
  • Модуль: bizproc
  • Путь к файлу: ~/bitrix/modules/bizproc/classes/general/documentservice.php
  • Класс: CBPDocumentService
  • Вызов: CBPDocumentService::getTypesMap
public function getTypesMap(array $parameterDocumentType)
{
	$k = implode('@', $parameterDocumentType);

	if (isset($this->typesMapCache[$k]))
	{
		return $this->typesMapCache[$k];
	}

	$result = FieldType::getBaseTypesMap();

	$documentFieldTypes = $this->GetDocumentFieldTypes($parameterDocumentType);
	foreach ($documentFieldTypes as $name => $field)
	{
		if (isset($field['typeClass']))
		{
			$result[mb_strtolower($name)] = $field['typeClass'];
		}
	}

	$this->typesMapCache[$k] = $result;

	return $result;
}

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