ILIAS  trunk Revision v11.0_alpha-1861-g09f3d197f78
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
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.

References $scope, $timestamp, and $token.

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  }
$scope
Definition: ltiregstart.php:47
$token
Definition: xapitoken.php:70
foreach($mandatory_scripts as $file) $timestamp
Definition: buildRTE.php:70

◆ getDavOwner()

ilWebDAVLockObject::getDavOwner ( )

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

Referenced by ilWebDAVLocksRepository\saveLockToDB().

57  : string
58  {
59  return $this->dav_owner;
60  }
+ Here is the caller graph for this function:

◆ getDepth()

ilWebDAVLockObject::getDepth ( )

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

Referenced by ilWebDAVLocksRepository\saveLockToDB().

67  : int
68  {
69  return $this->depth;
70  }
+ Here is the caller graph for this function:

◆ getExpires()

ilWebDAVLockObject::getExpires ( )

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

Referenced by ilWebDAVLocksRepository\saveLockToDB().

62  : int
63  {
64  return $this->expires;
65  }
+ Here is the caller graph for this function:

◆ getIliasOwner()

ilWebDAVLockObject::getIliasOwner ( )

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

Referenced by ilWebDAVLocksRepository\saveLockToDB().

52  : int
53  {
54  return $this->ilias_owner;
55  }
+ Here is the caller graph for this function:

◆ getObjId()

ilWebDAVLockObject::getObjId ( )

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

Referenced by ilWebDAVLocksRepository\saveLockToDB().

47  : int
48  {
49  return $this->obj_id;
50  }
+ Here is the caller graph for this function:

◆ getScope()

ilWebDAVLockObject::getScope ( )

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

References $scope.

Referenced by ilWebDAVLocksRepository\saveLockToDB().

77  : int
78  {
79  return $this->scope;
80  }
$scope
Definition: ltiregstart.php:47
+ Here is the caller graph for this function:

◆ getToken()

ilWebDAVLockObject::getToken ( )

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

References $token.

Referenced by ilWebDAVLocksRepository\saveLockToDB().

42  : string
43  {
44  return $this->token;
45  }
$token
Definition: xapitoken.php:70
+ Here is the caller graph for this function:

◆ getType()

ilWebDAVLockObject::getType ( )

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

Referenced by ilWebDAVLocksRepository\saveLockToDB().

72  : string
73  {
74  return $this->type;
75  }
+ Here is the caller graph for this function:

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