ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
◀ ilDoc Overview
class.ilObjRepositoryRootDAV.php
Go to the documentation of this file.
1
<?
php
2
3
use
Sabre\DAV\Exception\Forbidden
;
4
5
include_once
'Modules/RootFolder/classes/class.ilObjRootFolder.php'
;
6
15
class
ilObjRepositoryRootDAV
extends
ilObjContainerDAV
implements
Sabre\DAV\ICollection
16
{
18
protected
$repository_root_name
;
19
27
public
function
__construct
(
string
$repository_root_name
,
ilWebDAVRepositoryHelper
$repo_helper
,
ilWebDAVObjDAVHelper
$dav_helper
)
28
{
29
$this->repository_root_name =
$repository_root_name
;
30
parent::__construct(
new
ilObjRootFolder
(ROOT_FOLDER_ID,
true
), $repo_helper, $dav_helper);
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
{
45
return
$this->repository_root_name
;
46
}
47
48
public
function
getChildCollectionType
()
49
{
50
return
'cat'
;
51
}
52
}
ilObjRootFolder
Class ilObjRootFolder.
Definition:
class.ilObjRootFolder.php:37
ilObjectDAV\$repo_helper
$repo_helper
Definition:
class.ilObjectDAV.php:26
ilObjRepositoryRootDAV\getName
getName()
Returns the name of the node.
Definition:
class.ilObjRepositoryRootDAV.php:43
ilObjRepositoryRootDAV\getChildCollectionType
getChildCollectionType()
Definition:
class.ilObjRepositoryRootDAV.php:48
ilWebDAVRepositoryHelper
Class ilWebDAVRepositoryHelper.
Definition:
class.ilWebDAVRepositoryHelper.php:12
ilObjRepositoryRootDAV\__construct
__construct(string $repository_root_name, ilWebDAVRepositoryHelper $repo_helper, ilWebDAVObjDAVHelper $dav_helper)
Check if given object has valid type and calls parent constructor.
Definition:
class.ilObjRepositoryRootDAV.php:27
ilObjRepositoryRootDAV
Class ilObjRepositoryRootDAV.
Definition:
class.ilObjRepositoryRootDAV.php:15
Forbidden
ICollection
ilObjectDAV\$dav_helper
$dav_helper
Definition:
class.ilObjectDAV.php:29
ilWebDAVObjDAVHelper
Class ilWebDAVObjDAVHelper.
Definition:
class.ilWebDAVObjDAVHelper.php:12
ilObjRepositoryRootDAV\setName
setName($name)
Renames the node.
Definition:
class.ilObjRepositoryRootDAV.php:33
Sabre\DAV\Exception\Forbidden
Forbidden.
Definition:
Forbidden.php:16
ilObjRepositoryRootDAV\$repository_root_name
$repository_root_name
Definition:
class.ilObjRepositoryRootDAV.php:18
ilObjContainerDAV
Class ilObjContainerDAV.
Definition:
class.ilObjContainerDAV.php:21
$name
$name
Definition:
client_example.php:35
php
Services
WebDAV
classes
dav
class.ilObjRepositoryRootDAV.php
Generated on Thu Feb 27 2025 19:02:08 for ILIAS by
1.8.13 (using
Doxyfile
)