ILIAS  release_8 Revision v8.24
ilWebDAVReadOnlyNodeWriteFunctionsTrait.php
Go to the documentation of this file.
1<?php
2
3declare(strict_types=1);
4
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 this node.");
50 }
51
56 public function delete(): void
57 {
58 throw new Forbidden("It is not possible to delete this node.");
59 }
60
65 public function put($data): void
66 {
67 throw new Forbidden("It is not possible to change this node.");
68 }
69}
if($format !==null) $name
Definition: metadata.php:247