ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ilWebDAVLockObject Class Reference
+ Collaboration diagram for ilWebDAVLockObject:

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)
 

Detailed Description

Author
Raphael Heer rapha.nosp@m.el.h.nosp@m.eer@h.nosp@m.slu..nosp@m.ch $Id$

Definition at line 28 of file class.ilWebDAVLockObject.php.

Constructor & Destructor Documentation

◆ __construct()

ilWebDAVLockObject::__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 30 of file class.ilWebDAVLockObject.php.

39 {
40 }

Member Function Documentation

◆ getAsSabreDavLock()

ilWebDAVLockObject::getAsSabreDavLock ( string  $uri)

Definition at line 82 of file class.ilWebDAVLockObject.php.

82 : LockInfo
83 {
84 $timestamp = time();
85
86 $sabre_lock = new LockInfo();
87 $sabre_lock->created = $timestamp;
88 $sabre_lock->depth = $this->depth;
89 $sabre_lock->owner = $this->dav_owner;
90 $sabre_lock->scope = $this->scope;
91 $sabre_lock->timeout = $this->expires - $timestamp;
92 $sabre_lock->created = $this->expires - 3600;
93 $sabre_lock->token = $this->token;
94 $sabre_lock->uri = $uri;
95
96 return $sabre_lock;
97 }
foreach($mandatory_scripts as $file) $timestamp
Definition: buildRTE.php:70
$scope
Definition: ltiregstart.php:51
$token
Definition: xapitoken.php:70

References $scope, $timestamp, and $token.

◆ getDavOwner()

ilWebDAVLockObject::getDavOwner ( )

Definition at line 57 of file class.ilWebDAVLockObject.php.

57 : string
58 {
59 return $this->dav_owner;
60 }

Referenced by ilWebDAVLocksRepository\saveLockToDB().

+ Here is the caller graph for this function:

◆ getDepth()

ilWebDAVLockObject::getDepth ( )

Definition at line 67 of file class.ilWebDAVLockObject.php.

67 : int
68 {
69 return $this->depth;
70 }

Referenced by ilWebDAVLocksRepository\saveLockToDB().

+ Here is the caller graph for this function:

◆ getExpires()

ilWebDAVLockObject::getExpires ( )

Definition at line 62 of file class.ilWebDAVLockObject.php.

62 : int
63 {
64 return $this->expires;
65 }

Referenced by ilWebDAVLocksRepository\saveLockToDB().

+ Here is the caller graph for this function:

◆ getIliasOwner()

ilWebDAVLockObject::getIliasOwner ( )

Definition at line 52 of file class.ilWebDAVLockObject.php.

52 : int
53 {
54 return $this->ilias_owner;
55 }

Referenced by ilWebDAVLocksRepository\saveLockToDB().

+ Here is the caller graph for this function:

◆ getObjId()

ilWebDAVLockObject::getObjId ( )

Definition at line 47 of file class.ilWebDAVLockObject.php.

47 : int
48 {
49 return $this->obj_id;
50 }

Referenced by ilWebDAVLocksRepository\saveLockToDB().

+ Here is the caller graph for this function:

◆ getScope()

ilWebDAVLockObject::getScope ( )

Definition at line 77 of file class.ilWebDAVLockObject.php.

77 : int
78 {
79 return $this->scope;
80 }

References $scope.

Referenced by ilWebDAVLocksRepository\saveLockToDB().

+ Here is the caller graph for this function:

◆ getToken()

ilWebDAVLockObject::getToken ( )

Definition at line 42 of file class.ilWebDAVLockObject.php.

42 : string
43 {
44 return $this->token;
45 }

References $token.

Referenced by ilWebDAVLocksRepository\saveLockToDB().

+ Here is the caller graph for this function:

◆ getType()

ilWebDAVLockObject::getType ( )

Definition at line 72 of file class.ilWebDAVLockObject.php.

72 : string
73 {
74 return $this->type;
75 }

Referenced by ilWebDAVLocksRepository\saveLockToDB().

+ Here is the caller graph for this function:

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