- Модуль: bizproc
- Путь к файлу: ~/bitrix/modules/bizproc/classes/general/documentservice.php
- Класс: CBPDocumentService
- Вызов: CBPDocumentService::getDocumentTypeName
public function getDocumentTypeName($parameterDocumentType)
{
[$moduleId, $entity, $documentType] = CBPHelper::ParseDocumentId($parameterDocumentType);
if ($moduleId)
{
CModule::IncludeModule($moduleId);
}
if (class_exists($entity))
{
if (method_exists($entity, "getDocumentTypeName"))
return call_user_func_array(array($entity, "getDocumentTypeName"), array($documentType));
if (method_exists($entity, "getEntityName"))
return call_user_func_array(array($entity, "getEntityName"), array($entity));
}
return null;
}