• Модуль: security
  • Путь к файлу: ~/bitrix/modules/security/classes/general/tests/taint_checking.php
  • Класс: CSecurityTaintCheckingTest
  • Вызов: CSecurityTaintCheckingTest::formatResults
protected function formatResults($pResults)
{
	$result = array();
	$result["name"] = $this->getName();
	if(isset($pResults["STATUS"]))
	{
		$result["status"] = $pResults["STATUS"];
	}

	if(isset($pResults["IN_PROGRESS"]))
	{
		$result["in_progress"] = $pResults["IN_PROGRESS"];
		$result["timeout"] = self::REQUEST_TIMEOUT;
	}
	
	elseif(!$result["status"])
	{
		$result["problem_count"] = 1;
	}

	if(isset($pResults["MESSAGE"]))
	{
		$result["errors"] = self::formatErrors($pResults["MESSAGE"]);
	}
	else
	{
		$result["errors"] = array();
	}

	return $result;
}