Documentation

BackendInterface

If you are defining your own Locks backend, you must implement this interface.

Tags
copyright

Copyright (C) fruux GmbH (https://fruux.com/)

author

Evert Pot (http://evertpot.com/)

license

http://sabre.io/license/ Modified BSD License

Table of Contents

getLocks()  : array<string|int, mixed>
Returns a list of Sabre\DAV\Locks\LockInfo objects.
lock()  : bool
Locks a uri.
unlock()  : bool
Removes a lock from a uri.

Methods

getLocks()

Returns a list of Sabre\DAV\Locks\LockInfo objects.

public getLocks(string $uri, bool $returnChildLocks) : array<string|int, mixed>

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.

Parameters
$uri : string
$returnChildLocks : bool
Return values
array<string|int, mixed>

unlock()

Removes a lock from a uri.

public unlock(string $uri, LockInfo $lockInfo) : bool
Parameters
$uri : string
$lockInfo : LockInfo
Return values
bool

Search results