CBPDocumentService::toExternalOperations: Bitrix method

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

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

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

        if (
class_exists($entity) && method_exists($entity"toExternalOperations"))
            return 
call_user_func_array(array($entity"toExternalOperations"), array($documentType$permissions));

        return 
$permissions;
    }