MediaWiki
REL1_20
|
Self-releasing locks. More...
Public Member Functions | |
__destruct () | |
Static Public Member Functions | |
static | factory (LockManager $manager, array $paths, $type, Status $status) |
Get a ScopedLock object representing a lock on resource paths. | |
Protected Member Functions | |
__construct (LockManager $manager, array $paths, $type, Status $status) | |
Protected Attributes | |
LockManager | $manager |
* | |
Array | $paths |
List of resource paths*. | |
Status | $status |
* | |
$type |
Self-releasing locks.
LockManager helper class to handle scoped locks, which release when an object is destroyed or goes out of scope.
Definition at line 132 of file LockManager.php.
ScopedLock::__construct | ( | LockManager $ | manager, |
array $ | paths, | ||
$ | type, | ||
Status $ | status | ||
) | [protected] |
$manager | LockManager |
$paths | Array List of storage paths |
$type | integer LockManager::LOCK_* constant |
$status | Status |
Definition at line 145 of file LockManager.php.
Definition at line 176 of file LockManager.php.
static ScopedLock::factory | ( | LockManager $ | manager, |
array $ | paths, | ||
$ | type, | ||
Status $ | status | ||
) | [static] |
Get a ScopedLock object representing a lock on resource paths.
Any locks are released once this object goes out of scope. The status object is updated with any errors or warnings.
$manager | LockManager |
$paths | Array List of storage paths |
$type | integer LockManager::LOCK_* constant |
$status | Status |
Definition at line 165 of file LockManager.php.
LockManager ScopedLock::$manager [protected] |
*
Definition at line 133 of file LockManager.php.
Array ScopedLock::$paths [protected] |
List of resource paths*.
Definition at line 135 of file LockManager.php.
Status ScopedLock::$status [protected] |
*
Definition at line 134 of file LockManager.php.
ScopedLock::$type [protected] |
Definition at line 137 of file LockManager.php.