CBPDocument :: CanUserOperateDocumentType: Bitrix method

      
<?php 
//  CBPDocument :: CanUserOperateDocumentType()
//  /dist/bitrix/modules/bizproc/classes/general/document.php:1307

    
public static function CanUserOperateDocumentType($operation$userId$parameterDocumentType$arParameters = array())
    {
        list(
$moduleId$entity$documentType) = CBPHelper::ParseDocumentId($parameterDocumentType);

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

        if (
class_exists($entity))
            return 
call_user_func_array(array($entity"CanUserOperateDocumentType"), array($operation$userId$documentType$arParameters));

        return 
false;
    }