PHP Class Horde_Dav_Locks, horde

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

Protected Properties

Свойство Type Description
$_lock Horde_Lock A lock handler
$_registry Horde_Registry A registry object.

Méthodes publiques

Méthode 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 méthode

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

getLocks() public méthode

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
Résultat array

lock() public méthode

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

unlock() public méthode

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

Property Details

$_lock protected_oe property

A lock handler
protected Horde_Lock $_lock
Résultat Horde_Lock

$_registry protected_oe property

A registry object.
protected Horde_Registry $_registry
Résultat Horde_Registry