CBPDocumentService::createAutomationTarget

  1. Bitrix24 API (v. 23.675.0)
  2. bizproc
  3. CBPDocumentService
  4. createAutomationTarget
  • Модуль: bizproc
  • Путь к файлу: ~/bitrix/modules/bizproc/classes/general/documentservice.php
  • Класс: CBPDocumentService
  • Вызов: CBPDocumentService::createAutomationTarget
public function createAutomationTarget($parameterDocumentType)
{
	[$moduleId, $entity, $documentType] = CBPHelper::ParseDocumentId($parameterDocumentType);

	if ($moduleId)
	{
		CModule::IncludeModule($moduleId);
	}

	if (class_exists($entity) && method_exists($entity, "createAutomationTarget"))
	{
		/** @var BitrixBizprocAutomationTargetBaseTarget $target */
		$target = call_user_func_array([$entity, "createAutomationTarget"], [$documentType]);

		return $target;
	}

	return null;
}

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