ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
Sabre\HTTP\URLUtil Class Reference

URL utility class. More...

+ Collaboration diagram for Sabre\HTTP\URLUtil:

Static Public Member Functions

static encodePath ($path)
 Encodes the path of a url. More...
 
static encodePathSegment ($pathSegment)
 Encodes a 1 segment of a path. More...
 
static decodePath ($path)
 Decodes a url-encoded path. More...
 
static decodePathSegment ($path)
 Decodes a url-encoded path segment. More...
 
static splitPath ($path)
 Returns the 'dirname' and 'basename' for a path. More...
 
static resolve ($basePath, $newPath)
 Resolves relative urls, like a browser would. More...
 

Detailed Description

URL utility class.

Note: this class is deprecated. All its functionality moved to functions.php or sabre\uri.

Deprecated:
Author
Evert Pot (http://evertpot.com/) @license http://sabre.io/license/ Modified BSD License

Definition at line 18 of file URLUtil.php.

Member Function Documentation

◆ decodePath()

static Sabre\HTTP\URLUtil::decodePath (   $path)
static

Decodes a url-encoded path.

Deprecated:
use \Sabre\HTTP\decodePath
Parameters
string$path
Returns
string

Definition at line 57 of file URLUtil.php.

57 {
58
59 return decodePath($path);
60
61 }
$path
Definition: aliased.php:25
static decodePath($path)
Decodes a url-encoded path.
Definition: URLUtil.php:57

References $path, and Sabre\HTTP\URLUtil\decodePath().

Referenced by Sabre\DAV\Server\calculateUri(), Sabre\HTTP\URLUtil\decodePath(), Sabre\HTTP\Request\getPath(), Sabre\DAV\Server\guessBaseUri(), Sabre\HTTP\URLUtilTest\testDecode(), Sabre\HTTP\URLUtilTest\testDecodeAccentsWindows7(), Sabre\HTTP\URLUtilTest\testDecodeUmlaut(), Sabre\HTTP\URLUtilTest\testDecodeUmlautLatin1(), and Sabre\HTTP\URLUtilTest\testEncodePath().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ decodePathSegment()

static Sabre\HTTP\URLUtil::decodePathSegment (   $path)
static

Decodes a url-encoded path segment.

Deprecated:
use \Sabre\HTTP\decodePathSegment()
Parameters
string$path
Returns
string

Definition at line 70 of file URLUtil.php.

70 {
71
73
74 }
static decodePathSegment($path)
Decodes a url-encoded path segment.
Definition: URLUtil.php:70

References $path, and Sabre\HTTP\URLUtil\decodePathSegment().

Referenced by Sabre\HTTP\URLUtil\decodePathSegment(), and Sabre\HTTP\URLUtilTest\testEncodePathSegment().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ encodePath()

static Sabre\HTTP\URLUtil::encodePath (   $path)
static

Encodes the path of a url.

slashes (/) are treated as path-separators.

Deprecated:
use \Sabre\HTTP\encodePath()
Parameters
string$path
Returns
string

Definition at line 29 of file URLUtil.php.

29 {
30
31 return encodePath($path);
32
33 }
static encodePath($path)
Encodes the path of a url.
Definition: URLUtil.php:29

References $path, and Sabre\HTTP\URLUtil\encodePath().

Referenced by Sabre\HTTP\URLUtil\encodePath(), Sabre\DAV\Browser\Plugin\generateDirectoryIndex(), Sabre\DAV\Browser\Plugin\generateHeader(), Sabre\HTTP\URLUtilTest\testDecodeAccentsWindows7(), and Sabre\HTTP\URLUtilTest\testEncodePath().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ encodePathSegment()

static Sabre\HTTP\URLUtil::encodePathSegment (   $pathSegment)
static

Encodes a 1 segment of a path.

Slashes are considered part of the name, and are encoded as %2f

Deprecated:
use \Sabre\HTTP\encodePathSegment()
Parameters
string$pathSegment
Returns
string

Definition at line 44 of file URLUtil.php.

44 {
45
46 return encodePathSegment($pathSegment);
47
48 }
static encodePathSegment($pathSegment)
Encodes a 1 segment of a path.
Definition: URLUtil.php:44

References Sabre\HTTP\URLUtil\encodePathSegment().

Referenced by Sabre\HTTP\URLUtil\encodePathSegment(), and Sabre\HTTP\URLUtilTest\testEncodePathSegment().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ resolve()

static Sabre\HTTP\URLUtil::resolve (   $basePath,
  $newPath 
)
static

Resolves relative urls, like a browser would.

Deprecated:
Use Sabre\Uri\resolve().
Parameters
string$basePath
string$newPath
Returns
string

Definition at line 97 of file URLUtil.php.

97 {
98
99 return Uri\resolve($basePath, $newPath);
100
101 }
resolve($basePath, $newPath)
This file contains all the uri handling functions.
Definition: functions.php:23

References Sabre\Uri\resolve().

+ Here is the call graph for this function:

◆ splitPath()


The documentation for this class was generated from the following file: