ILIAS
trunk Revision v12.0_alpha-1540-g00f839d5fa1
◀ ilDoc Overview
Lock.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
namespace
ILIAS\WebDAV\Lock
;
22
23
use Sabre\DAV\Locks\LockInfo;
24
25
class
Lock
implements
LockObject
26
{
27
public
function
__construct
(
28
protected
string
$token
,
29
protected
int
$obj_id,
30
protected
int
$ilias_owner,
31
protected
string
$dav_owner,
32
protected
int
$expires,
33
protected
int
$depth,
34
protected
string
$type,
35
protected
int
$scope
36
) {
37
}
38
39
public
function
getToken
(): string
40
{
41
return
$this->token
;
42
}
43
44
public
function
getObjId
():
int
45
{
46
return
$this->obj_id;
47
}
48
49
public
function
getIliasOwner
():
int
50
{
51
return
$this->ilias_owner;
52
}
53
54
public
function
getDavOwner
(): string
55
{
56
return
$this->dav_owner;
57
}
58
59
public
function
getExpires
():
int
60
{
61
return
$this->expires;
62
}
63
64
public
function
getDepth
():
int
65
{
66
return
$this->depth;
67
}
68
69
public
function
getType
(): string
70
{
71
return
$this->type;
72
}
73
74
public
function
getScope
():
int
75
{
76
return
$this->scope
;
77
}
78
79
public
function
getAsSabreDavLock
(
string
$uri): LockInfo
80
{
81
$sabre_lock =
new
LockInfo();
82
$sabre_lock->created = $this->expires - 3600;
83
$sabre_lock->depth = $this->depth;
84
$sabre_lock->owner = $this->dav_owner;
85
$sabre_lock->scope =
$this->scope
;
86
$sabre_lock->timeout = $this->expires - time();
87
$sabre_lock->token =
$this->token
;
88
$sabre_lock->uri = $uri;
89
90
return
$sabre_lock;
91
}
92
}
ILIAS\WebDAV\Lock\Lock
Definition:
Lock.php:26
ILIAS\WebDAV\Lock\Lock\getDavOwner
getDavOwner()
Definition:
Lock.php:54
ILIAS\WebDAV\Lock\Lock\__construct
__construct(protected string $token, protected int $obj_id, protected int $ilias_owner, protected string $dav_owner, protected int $expires, protected int $depth, protected string $type, protected int $scope)
Definition:
Lock.php:27
ILIAS\WebDAV\Lock\Lock\getIliasOwner
getIliasOwner()
Definition:
Lock.php:49
ILIAS\WebDAV\Lock\Lock\getType
getType()
Definition:
Lock.php:69
ILIAS\WebDAV\Lock\Lock\getScope
getScope()
Definition:
Lock.php:74
ILIAS\WebDAV\Lock\Lock\getAsSabreDavLock
getAsSabreDavLock(string $uri)
Definition:
Lock.php:79
ILIAS\WebDAV\Lock\Lock\getObjId
getObjId()
Definition:
Lock.php:44
ILIAS\WebDAV\Lock\Lock\getToken
getToken()
Definition:
Lock.php:39
ILIAS\WebDAV\Lock\Lock\getExpires
getExpires()
Definition:
Lock.php:59
ILIAS\WebDAV\Lock\Lock\getDepth
getDepth()
Definition:
Lock.php:64
ILIAS\WebDAV\Lock\LockObject
Definition:
LockObject.php:31
$scope
$scope
Definition:
ltiregstart.php:51
ILIAS\Repository\int
int(string $key)
Definition:
trait.BaseGUIRequest.php:61
ILIAS\WebDAV\Lock
Definition:
Backend.php:21
$token
$token
Definition:
xapitoken.php:67
components
ILIAS
WebDAV
src
Lock
Lock.php
Generated on Wed Jun 3 2026 23:07:35 for ILIAS by
1.9.4 (using
Doxyfile
)