ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
FileWriteAccess.php
Go to the documentation of this file.
1<?php
2
4
8
23{
38 public function write(string $path, string $content);
39
40
56 public function update(string $path, string $newContent);
57
58
75 public function put(string $path, string $content);
76
77
91 public function delete(string $path);
92
93
107 public function readAndDelete(string $path) : string;
108
109
125 public function rename(string $path, string $newPath);
126
127
143 public function copy(string $path, string $copyPath);
144}
$path
Definition: aliased.php:25
An exception for terminatinating execution or to throw for unit testing.
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.