CBPDocumentService :: GetDocumentType: Bitrix method

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

    
public function GetDocumentType($parameterDocumentId)
    {
        list(
$moduleId$entity$documentId) = CBPHelper::ParseDocumentId($parameterDocumentId);

        
$k $moduleId."@".$entity."@".$documentId;
        if (isset(
$this->documentTypesCache[$k]))
            return 
$this->documentTypesCache[$k];

        if (
strlen($moduleId) > 0)
            
CModule::IncludeModule($moduleId);

        if (
class_exists($entity) && method_exists($entity"GetDocumentType"))
        {
            
$this->documentTypesCache[$k] = [$moduleId$entitycall_user_func_array([$entity"GetDocumentType"], [$documentId])];
            return 
$this->documentTypesCache[$k];
        }

        return 
null;
    }