ILIAS
trunk Revision v11.0_alpha-1769-g99a433fe2dc
◀ ilDoc Overview
Main Page
Related Pages
Modules
+
Namespaces
Namespace List
+
Namespace Members
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Functions
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
x
+
Variables
$
c
e
g
h
j
l
m
p
s
t
u
v
+
Enumerations
a
c
e
f
i
j
l
m
n
o
p
r
s
t
u
v
z
+
Enumerator
a
c
d
e
f
g
i
l
m
n
o
p
q
s
t
u
v
y
+
Data Structures
Data Structures
Data Structure Index
Class Hierarchy
+
Data Fields
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Ö
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Variables
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Ö
Enumerations
Enumerator
+
Files
File List
+
Globals
+
All
$
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
z
+
Functions
a
b
c
d
e
f
g
h
i
m
n
p
r
s
t
u
v
+
Variables
$
a
c
e
g
h
i
m
n
o
p
r
s
t
u
v
z
Enumerations
Enumerator
Examples
•
All
Data Structures
Namespaces
Files
Functions
Variables
Enumerations
Enumerator
Modules
Pages
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:294
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 Apr 13 2025 23:04:22 for ILIAS by
1.8.13 (using
Doxyfile
)