CBPDocumentService :: normalizeDocumentId: Bitrix method

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

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

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

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

        return 
$normalized;
    }