ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
FileWriteAccess.php
Go to the documentation of this file.
1 <?php
2 
4 
8 
22 interface FileWriteAccess
23 {
38  public function write($path, $content);
39 
40 
56  public function update($path, $newContent);
57 
58 
75  public function put($path, $content);
76 
77 
91  public function delete($path);
92 
93 
107  public function readAndDelete($path);
108 
109 
125  public function rename($path, $newPath);
126 
127 
143  public function copy($path, $copyPath);
144 }
write($path, $content)
Writes the content to a new file.
readAndDelete($path)
Reads the entire file content into a string and removes the file afterwards.
rename($path, $newPath)
Moves a file from the source to the destination.
put($path, $content)
Creates a file or updates an existing one.
update($path, $newContent)
Updates the content of a file.
copy($path, $copyPath)
Copy the source file to a destination.