ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
URLUtil.php
Go to the documentation of this file.
1<?php
2
3namespace Sabre\HTTP;
4
5use Sabre\URI;
6
18class URLUtil {
19
29 static function encodePath($path) {
30
31 return encodePath($path);
32
33 }
34
44 static function encodePathSegment($pathSegment) {
45
46 return encodePathSegment($pathSegment);
47
48 }
49
57 static function decodePath($path) {
58
59 return decodePath($path);
60
61 }
62
70 static function decodePathSegment($path) {
71
73
74 }
75
83 static function splitPath($path) {
84
85 return Uri\split($path);
86
87 }
88
97 static function resolve($basePath, $newPath) {
98
99 return Uri\resolve($basePath, $newPath);
100
101 }
102
103}
$path
Definition: aliased.php:25
An exception for terminatinating execution or to throw for unit testing.
URL utility class.
Definition: URLUtil.php:18
static resolve($basePath, $newPath)
Resolves relative urls, like a browser would.
Definition: URLUtil.php:97
static encodePath($path)
Encodes the path of a url.
Definition: URLUtil.php:29
static decodePathSegment($path)
Decodes a url-encoded path segment.
Definition: URLUtil.php:70
static encodePathSegment($pathSegment)
Encodes a 1 segment of a path.
Definition: URLUtil.php:44
static decodePath($path)
Decodes a url-encoded path.
Definition: URLUtil.php:57
static splitPath($path)
Returns the 'dirname' and 'basename' for a path.
Definition: URLUtil.php:83
resolve($basePath, $newPath)
This file contains all the uri handling functions.
Definition: functions.php:23
split($path)
Returns the 'dirname' and 'basename' for a path.
Definition: functions.php:279