ILIAS  release_8 Revision v8.24
ilWebDAVLockObject Class Reference
+ Collaboration diagram for ilWebDAVLockObject:

Public Member Functions

 __construct (string $token, int $obj_id, int $ilias_owner, string $dav_owner, int $expires, int $depth, string $type, int $scope)
 
 getToken ()
 
 getObjId ()
 
 getIliasOwner ()
 
 getDavOwner ()
 
 getExpires ()
 
 getDepth ()
 
 getType ()
 
 getScope ()
 
 getAsSabreDavLock (string $uri)
 

Protected Attributes

string $token
 
int $obj_id
 
int $ilias_owner
 
string $dav_owner
 
int $expires
 
int $depth
 
string $type
 
int $scope
 

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 ( string  $token,
int  $obj_id,
int  $ilias_owner,
string  $dav_owner,
int  $expires,
int  $depth,
string  $type,
int  $scope 
)

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

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 }

References $dav_owner, $depth, $expires, $ilias_owner, $obj_id, $scope, $token, and $type.

Member Function Documentation

◆ getAsSabreDavLock()

ilWebDAVLockObject::getAsSabreDavLock ( string  $uri)

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

99 : 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 }
foreach($mandatory_scripts as $file) $timestamp
Definition: buildRTE.php:70

References $dav_owner, $depth, $scope, $timestamp, and $token.

◆ getDavOwner()

ilWebDAVLockObject::getDavOwner ( )

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

74 : string
75 {
76 return $this->dav_owner;
77 }

References $dav_owner.

Referenced by ilWebDAVLocksRepository\saveLockToDB().

+ Here is the caller graph for this function:

◆ getDepth()

ilWebDAVLockObject::getDepth ( )

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

84 : int
85 {
86 return $this->depth;
87 }

References $depth.

Referenced by ilWebDAVLocksRepository\saveLockToDB().

+ Here is the caller graph for this function:

◆ getExpires()

ilWebDAVLockObject::getExpires ( )

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

79 : int
80 {
81 return $this->expires;
82 }

References $expires.

Referenced by ilWebDAVLocksRepository\saveLockToDB().

+ Here is the caller graph for this function:

◆ getIliasOwner()

ilWebDAVLockObject::getIliasOwner ( )

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

69 : int
70 {
71 return $this->ilias_owner;
72 }

References $ilias_owner.

Referenced by ilWebDAVLocksRepository\saveLockToDB().

+ Here is the caller graph for this function:

◆ getObjId()

ilWebDAVLockObject::getObjId ( )

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

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

References $obj_id.

Referenced by ilWebDAVLocksRepository\saveLockToDB().

+ Here is the caller graph for this function:

◆ getScope()

ilWebDAVLockObject::getScope ( )

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

94 : int
95 {
96 return $this->scope;
97 }

References $scope.

Referenced by ilWebDAVLocksRepository\saveLockToDB().

+ Here is the caller graph for this function:

◆ getToken()

ilWebDAVLockObject::getToken ( )

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

59 : string
60 {
61 return $this->token;
62 }

References $token.

Referenced by ilWebDAVLocksRepository\saveLockToDB().

+ Here is the caller graph for this function:

◆ getType()

ilWebDAVLockObject::getType ( )

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

89 : string
90 {
91 return $this->type;
92 }

References $type.

Referenced by ilWebDAVLocksRepository\saveLockToDB().

+ Here is the caller graph for this function:

Field Documentation

◆ $dav_owner

string ilWebDAVLockObject::$dav_owner
protected

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

Referenced by __construct(), getAsSabreDavLock(), and getDavOwner().

◆ $depth

int ilWebDAVLockObject::$depth
protected

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

Referenced by __construct(), getAsSabreDavLock(), and getDepth().

◆ $expires

int ilWebDAVLockObject::$expires
protected

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

Referenced by __construct(), and getExpires().

◆ $ilias_owner

int ilWebDAVLockObject::$ilias_owner
protected

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

Referenced by __construct(), and getIliasOwner().

◆ $obj_id

int ilWebDAVLockObject::$obj_id
protected

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

Referenced by __construct(), and getObjId().

◆ $scope

int ilWebDAVLockObject::$scope
protected

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

Referenced by __construct(), getAsSabreDavLock(), and getScope().

◆ $token

string ilWebDAVLockObject::$token
protected

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

Referenced by __construct(), getAsSabreDavLock(), and getToken().

◆ $type

string ilWebDAVLockObject::$type
protected

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

Referenced by __construct(), and getType().


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