CBPDocumentService::normalizeDocumentId

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

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

	if (class_exists($entity) && method_exists($entity, "normalizeDocumentId"))
	{
		$normalized = [$moduleId, $entity, call_user_func_array([$entity, "normalizeDocumentId"], [$documentId, $docType])];
	}

	return $normalized;
}

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