• Модуль: bitrixcloud
  • Путь к файлу: ~/bitrix/modules/bitrixcloud/classes/general/monitoring_result.php
  • Класс: CBitrixCloudMonitoringDomainResult
  • Вызов: CBitrixCloudMonitoringDomainResult::loadFromOptions
static function loadFromOptions($name, CBitrixCloudOption $option)
{
	$tests = array();
	foreach ($option->getArrayValue() as $testName => $testResult)
	{
		$testResult = unserialize($testResult, ['allowed_classes' => false]);
		if (is_array($testResult))
		{
			$test = new CBitrixCloudMonitoringTest(
				$testName,
				$testResult["status"],
				$testResult["time"],
				$testResult["uptime"],
				$testResult["result"]
			);
			$tests[$test->getName()] = $test;
		}
	}
	return new CBitrixCloudMonitoringDomainResult($name, $tests);
}