• Модуль: main
  • Путь к файлу: ~/bitrix/modules/main/lib/io/path.php
  • Класс: BitrixMainIOPath
  • Вызов: Path::convertLogicalToUri
static function convertLogicalToUri($path)
{
	if (self::$logicalEncoding == "")
		self::$logicalEncoding = self::getLogicalEncoding();

	if (self::$directoryIndex == null)
		self::$directoryIndex = self::getDirectoryIndexArray();

	if (isset(self::$directoryIndex[self::getName($path)]))
		$path = self::getDirectory($path)."/";

	if ('utf-8' !== self::$logicalEncoding)
		$path = TextEncoding::convertEncoding($path, self::$logicalEncoding, 'utf-8');

	return implode('/', array_map("rawurlencode", explode('/', $path)));
}