PHP Class Horde_Dav_Locks, horde

Author: Jan Schneider ([email protected])
Inheritance: extends Sabre\DAV\Locks\Backend\AbstractBackend
Mostrar archivo Open project: horde/horde

Protected Properties

Property Type Description
$_lock Horde_Lock A lock handler
$_registry Horde_Registry A registry object.

Public Methods

Method Description
__construct ( Horde_Registry $registry, Horde_Lock $lock ) Constructor.
getLocks ( string $uri, boolean $returnChildLocks ) : array Returns a list of Sabre\DAV\Locks\LockInfo objects
lock ( string $uri, Sabre\DAV\Locks\LockInfo $lockInfo ) : boolean Locks a uri
unlock ( string $uri, Sabre\DAV\Locks\LockInfo $lockInfo ) : boolean Removes a lock from a uri

Method Details

__construct() public method

Constructor.
public __construct ( Horde_Registry $registry, Horde_Lock $lock )
$registry Horde_Registry A registry object.
$lock Horde_Lock A lock object.

getLocks() public method

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.
public getLocks ( string $uri, boolean $returnChildLocks ) : array
$uri string
$returnChildLocks boolean
return array

lock() public method

Locks a uri
public lock ( string $uri, Sabre\DAV\Locks\LockInfo $lockInfo ) : boolean
$uri string
$lockInfo Sabre\DAV\Locks\LockInfo
return boolean

unlock() public method

Removes a lock from a uri
public unlock ( string $uri, Sabre\DAV\Locks\LockInfo $lockInfo ) : boolean
$uri string
$lockInfo Sabre\DAV\Locks\LockInfo
return boolean

Property Details

$_lock protected_oe property

A lock handler
protected Horde_Lock $_lock
return Horde_Lock

$_registry protected_oe property

A registry object.
protected Horde_Registry $_registry
return Horde_Registry