CBPActivityCondition::getFieldTypeObject

  1. Bitrix24 API (v. 23.675.0)
  2. bizproc
  3. CBPActivityCondition
  4. getFieldTypeObject
  • Модуль: bizproc
  • Путь к файлу: ~/bitrix/modules/bizproc/classes/general/activitycondition.php
  • Класс: CBPActivityCondition
  • Вызов: CBPActivityCondition::getFieldTypeObject
protected function getFieldTypeObject(CBPActivity $rootActivity, $property): BitrixBizprocFieldType
{
	$documentService = $rootActivity->workflow->getRuntime()->getDocumentService();
	$documentType = $rootActivity->getDocumentType();

	if (!is_array($property))
	{
		return $documentService->getFieldTypeObject($documentType, ['Type' => 'string']);
	}

	$fieldType = $documentService->getFieldTypeObject($documentType, $property);
	if (!$fieldType)
	{
		$fieldType = $documentService->getFieldTypeObject($documentType, ['Type' => 'string']);
	}

	return $fieldType;
}

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