PDO
The Lock manager allows you to handle all file-locks centrally.
This Lock Manager stores all its data in a database. You must pass a PDO connection object in the constructor.
- Full name:
\Sabre\DAV\Locks\Backend\PDO
- Parent class:
\Sabre\DAV\Locks\Backend\AbstractBackend
Properties
tableName
The PDO tablename this backend uses.
pdo
The PDO connection object.
Methods
__construct
Constructor.
Parameters:
Parameter | Type | Description |
---|---|---|
$pdo |
\PDO |
getLocks
Returns a list of Sabre\DAV\Locks\LockInfo 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.
Parameters:
Parameter | Type | Description |
---|---|---|
$uri |
string | |
$returnChildLocks |
bool |
lock
Locks a uri.
Parameters:
Parameter | Type | Description |
---|---|---|
$uri |
string | |
$lockInfo |
\Sabre\DAV\Locks\LockInfo |
unlock
Removes a lock from a uri.
Parameters:
Parameter | Type | Description |
---|---|---|
$uri |
string | |
$lockInfo |
\Sabre\DAV\Locks\LockInfo |
Automatically generated on 2025-03-18