ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
Static Public Member Functions | |
static | pathinfo ($path) |
Get normalized pathinfo. More... | |
static | normalizeDirname ($dirname) |
Normalize a dirname return value. More... | |
static | dirname ($path) |
Get a normalized dirname from a path. More... | |
static | map (array $object, array $map) |
Map result arrays. More... | |
static | normalizePath ($path) |
Normalize path. More... | |
static | normalizeRelativePath ($path) |
Normalize relative directories in a path. More... | |
static | normalizePrefix ($prefix, $separator) |
Normalize prefix. More... | |
static | contentSize ($contents) |
Get content size. More... | |
static | guessMimeType ($path, $content) |
Guess MIME Type based on the path of the file and it's content. More... | |
static | emulateDirectories (array $listing) |
Emulate directories. More... | |
static | ensureConfig ($config) |
Ensure a Config instance. More... | |
static | rewindStream ($resource) |
Rewind a stream. More... | |
static | isSeekableStream ($resource) |
static | getStreamSize ($resource) |
Get the size of a stream. More... | |
Static Protected Member Functions | |
static | removeFunkyWhiteSpace ($path) |
Removes unprintable characters and invalid unicode characters. More... | |
static | emulateObjectDirectories (array $object, array $directories, array $listedDirectories) |
Emulate the directories of a single object. More... | |
|
static |
|
static |
Get a normalized dirname from a path.
string | $path |
Definition at line 45 of file Util.php.
References $path, and League\Flysystem\Util\dirname().
Referenced by League\Flysystem\Util\dirname(), League\Flysystem\Util\ContentListingFormatter\isDirectChild(), League\Flysystem\Adapter\Local\rename(), and League\Flysystem\Adapter\Ftp\writeStream().
|
static |
Emulate directories.
array | $listing |
Definition at line 195 of file Util.php.
|
staticprotected |
Emulate the directories of a single object.
array | $object | |
array | $directories | |
array | $listedDirectories |
Definition at line 285 of file Util.php.
|
static |
Ensure a Config instance.
null | array | Config | $config |
LogicException |
Definition at line 226 of file Util.php.
References $config.
Referenced by League\Flysystem\setConfig().
|
static |
|
static |
Guess MIME Type based on the path of the file and it's content.
string | $path | |
string | resource | $content |
Definition at line 177 of file Util.php.
References $path, League\Flysystem\Util\MimeType\detectByContent(), and League\Flysystem\Util\MimeType\detectByFilename().
Referenced by League\Flysystem\Adapter\Local\update(), and League\Flysystem\Adapter\Ftp\write().
|
static |
|
static |
|
static |
|
static |
Normalize path.
string | $path |
LogicException |
Definition at line 82 of file Util.php.
References $path.
Referenced by League\Flysystem\Filesystem\copy(), League\Flysystem\Filesystem\createDir(), League\Flysystem\Filesystem\delete(), League\Flysystem\Filesystem\deleteDir(), League\Flysystem\Filesystem\get(), League\Flysystem\Filesystem\getMetadata(), League\Flysystem\Filesystem\getMimetype(), League\Flysystem\Filesystem\getSize(), League\Flysystem\Filesystem\getTimestamp(), League\Flysystem\Filesystem\getVisibility(), League\Flysystem\Filesystem\has(), League\Flysystem\Filesystem\listContents(), League\Flysystem\Filesystem\put(), League\Flysystem\Filesystem\putStream(), League\Flysystem\Filesystem\read(), League\Flysystem\Filesystem\readAndDelete(), League\Flysystem\Filesystem\readStream(), League\Flysystem\Filesystem\rename(), League\Flysystem\Filesystem\setVisibility(), League\Flysystem\Filesystem\update(), League\Flysystem\Filesystem\updateStream(), League\Flysystem\Filesystem\write(), and League\Flysystem\Filesystem\writeStream().
|
static |
|
static |
Normalize relative directories in a path.
string | $path |
LogicException |
Definition at line 96 of file Util.php.
References $path.
|
static |
Get normalized pathinfo.
string | $path |
Definition at line 17 of file Util.php.
References $path, and League\Flysystem\Util\pathinfo().
Referenced by League\Flysystem\Util\ContentListingFormatter\addPathInfo(), League\Flysystem\Util\MimeType\detectByFilename(), and League\Flysystem\Util\pathinfo().
|
staticprotected |
Removes unprintable characters and invalid unicode characters.
string | $path |
Definition at line 134 of file Util.php.
References $path.
|
static |
Rewind a stream.
resource | $resource |
Definition at line 248 of file Util.php.
Referenced by League\Flysystem\Filesystem\putStream(), League\Flysystem\Filesystem\updateStream(), and League\Flysystem\Filesystem\writeStream().