ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
URL utility class. More...
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... | |
URL utility class.
Note: this class is deprecated. All its functionality moved to functions.php or sabre.
Definition at line 18 of file URLUtil.php.
|
static |
Decodes a url-encoded path.
string | $path |
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().
|
static |
Decodes a url-encoded path segment.
string | $path |
Definition at line 70 of file URLUtil.php.
References $path.
Referenced by Sabre\HTTP\URLUtilTest\testEncodePathSegment().
|
static |
Encodes the path of a url.
slashes (/) are treated as path-separators.
string | $path |
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().
|
static |
Encodes a 1 segment of a path.
Slashes are considered part of the name, and are encoded as %2f
string | $pathSegment |
Definition at line 44 of file URLUtil.php.
Referenced by Sabre\HTTP\URLUtilTest\testEncodePathSegment().
|
static |
Resolves relative urls, like a browser would.
string | $basePath | |
string | $newPath |
Definition at line 97 of file URLUtil.php.
References Sabre\Uri\resolve().
|
static |
Returns the 'dirname' and 'basename' for a path.
string | $path |
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().