CallStaticMethod: Bitrix method

      
<?php 
//  CallStaticMethod()
//  /dist/bitrix/modules/bizproc/classes/general/activity.php:1143

    
public static function CallStaticMethod($code$method$arParameters = array())
    {
        
$runtime CBPRuntime::GetRuntime();
        if (!
$runtime->IncludeActivityFile($code))
            return array(array(
"code" => "ActivityNotFound""parameter" => $code"message" => GetMessage("BPGA_ACTIVITY_NOT_FOUND", array('#ACTIVITY#' => htmlspecialcharsbx($code)))));

        if (
preg_match("#[^a-zA-Z0-9_]#"$code))
            throw new 
Exception("Activity '".$code."' is not valid");

        
$classname 'CBP'.$code;

        if (
method_exists($classname,$method))
            return 
call_user_func_array(array($classname$method), $arParameters);
        return 
false;
    }