ILIAS  trunk Revision v11.0_alpha-1723-g8e69f309bab
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
FileWriteAccess.php
Go to the documentation of this file.
1 <?php
2 
20 
24 
29 interface FileWriteAccess
30 {
41  public function write(string $path, string $content): void;
42 
55  public function update(string $path, string $new_content): void;
56 
68  public function put(string $path, string $content): void;
69 
80  public function delete(string $path): void;
81 
93  public function readAndDelete(string $path): string;
94 
107  public function rename(string $path, string $new_path): void;
108 
121  public function copy(string $path, string $copy_path): void;
122 }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
rename(string $path, string $new_path)
Moves a file from the source to the destination.
update(string $path, string $new_content)
Updates the content of a file.
$path
Definition: ltiservices.php:29
readAndDelete(string $path)
Reads the entire file content into a string and removes the file afterwards.
write(string $path, string $content)
Writes the content to a new file.
copy(string $path, string $copy_path)
Copy the source file to a destination.
put(string $path, string $content)
Creates a file or updates an existing one.