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.

Deprecated:
Author
Evert Pot (http://evertpot.com/) 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
Parameters
string$path
Returns
string

Definition at line 57 of file URLUtil.php.

References $path.

Referenced by Sabre\DAV\Server\calculateUri(), 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().

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
+ Here is the caller graph for this function:

◆ decodePathSegment()

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

Decodes a url-encoded path segment.

Deprecated:
use ()
Parameters
string$path
Returns
string

Definition at line 70 of file URLUtil.php.

References $path.

Referenced by Sabre\HTTP\URLUtilTest\testEncodePathSegment().

70  {
71 
72  return decodePathSegment($path);
73 
74  }
$path
Definition: aliased.php:25
static decodePathSegment($path)
Decodes a url-encoded path segment.
Definition: URLUtil.php:70
+ 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 ()
Parameters
string$path
Returns
string

Definition at line 29 of file URLUtil.php.

References $path.

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

29  {
30 
31  return encodePath($path);
32 
33  }
$path
Definition: aliased.php:25
static encodePath($path)
Encodes the path of a url.
Definition: URLUtil.php:29
+ 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 ()
Parameters
string$pathSegment
Returns
string

Definition at line 44 of file URLUtil.php.

Referenced by Sabre\HTTP\URLUtilTest\testEncodePathSegment().

44  {
45 
46  return encodePathSegment($pathSegment);
47 
48  }
static encodePathSegment($pathSegment)
Encodes a 1 segment of a path.
Definition: URLUtil.php:44
+ 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().
Parameters
string$basePath
string$newPath
Returns
string

Definition at line 97 of file URLUtil.php.

References Sabre\Uri\resolve().

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
+ Here is the call graph for this function:

◆ splitPath()

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

Returns the 'dirname' and 'basename' for a path.

Deprecated:
Use Sabre().
Parameters
string$path
Returns
array

Definition at line 83 of file URLUtil.php.

References $path, and Sabre\Uri\split().

Referenced by Sabre\DAV\Tree\copy(), Sabre\DAV\Server\createCollection(), Sabre\DAV\Server\createFile(), Sabre\DAV\Tree\delete(), Sabre\DAVACL\PrincipalBackend\PDO\findByUri(), Sabre\DAV\Browser\Plugin\generateDirectoryIndex(), Sabre\DAV\Browser\Plugin\generateHeader(), Sabre\CardDAV\Plugin\getAddressbookHomeForPrincipal(), Sabre\DAV\Server\getCopyAndMoveInfo(), Sabre\DAV\Tree\getMultipleNodes(), Sabre\DAV\FS\Node\getName(), Sabre\CalDAV\CalendarHome\getName(), Sabre\DAVACL\AbstractPrincipalCollection\getName(), Sabre\DAVACL\Principal\getName(), Sabre\DAV\Tree\getNodeForPath(), Sabre\DAVACL\PrincipalBackend\PDO\getPrincipalsByPrefix(), Sabre\DAV\Browser\Plugin\httpPOST(), Sabre\DAV\TemporaryFileFilterPlugin\isTempFile(), Sabre\DAV\Tree\move(), Sabre\DAV\Tree\nodeExists(), Sabre\DAV\Browser\GuessContentType\propFind(), Sabre\DAVACL\AbstractPrincipalCollection\searchPrincipals(), Sabre\DAVACL\PrincipalBackend\PDO\searchPrincipals(), Sabre\DAV\FS\Node\setName(), and Sabre\HTTP\URLUtilTest\testSplitPath().

83  {
84 
85  return Uri\split($path);
86 
87  }
$path
Definition: aliased.php:25
split($path)
Returns the 'dirname' and 'basename' for a path.
Definition: functions.php:279
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

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