CBPAllHistoryService::GenerateFilePath: Bitrix method

      
<?php 
//  CBPAllHistoryService :: GenerateFilePath()
//  /dist/bitrix/modules/bizproc/classes/general/historyservice.php:86

    
private static function GenerateFilePath($documentId)
    {
        
$arDocumentId CBPHelper::ParseDocumentId($documentId);

        
$dest "/bizproc/";
        if (
strlen($arDocumentId[0]) > 0)
            
$dest .= preg_replace("/[^a-zA-Z0-9._]/i""_"$arDocumentId[0]);
        else
            
$dest .= "NA";
        
$documentIdMD5 md5($arDocumentId[2]);
        
$dest .= "/".preg_replace("/[^a-zA-Z0-9_]/i""_"$arDocumentId[1])."/".substr($documentIdMD503)."/".$documentIdMD5;

        return 
$dest;
    }