• Модуль: bizproc
  • Путь к файлу: ~/bitrix/modules/bizproc/lib/activity/propertiesdialog.php
  • Класс: BitrixBizprocActivityPropertiesDialog
  • Вызов: PropertiesDialog::getFieldTypeObject
public function getFieldTypeObject(array $field)
{
	$runtime = CBPRuntime::getRuntime();
	$runtime->startRuntime();

	/** @var CBPDocumentService $documentService */
	$documentService = $runtime->getService('DocumentService');

	$field = FieldType::normalizeProperty($field);

	$typeClass = $documentService->getTypeClass($this->getDocumentType(), $field['Type']);
	if ($typeClass && class_exists($typeClass))
	{
		return new FieldType($field, $this->getDocumentType(), $typeClass);
	}
	return null;
}