ILIAS  release_8 Revision v8.24
FileWriteAccess.php
Go to the documentation of this file.
1<?php
2
4
8
9/******************************************************************************
10 *
11 * This file is part of ILIAS, a powerful learning management system.
12 *
13 * ILIAS is licensed with the GPL-3.0, you should have received a copy
14 * of said license along with the source code.
15 *
16 * If this is not the case or you just want to try ILIAS, you'll find
17 * us at:
18 * https://www.ilias.de
19 * https://github.com/ILIAS-eLearning
20 *
21 *****************************************************************************/
36{
51 public function write(string $path, string $content): void;
52
53
69 public function update(string $path, string $new_content): void;
70
71
88 public function put(string $path, string $content): void;
89
90
104 public function delete(string $path): void;
105
106
120 public function readAndDelete(string $path): string;
121
122
138 public function rename(string $path, string $new_path): void;
139
140
156 public function copy(string $path, string $copy_path): void;
157}
copy(string $path, string $copy_path)
Copy the source file to a destination.
rename(string $path, string $new_path)
Moves a file from the source to the 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.
readAndDelete(string $path)
Reads the entire file content into a string and removes the file afterwards.
update(string $path, string $new_content)
Updates the content of a file.
$path
Definition: ltiservices.php:32