CBPRuntime::startRuntime

  1. Bitrix24 API (v. 23.675.0)
  2. bizproc
  3. CBPRuntime
  4. startRuntime
  • Модуль: bizproc
  • Путь к файлу: ~/bitrix/modules/bizproc/classes/general/runtime.php
  • Класс: CBPRuntime
  • Вызов: CBPRuntime::startRuntime
public function startRuntime()
{
	if ($this->isStarted)
	{
		return;
	}

	$serviceManager = BizprocServiceManager::getInstance();
	foreach ($serviceManager->getAllServiceNames() as $serviceName)
	{
		$compatibleServiceName = mb_strtoupper($serviceName[0]) . mb_substr($serviceName, 1);
		if (!$this->services[$compatibleServiceName])
		{
			$this->services[$compatibleServiceName] = $serviceManager->getService($serviceName);
		}
		if (!isset($this->debugServices[$compatibleServiceName]) && $serviceManager->hasDebugService($serviceName))
		{
			$this->debugServices[$compatibleServiceName] = $serviceManager->getDebugService($serviceName);
		}

		$this->services[$compatibleServiceName]->start($this);
	}

	$this->isStarted = true;
}

Добавить комментарий