• Модуль: main
  • Путь к файлу: ~/bitrix/modules/main/lib/engine/response/zip/archiveentry.php
  • Класс: BitrixMainEngineResponseZipArchiveEntry
  • Вызов: ArchiveEntry::getDocRoot
static function getDocRoot()
{
	static $docRoot = null;

	if ($docRoot === null)
	{
		$context = Application::getInstance()->getContext();
		$server = $context->getServer();
		$docRoot = $server->getDocumentRoot();
	}

	return $docRoot;
}