ILIAS
trunk Revision v11.0_alpha-2638-g80c1d007f79
◀ ilDoc Overview
class.ilDAVMountPoint.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
use
Sabre\DAV\INode
;
22
use
Sabre\DAV\Exception\Forbidden
;
23
use
Sabre\DAV\ICollection
;
24
34
class
ilDAVMountPoint
implements
ICollection
35
{
36
use
ilWebDAVReadOnlyNodeWriteFunctionsTrait
;
37
38
protected
int
$user_id
;
39
40
public
function
__construct
(
41
protected
string
$client_id
,
42
protected
ilWebDAVObjFactory
$web_dav_object_factory,
43
protected
ilWebDAVRepositoryHelper
$repo_helper,
44
ilObjUser
$user
45
) {
46
$this->user_id = $user->
getId
();
47
}
48
49
public
function
getName
(): string
50
{
51
return
'MountPoint'
;
52
}
53
57
public
function
getChildren
(): array
58
{
59
if
($this->user_id ===
ANONYMOUS_USER_ID
) {
60
throw
new
Forbidden(
'Only for logged in users'
);
61
}
62
return
[$this->web_dav_object_factory->getClientNode($this->client_id)];
63
}
64
65
public
function
getChild
($name):
ilDAVClientNode
66
{
67
return
$this->web_dav_object_factory->getClientNode($name);
68
}
69
70
public
function
childExists
($name): bool
71
{
72
return
$name ===
$this->client_id
;
73
}
74
75
public
function
getLastModified
():
int
76
{
77
return
strtotime(
'2000-01-01'
);
78
}
79
}
ilWebDAVObjFactory
Definition:
class.ilWebDAVObjFactory.php:30
ilDAVMountPoint\getName
getName()
Definition:
class.ilDAVMountPoint.php:49
ANONYMOUS_USER_ID
const ANONYMOUS_USER_ID
Definition:
constants.php:27
ilWebDAVRepositoryHelper
Definition:
class.ilWebDAVRepositoryHelper.php:23
ilDAVMountPoint\getLastModified
getLastModified()
Definition:
class.ilDAVMountPoint.php:75
Forbidden
ilWebDAVReadOnlyNodeWriteFunctionsTrait
ICollection
ilDAVMountPoint
This class represents the absolut Root-Node on a WebDAV request.
Definition:
class.ilDAVMountPoint.php:34
ilObjUser
ilObject\getId
getId()
Definition:
class.ilObject.php:302
ilDAVMountPoint\__construct
__construct(protected string $client_id, protected ilWebDAVObjFactory $web_dav_object_factory, protected ilWebDAVRepositoryHelper $repo_helper, ilObjUser $user)
Definition:
class.ilDAVMountPoint.php:40
ilDAVMountPoint\getChildren
getChildren()
Definition:
class.ilDAVMountPoint.php:57
INode
ilDAVMountPoint\childExists
childExists($name)
Definition:
class.ilDAVMountPoint.php:70
ilDAVClientNode
Definition:
class.ilDAVClientNode.php:29
ilDAVMountPoint\getChild
getChild($name)
Definition:
class.ilDAVMountPoint.php:65
$client_id
$client_id
Definition:
ltiauth.php:66
ILIAS\Repository\int
int(string $key)
Definition:
trait.BaseGUIRequest.php:61
ilDAVMountPoint\$user_id
int $user_id
Definition:
class.ilDAVMountPoint.php:38
components
ILIAS
WebDAV
classes
dav
class.ilDAVMountPoint.php
Generated on Sun Aug 31 2025 23:04:20 for ILIAS by
1.8.13 (using
Doxyfile
)