ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
URLUtil.php
Go to the documentation of this file.
1 <?php
2 
3 namespace Sabre\HTTP;
4 
5 use Sabre\URI;
6 
18 class 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 
72  return decodePathSegment($path);
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
resolve($basePath, $newPath)
This file contains all the uri handling functions.
Definition: functions.php:23
static encodePathSegment($pathSegment)
Encodes a 1 segment of a path.
Definition: URLUtil.php:44
static resolve($basePath, $newPath)
Resolves relative urls, like a browser would.
Definition: URLUtil.php:97
split($path)
Returns the &#39;dirname&#39; and &#39;basename&#39; for a path.
Definition: functions.php:279
URL utility class.
Definition: URLUtil.php:18
static decodePath($path)
Decodes a url-encoded path.
Definition: URLUtil.php:57
static decodePathSegment($path)
Decodes a url-encoded path segment.
Definition: URLUtil.php:70
static encodePath($path)
Encodes the path of a url.
Definition: URLUtil.php:29
static splitPath($path)
Returns the &#39;dirname&#39; and &#39;basename&#39; for a path.
Definition: URLUtil.php:83