ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ilWebDAVReadOnlyNodeWriteFunctionsTrait.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
21use Sabre\DAV\Exception\Forbidden;
22
23trait ilWebDAVReadOnlyNodeWriteFunctionsTrait
24{
29 public function createDirectory($name): void
30 {
31 throw new Forbidden("It is not possible to create a directory here");
32 }
33
38 public function createFile($name, $data = null): ?string
39 {
40 throw new Forbidden("It is not possible to create a file here");
41 }
42
47 public function setName($name): void
48 {
49 throw new Forbidden("It is not possible to change the name of the root");
50 }
51
56 public function delete(): void
57 {
58 throw new Forbidden("It is not possible to delete the root");
59 }
60}