ILIAS  trunk Revision v12.0_alpha-1540-g00f839d5fa1
ILIAS\WebDAV\Lock\Lock Class Reference
+ Inheritance diagram for ILIAS\WebDAV\Lock\Lock:
+ Collaboration diagram for ILIAS\WebDAV\Lock\Lock:

Public Member Functions

 __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)
 
 getToken ()
 
 getObjId ()
 
 getIliasOwner ()
 
 getDavOwner ()
 
 getExpires ()
 
 getDepth ()
 
 getType ()
 
 getScope ()
 
 getAsSabreDavLock (string $uri)
 
 getToken ()
 
 getObjId ()
 
 getIliasOwner ()
 
 getDavOwner ()
 
 getExpires ()
 
 getDepth ()
 
 getType ()
 
 getScope ()
 
 getAsSabreDavLock (string $uri)
 

Detailed Description

Definition at line 25 of file Lock.php.

Constructor & Destructor Documentation

◆ __construct()

ILIAS\WebDAV\Lock\Lock::__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 at line 27 of file Lock.php.

36 {
37 }

Member Function Documentation

◆ getAsSabreDavLock()

ILIAS\WebDAV\Lock\Lock::getAsSabreDavLock ( string  $uri)

Implements ILIAS\WebDAV\Lock\LockObject.

Definition at line 79 of file Lock.php.

79 : 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 }
$scope
Definition: ltiregstart.php:51
$token
Definition: xapitoken.php:67

References $scope, and $token.

◆ getDavOwner()

ILIAS\WebDAV\Lock\Lock::getDavOwner ( )

Implements ILIAS\WebDAV\Lock\LockObject.

Definition at line 54 of file Lock.php.

54 : string
55 {
56 return $this->dav_owner;
57 }

◆ getDepth()

ILIAS\WebDAV\Lock\Lock::getDepth ( )

Implements ILIAS\WebDAV\Lock\LockObject.

Definition at line 64 of file Lock.php.

64 : int
65 {
66 return $this->depth;
67 }

◆ getExpires()

ILIAS\WebDAV\Lock\Lock::getExpires ( )

Implements ILIAS\WebDAV\Lock\LockObject.

Definition at line 59 of file Lock.php.

59 : int
60 {
61 return $this->expires;
62 }

◆ getIliasOwner()

ILIAS\WebDAV\Lock\Lock::getIliasOwner ( )

Implements ILIAS\WebDAV\Lock\LockObject.

Definition at line 49 of file Lock.php.

49 : int
50 {
51 return $this->ilias_owner;
52 }

◆ getObjId()

ILIAS\WebDAV\Lock\Lock::getObjId ( )

Implements ILIAS\WebDAV\Lock\LockObject.

Definition at line 44 of file Lock.php.

44 : int
45 {
46 return $this->obj_id;
47 }

◆ getScope()

ILIAS\WebDAV\Lock\Lock::getScope ( )

Implements ILIAS\WebDAV\Lock\LockObject.

Definition at line 74 of file Lock.php.

74 : int
75 {
76 return $this->scope;
77 }

References $scope.

◆ getToken()

ILIAS\WebDAV\Lock\Lock::getToken ( )

Implements ILIAS\WebDAV\Lock\LockObject.

Definition at line 39 of file Lock.php.

39 : string
40 {
41 return $this->token;
42 }

References $token.

◆ getType()

ILIAS\WebDAV\Lock\Lock::getType ( )

Implements ILIAS\WebDAV\Lock\LockObject.

Definition at line 69 of file Lock.php.

69 : string
70 {
71 return $this->type;
72 }

The documentation for this class was generated from the following file: