ILIAS
release_8 Revision v8.19
◀ ilDoc Overview
Main Page
Related Pages
Modules
+
Namespaces
Namespace List
+
Namespace Members
+
All
$
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
r
s
t
u
v
w
x
+
Functions
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
+
Variables
$
a
b
c
d
e
f
g
h
j
l
m
p
s
t
u
+
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
Ö
+
Files
File List
+
Globals
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
z
+
Functions
_
a
b
c
d
e
g
h
i
m
n
p
r
s
t
u
v
x
+
Variables
$
a
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
z
Examples
•
All
Data Structures
Namespaces
Files
Functions
Variables
Modules
Pages
class.ilWebDAVLockObject.php
Go to the documentation of this file.
1
<?php
2
3
declare(strict_types=1);
4
21
use
Sabre\DAV\Locks\LockInfo
;
22
28
class
ilWebDAVLockObject
29
{
30
protected
string
$token
;
31
protected
int
$obj_id
;
32
protected
int
$ilias_owner
;
33
protected
string
$dav_owner
;
34
protected
int
$expires
;
35
protected
int
$depth
;
36
protected
string
$type
;
37
protected
int
$scope
;
38
39
public
function
__construct
(
40
string
$token,
41
int
$obj_id,
42
int
$ilias_owner,
43
string
$dav_owner,
44
int
$expires,
45
int
$depth,
46
string
$type,
47
int
$scope
48
) {
49
$this->token =
$token
;
50
$this->obj_id =
$obj_id
;
51
$this->ilias_owner =
$ilias_owner
;
52
$this->dav_owner =
$dav_owner
;
53
$this->expires =
$expires
;
54
$this->depth =
$depth
;
55
$this->type =
$type
;
56
$this->scope =
$scope
;
57
}
58
59
public
function
getToken
(): string
60
{
61
return
$this->token
;
62
}
63
64
public
function
getObjId
():
int
65
{
66
return
$this->obj_id
;
67
}
68
69
public
function
getIliasOwner
():
int
70
{
71
return
$this->ilias_owner
;
72
}
73
74
public
function
getDavOwner
(): string
75
{
76
return
$this->dav_owner
;
77
}
78
79
public
function
getExpires
():
int
80
{
81
return
$this->expires
;
82
}
83
84
public
function
getDepth
():
int
85
{
86
return
$this->depth
;
87
}
88
89
public
function
getType
(): string
90
{
91
return
$this->type
;
92
}
93
94
public
function
getScope
():
int
95
{
96
return
$this->scope
;
97
}
98
99
public
function
getAsSabreDavLock
(
string
$uri): LockInfo
100
{
101
$timestamp
= time();
102
103
$sabre_lock =
new
LockInfo();
104
$sabre_lock->created =
$timestamp
;
105
$sabre_lock->depth =
$this->depth
;
106
$sabre_lock->owner =
$this->dav_owner
;
107
$sabre_lock->scope =
$this->scope
;
108
$sabre_lock->timeout = $this->expires -
$timestamp
;
109
$sabre_lock->created = $this->expires - 3600;
110
$sabre_lock->token =
$this->token
;
111
$sabre_lock->uri = $uri;
112
113
return
$sabre_lock;
114
}
115
}
ilWebDAVLockObject
Definition:
class.ilWebDAVLockObject.php:28
ilWebDAVLockObject\getObjId
getObjId()
Definition:
class.ilWebDAVLockObject.php:64
ilWebDAVLockObject\getScope
getScope()
Definition:
class.ilWebDAVLockObject.php:94
ilWebDAVLockObject\getDepth
getDepth()
Definition:
class.ilWebDAVLockObject.php:84
ilWebDAVLockObject\__construct
__construct(string $token, int $obj_id, int $ilias_owner, string $dav_owner, int $expires, int $depth, string $type, int $scope)
Definition:
class.ilWebDAVLockObject.php:39
ilWebDAVLockObject\$ilias_owner
int $ilias_owner
Definition:
class.ilWebDAVLockObject.php:32
ilWebDAVLockObject\$expires
int $expires
Definition:
class.ilWebDAVLockObject.php:34
ilWebDAVLockObject\$type
string $type
Definition:
class.ilWebDAVLockObject.php:36
ilWebDAVLockObject\$token
string $token
Definition:
class.ilWebDAVLockObject.php:30
ilWebDAVLockObject\getAsSabreDavLock
getAsSabreDavLock(string $uri)
Definition:
class.ilWebDAVLockObject.php:99
ilWebDAVLockObject\getExpires
getExpires()
Definition:
class.ilWebDAVLockObject.php:79
ilWebDAVLockObject\getDavOwner
getDavOwner()
Definition:
class.ilWebDAVLockObject.php:74
ilWebDAVLockObject\getToken
getToken()
Definition:
class.ilWebDAVLockObject.php:59
$timestamp
foreach($mandatory_scripts as $file) $timestamp
Definition:
buildRTE.php:70
ilWebDAVLockObject\$depth
int $depth
Definition:
class.ilWebDAVLockObject.php:35
ilWebDAVLockObject\getType
getType()
Definition:
class.ilWebDAVLockObject.php:89
LockInfo
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
ilWebDAVLockObject\$obj_id
int $obj_id
Definition:
class.ilWebDAVLockObject.php:31
ilWebDAVLockObject\$scope
int $scope
Definition:
class.ilWebDAVLockObject.php:37
ILIAS\Repository\int
int(string $key)
Definition:
trait.BaseGUIRequest.php:61
ilWebDAVLockObject\$dav_owner
string $dav_owner
Definition:
class.ilWebDAVLockObject.php:33
ilWebDAVLockObject\getIliasOwner
getIliasOwner()
Definition:
class.ilWebDAVLockObject.php:69
Services
WebDAV
classes
lock
class.ilWebDAVLockObject.php
Generated on Sun Apr 6 2025 22:02:53 for ILIAS by
1.8.13 (using
Doxyfile
)