CBPRuntime::__construct: Bitrix method

      
<?php 
//  CBPRuntime :: __construct()
//  /dist/bitrix/modules/bizproc/classes/general/runtime.php:46

    /**
    * private constructor prevents from instantiating this class. Singleton pattern.
    * 
    */
    
private function __construct()
    {
        
$this->isStarted false;
        
$this->arWorkflows = array();
        
$this->arServices = array(
            
"SchedulerService" => null,
            
"StateService" => null,
            
"TrackingService" => null,
            
"TaskService" => null,
            
"HistoryService" => null,
            
"DocumentService" => null,
            
"AnalyticsService" => null,
        );
        
$this->arLoadedActivities = array();
        
$this->arActivityFolders = array(
            
$_SERVER["DOCUMENT_ROOT"]."/local/activities",
            
$_SERVER["DOCUMENT_ROOT"]."/local/activities/custom",
            
$_SERVER["DOCUMENT_ROOT"].BX_ROOT."/activities/custom",
            
$_SERVER["DOCUMENT_ROOT"].BX_ROOT."/activities/bitrix",
            
$_SERVER["DOCUMENT_ROOT"].BX_ROOT."/modules/bizproc/activities",
        );

        
/* Experimental activity autoloader
        $runtime = $this;
        spl_autoload_register(function ($name) use ($runtime)
        {
            $name = strtolower($name);
            if (strpos($name, 'cbp') === 0)
            {
                $runtime->IncludeActivityFile($name);
            }
        });
        */
    
}