ILIAS
release_6 Revision v6.24-5-g0c8bfefb3b8
|
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 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.
Definition at line 61 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 167 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 95 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 139 of file class.ilWebDAVLockBackend.php.
References Vendor\Package\$e, and 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.