ILIAS
release_7 Revision v7.30-3-g800a261c036
|
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... | |
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 16 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 35 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.
Definition at line 53 of file class.ilWebDAVLockBackend.php.
References Vendor\Package\$e, getLocksOnObjectId(), and getLocksRecursive().
ilWebDAVLockBackend::getLocksOnObjectId | ( | int | $obj_id | ) |
Returns lock on given object.
int | $obj_id |
Definition at line 159 of file class.ilWebDAVLockBackend.php.
References Vendor\Package\$e.
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 87 of file class.ilWebDAVLockBackend.php.
References getLocksOnObjectId().
Referenced by getLocks().
ilWebDAVLockBackend::lock | ( | $uri, | |
Sabre\DAV\Locks\LockInfo | $lock_info | ||
) |
Function for the sabreDAV interface.
Definition at line 131 of file class.ilWebDAVLockBackend.php.
References Vendor\Package\$e, and ilWebDAVLockObject\createFromSabreLock().
ilWebDAVLockBackend::unlock | ( | $uri, | |
Sabre\DAV\Locks\LockInfo | $lockInfo | ||
) |
Definition at line 114 of file class.ilWebDAVLockBackend.php.
References user().
|
protected |
Definition at line 19 of file class.ilWebDAVLockBackend.php.
Referenced by __construct().
|
protected |
Definition at line 25 of file class.ilWebDAVLockBackend.php.
|
protected |
Definition at line 22 of file class.ilWebDAVLockBackend.php.
Referenced by __construct().
|
protected |
Definition at line 28 of file class.ilWebDAVLockBackend.php.