ILIAS  release_7 Revision v7.30-3-g800a261c036
class.ilObjRepositoryRootDAV.php
Go to the documentation of this file.
1<?php
2
3use Sabre\DAV\Exception\Forbidden;
4
13class ilObjRepositoryRootDAV extends ilObjContainerDAV implements Sabre\DAV\ICollection
14{
17
26 {
27 $this->repository_root_name = $repository_root_name;
29 }
30
31 public function setName($name)
32 {
33 throw new Forbidden("It's not allowed to rename the repository root");
34 }
35
36 public function delete()
37 {
38 throw new Forbidden("It's not allowed to delete the repository root");
39 }
40
41 public function getName()
42 {
44 }
45
46 public function getChildCollectionType()
47 {
48 return 'cat';
49 }
50}
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.
const ROOT_FOLDER_ID
Definition: constants.php:30
if($format !==null) $name
Definition: metadata.php:230
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc