ILIAS  release_7 Revision v7.30-3-g800a261c036
FileWriteAccess.php
Go to the documentation of this file.
1<?php
2
4
8
19{
30 public function write(string $path, string $content);
31
43 public function update(string $path, string $newContent);
44
56 public function put(string $path, string $content);
57
67 public function delete(string $path);
68
78 public function readAndDelete(string $path) : string;
79
91 public function rename(string $path, string $newPath);
92
104 public function copy(string $path, string $copyPath);
105}
An exception for terminatinating execution or to throw for unit testing.
Class FileNotFoundException Indicates that a file is missing or not found.
Class IOException Indicates general problems with the input or output operations.
Definition: IOException.php:13
Interface FileWriteAccess All write file operations of the filesystem service.
copy(string $path, string $copyPath)
Copy the source file to a destination.
put(string $path, string $content)
Creates a file or updates an existing one.
write(string $path, string $content)
Writes the content to a new file.
rename(string $path, string $newPath)
Moves a file from the source to the destination.
readAndDelete(string $path)
Reads the entire file content into a string and removes the file afterwards.
update(string $path, string $newContent)
Updates the content of a file.