• Модуль: main
  • Путь к файлу: ~/bitrix/modules/main/lib/ui/uploader/uploader.php
  • Класс: BitrixMainUIUploaderLog
  • Вызов: Log::__construct
function __construct($path)
{
	try
	{
		$this->file = CBXVirtualIo::GetInstance()->GetFile($path);

		if ($this->file->IsExists())
		{
			$data = unserialize($this->file->GetContents(), ["allowed_classes" => false]);
			foreach($data as $key => $val)
			{
				if (array_key_exists($key , $this->data) && is_array($this->data[$key]) && is_array($val))
					$this->data[$key] = array_merge($this->data[$key], $val);
				else
					$this->data[$key] = $val;
			}
		}
	}
	catch (Throwable $e)
	{
		throw new MainSystemException("Temporary file has wrong structure.", "BXU351.01");
	}
}