ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Class ilWebDAVLockBackend. More...
Public Member Functions | |
__construct ($db_manager=null, ilWebDAVRepositoryHelper $repo_helper=null) | |
Constructor with dependency injection. More... | |
getLocks ($uri, $returnChildLocks) | |
This function returns all locks and child locks as SabreDAV lock objects It is needed for sabreDAV to see if there are any locks. More... | |
unlock ($uri, Sabre\DAV\Locks\LockInfo $lockInfo) | |
lock ($uri, Sabre\DAV\Locks\LockInfo $lock_info) | |
Function for the sabreDAV interface. More... | |
getLocksOnObjectId (int $obj_id) | |
Returns lock on given object. More... | |
![]() | |
lock ($uri, Locks\LockInfo $lockInfo) | |
Locks a uri. More... | |
unlock ($uri, Locks\LockInfo $lockInfo) | |
Removes a lock from a uri. More... | |
Protected Member Functions | |
getLocksRecursive ($sabre_locks, $ref_id, $uri) | |
Iterates recursive through the ilias tree to search for locked objects. More... | |
Protected Attributes | |
$db_manager | |
$repo_helper | |
$obj_dav_helper | |
$uri_path_resolver | |
Class ilWebDAVLockBackend.
Implementation for WebDAV locking mechanism. Extends the LockBackend from sabreDAV and saves sabreDAV locks as ILIAS locks to DB and returns ILIAS locks in DB as sabreDAV locks. Also removes existing locks
Definition at line 24 of file class.ilWebDAVLockBackend.php.
ilWebDAVLockBackend::__construct | ( | $db_manager = null , |
|
ilWebDAVRepositoryHelper | $repo_helper = null |
||
) |
Constructor with dependency injection.
unknown | $db_manager | |
ilWebDAVRepositoryHelper | null | $repo_helper |
Definition at line 43 of file class.ilWebDAVLockBackend.php.
References $db_manager, $DIC, $repo_helper, and user().
ilWebDAVLockBackend::getLocks | ( | $uri, | |
$returnChildLocks | |||
) |
This function returns all locks and child locks as SabreDAV lock objects It is needed for sabreDAV to see if there are any locks.
Returns a list of Sabre objects.This method should return all the locks for a particular uri, including locks that might be set on a parent uri.If returnChildLocks is set to true, this method should also look for any locks in the subtree of the uri for locks.
string | $uri | |
bool | $returnChildLocks |
Implements Sabre\DAV\Locks\Backend\BackendInterface.
Definition at line 61 of file class.ilWebDAVLockBackend.php.
References getLocksOnObjectId(), and getLocksRecursive().
ilWebDAVLockBackend::getLocksOnObjectId | ( | int | $obj_id | ) |
Returns lock on given object.
int | $obj_id |
Definition at line 167 of file class.ilWebDAVLockBackend.php.
Referenced by getLocks(), and getLocksRecursive().
|
protected |
Iterates recursive through the ilias tree to search for locked objects.
array | $sabre_locks | |
integer | $ref_id | |
string | $uri |
Definition at line 95 of file class.ilWebDAVLockBackend.php.
References $title, and getLocksOnObjectId().
Referenced by getLocks().
ilWebDAVLockBackend::lock | ( | $uri, | |
Sabre\DAV\Locks\LockInfo | $lock_info | ||
) |
Function for the sabreDAV interface.
Definition at line 139 of file class.ilWebDAVLockBackend.php.
References ilWebDAVLockObject\createFromSabreLock().
ilWebDAVLockBackend::unlock | ( | $uri, | |
Sabre\DAV\Locks\LockInfo | $lockInfo | ||
) |
Definition at line 122 of file class.ilWebDAVLockBackend.php.
References user().
|
protected |
Definition at line 27 of file class.ilWebDAVLockBackend.php.
Referenced by __construct().
|
protected |
Definition at line 33 of file class.ilWebDAVLockBackend.php.
|
protected |
Definition at line 30 of file class.ilWebDAVLockBackend.php.
Referenced by __construct().
|
protected |
Definition at line 36 of file class.ilWebDAVLockBackend.php.