Class: Sabre_DAV_Locks_Backend_PDO

Source Location: /includes/classes/SabreDAV/lib/Sabre/DAV/Locks/Backend/PDO.php

Class Overview [line 15]

Sabre_DAV_Locks_Backend_Abstract
   |
   --Sabre_DAV_Locks_Backend_PDO

The Lock manager allows you to handle all file-locks centrally.

Author(s):

  • Evert Pot (http://www.rooftopsolutions.nl/)

Version:

Copyright:

  • Copyright (C) 2007-2010 Rooftop Solutions. All rights reserved.

Variables

Constants

Methods


Inherited Variables

Inherited Constants

Inherited Methods



Class Details

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.

Tags:

[ Top ]


Class Variables


Class Methods

__construct

Sabre_DAV_Locks_Backend_PDO __construct( $pdo)

[line 24]

Tags:

  • access - public

Parameters:

  • PDO $pdo -

[ Top ]

getLocks

array getLocks( string $uri)

[line 39]

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.

Tags:

  • access - public

Overrides Sabre_DAV_Locks_Backend_Abstract::getLocks() (Returns a list of Sabre_DAV_Locks_LockInfo objects)

Parameters:

  • string $uri -

[ Top ]

lock

bool lock( string $uri, Sabre_DAV_Locks_LockInfo $lockInfo)

[line 97]

Locks a uri

Tags:

  • access - public

Overrides Sabre_DAV_Locks_Backend_Abstract::lock() (Locks a uri)

Parameters:

[ Top ]

unlock

bool unlock( string $uri, Sabre_DAV_Locks_LockInfo $lockInfo)

[line 131]

Removes a lock from a uri

Tags:

  • access - public

Overrides Sabre_DAV_Locks_Backend_Abstract::unlock() (Removes a lock from a uri)

Parameters:

[ Top ]


Class Constants


Documentation generated on Mon, 31 May 2010 12:53:44 -0400 by phpDocumentor 1.4.3