ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
Public Member Functions | |
has ($path) | |
Check whether a file exists. More... | |
read ($path) | |
Read a file. More... | |
readStream ($path) | |
Retrieves a read-stream for a path. More... | |
listContents ($directory='', $recursive=false) | |
List contents of a directory. More... | |
getMetadata ($path) | |
Get a file's metadata. More... | |
getSize ($path) | |
Get a file's size. More... | |
getMimetype ($path) | |
Get a file's mime-type. More... | |
getTimestamp ($path) | |
Get a file's timestamp. More... | |
getVisibility ($path) | |
Get a file's visibility. More... | |
write ($path, $contents, array $config=[]) | |
Write a new file. More... | |
writeStream ($path, $resource, array $config=[]) | |
Write a new file using a stream. More... | |
update ($path, $contents, array $config=[]) | |
Update an existing file. More... | |
updateStream ($path, $resource, array $config=[]) | |
Update an existing file using a stream. More... | |
rename ($path, $newpath) | |
Rename a file. More... | |
copy ($path, $newpath) | |
Copy a file. More... | |
delete ($path) | |
Delete a file. More... | |
deleteDir ($dirname) | |
Delete a directory. More... | |
createDir ($dirname, array $config=[]) | |
Create a directory. More... | |
setVisibility ($path, $visibility) | |
Set the visibility for a file. More... | |
put ($path, $contents, array $config=[]) | |
Create a file or update if exists. More... | |
putStream ($path, $resource, array $config=[]) | |
Create a file or update if exists. More... | |
readAndDelete ($path) | |
Read and delete a file. More... | |
get ($path, Handler $handler=null) | |
Get a file/directory handler. More... | |
addPlugin (PluginInterface $plugin) | |
Register a plugin. More... | |
Definition at line 5 of file FilesystemInterface.php.
League\Flysystem\FilesystemInterface::addPlugin | ( | PluginInterface | $plugin | ) |
League\Flysystem\FilesystemInterface::copy | ( | $path, | |
$newpath | |||
) |
Copy a file.
string | $path | Path to the existing file. |
string | $newpath | The new path of the file. |
FileExistsException | Thrown if $newpath exists. |
FileNotFoundException | Thrown if $path does not exist. |
Implemented in League\Flysystem\Filesystem.
League\Flysystem\FilesystemInterface::createDir | ( | $dirname, | |
array | $config = [] |
||
) |
Create a directory.
string | $dirname | The name of the new directory. |
array | $config | An optional configuration array. |
Implemented in League\Flysystem\Filesystem.
League\Flysystem\FilesystemInterface::delete | ( | $path | ) |
Delete a file.
string | $path |
FileNotFoundException |
Implemented in League\Flysystem\Filesystem.
League\Flysystem\FilesystemInterface::deleteDir | ( | $dirname | ) |
Delete a directory.
string | $dirname |
RootViolationException | Thrown if $dirname is empty. |
Implemented in League\Flysystem\Filesystem.
League\Flysystem\FilesystemInterface::get | ( | $path, | |
Handler | $handler = null |
||
) |
Get a file/directory handler.
string | $path | The path to the file. |
Handler | $handler | An optional existing handler to populate. |
Implemented in League\Flysystem\Filesystem.
League\Flysystem\FilesystemInterface::getMetadata | ( | $path | ) |
Get a file's metadata.
string | $path | The path to the file. |
FileNotFoundException |
Implemented in League\Flysystem\Filesystem.
League\Flysystem\FilesystemInterface::getMimetype | ( | $path | ) |
Get a file's mime-type.
string | $path | The path to the file. |
FileNotFoundException |
Implemented in League\Flysystem\Filesystem.
League\Flysystem\FilesystemInterface::getSize | ( | $path | ) |
Get a file's size.
string | $path | The path to the file. |
Implemented in League\Flysystem\Filesystem.
League\Flysystem\FilesystemInterface::getTimestamp | ( | $path | ) |
Get a file's timestamp.
string | $path | The path to the file. |
FileNotFoundException |
Implemented in League\Flysystem\Filesystem.
League\Flysystem\FilesystemInterface::getVisibility | ( | $path | ) |
Get a file's visibility.
string | $path | The path to the file. |
FileNotFoundException |
Implemented in League\Flysystem\Filesystem.
League\Flysystem\FilesystemInterface::has | ( | $path | ) |
Check whether a file exists.
string | $path |
Implemented in League\Flysystem\Filesystem.
League\Flysystem\FilesystemInterface::listContents | ( | $directory = '' , |
|
$recursive = false |
|||
) |
List contents of a directory.
string | $directory | The directory to list. |
bool | $recursive | Whether to list recursively. |
Implemented in League\Flysystem\Filesystem.
League\Flysystem\FilesystemInterface::put | ( | $path, | |
$contents, | |||
array | $config = [] |
||
) |
Create a file or update if exists.
string | $path | The path to the file. |
string | $contents | The file contents. |
array | $config | An optional configuration array. |
Implemented in League\Flysystem\Filesystem.
League\Flysystem\FilesystemInterface::putStream | ( | $path, | |
$resource, | |||
array | $config = [] |
||
) |
Create a file or update if exists.
string | $path | The path to the file. |
resource | $resource | The file handle. |
array | $config | An optional configuration array. |
Implemented in League\Flysystem\Filesystem.
League\Flysystem\FilesystemInterface::read | ( | $path | ) |
Read a file.
string | $path | The path to the file. |
FileNotFoundException |
Implemented in League\Flysystem\Filesystem.
League\Flysystem\FilesystemInterface::readAndDelete | ( | $path | ) |
Read and delete a file.
string | $path | The path to the file. |
FileNotFoundException |
Implemented in League\Flysystem\Filesystem.
League\Flysystem\FilesystemInterface::readStream | ( | $path | ) |
Retrieves a read-stream for a path.
string | $path | The path to the file. |
FileNotFoundException |
Implemented in League\Flysystem\Filesystem.
League\Flysystem\FilesystemInterface::rename | ( | $path, | |
$newpath | |||
) |
Rename a file.
string | $path | Path to the existing file. |
string | $newpath | The new path of the file. |
FileExistsException | Thrown if $newpath exists. |
FileNotFoundException | Thrown if $path does not exist. |
Implemented in League\Flysystem\Filesystem.
League\Flysystem\FilesystemInterface::setVisibility | ( | $path, | |
$visibility | |||
) |
Set the visibility for a file.
string | $path | The path to the file. |
string | $visibility | One of 'public' or 'private'. |
Implemented in League\Flysystem\Filesystem.
League\Flysystem\FilesystemInterface::update | ( | $path, | |
$contents, | |||
array | $config = [] |
||
) |
Update an existing file.
string | $path | The path of the existing file. |
string | $contents | The file contents. |
array | $config | An optional configuration array. |
FileNotFoundException |
Implemented in League\Flysystem\Filesystem.
League\Flysystem\FilesystemInterface::updateStream | ( | $path, | |
$resource, | |||
array | $config = [] |
||
) |
Update an existing file using a stream.
string | $path | The path of the existing file. |
resource | $resource | The file handle. |
array | $config | An optional configuration array. |
Implemented in League\Flysystem\Filesystem.
League\Flysystem\FilesystemInterface::write | ( | $path, | |
$contents, | |||
array | $config = [] |
||
) |
Write a new file.
string | $path | The path of the new file. |
string | $contents | The file contents. |
array | $config | An optional configuration array. |
FileExistsException |
Implemented in League\Flysystem\Filesystem.
League\Flysystem\FilesystemInterface::writeStream | ( | $path, | |
$resource, | |||
array | $config = [] |
||
) |
Write a new file using a stream.
string | $path | The path of the new file. |
resource | $resource | The file handle. |
array | $config | An optional configuration array. |
Implemented in League\Flysystem\Filesystem.