CBPDocumentService :: getDocumentTypeName: Bitrix method

      
<?php 
//  CBPDocumentService :: getDocumentTypeName()
//  /dist/bitrix/modules/bizproc/classes/general/documentservice.php:1110

    
public function getDocumentTypeName($parameterDocumentType)
    {
        list(
$moduleId$entity$documentType) = CBPHelper::ParseDocumentId($parameterDocumentType);

        if (
strlen($moduleId) > 0)
            
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;
    }