ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
class.ilObjRepositoryRootDAV.php
Go to the documentation of this file.
1<?php
2
3use Sabre\DAV\Exception\Forbidden;
4
5include_once 'Modules/RootFolder/classes/class.ilObjRootFolder.php';
6
15class ilObjRepositoryRootDAV extends ilObjContainerDAV implements Sabre\DAV\ICollection
16{
19
28 {
29 $this->repository_root_name = $repository_root_name;
31 }
32
33 public function setName($name)
34 {
35 throw new Forbidden("It's not allowed to rename the repository root");
36 }
37
38 public function delete()
39 {
40 throw new Forbidden("It's not allowed to delete the repository root");
41 }
42
43 public function getName()
44 {
46 }
47
48 public function getChildCollectionType()
49 {
50 return 'cat';
51 }
52}
An exception for terminatinating execution or to throw for unit testing.
Class ilObjContainerDAV.
Class ilObjRepositoryRootDAV.
__construct(string $repository_root_name, ilWebDAVRepositoryHelper $repo_helper, ilWebDAVObjDAVHelper $dav_helper)
Check if given object has valid type and calls parent constructor.
getName()
SabreDAV interface function SabreDAV interface function .\Sabre\DAV\INode::getName().
getChildCollectionType()
Return the type for child collections of this collection For courses, groups and folders the type is ...
Class ilObjRootFolder.
Class ilWebDAVObjDAVHelper.
Class ilWebDAVRepositoryHelper.
if($format !==null) $name
Definition: metadata.php:230
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc