public static function vfsStream::path in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/mikey179/vfsStream/src/main/php/org/bovigo/vfs/vfsStream.php \org\bovigo\vfs\vfsStream::path()
restores the path from the url
Parameters
string $url vfsStream url to translate into path:
Return value
string
16 calls to vfsStream::path()
- vfsStreamTestCase::path in vendor/
mikey179/ vfsStream/ src/ test/ php/ org/ bovigo/ vfs/ vfsStreamTestCase.php - assure that url2path conversion works correct
- vfsStreamTestCase::pathConvertsWindowsDirectorySeparators in vendor/
mikey179/ vfsStream/ src/ test/ php/ org/ bovigo/ vfs/ vfsStreamTestCase.php - windows directory separators are converted into default separator
- vfsStreamTestCase::pathRemovesDoubleSlashes in vendor/
mikey179/ vfsStream/ src/ test/ php/ org/ bovigo/ vfs/ vfsStreamTestCase.php - double slashes should be replaced by single slash
- vfsStreamTestCase::pathRemovesTrailingSlash in vendor/
mikey179/ vfsStream/ src/ test/ php/ org/ bovigo/ vfs/ vfsStreamTestCase.php - trailing slashes are removed
- vfsStreamTestCase::pathRemovesTrailingSlashAndWhitespace in vendor/
mikey179/ vfsStream/ src/ test/ php/ org/ bovigo/ vfs/ vfsStreamTestCase.php - trailing slash and whitespace should be removed
File
- vendor/
mikey179/ vfsStream/ src/ main/ php/ org/ bovigo/ vfs/ vfsStream.php, line 78
Class
- vfsStream
- Some utility methods for vfsStream.
Namespace
org\bovigo\vfsCode
public static function path($url) {
// remove line feeds and trailing whitespaces and path separators
$path = trim($url, " \t\r\n\0\v/\\");
$path = substr($path, strlen(self::SCHEME . '://'));
$path = str_replace('\\', '/', $path);
// replace double slashes with single slashes
$path = str_replace('//', '/', $path);
return urldecode($path);
}