|
MediaWiki
1.23.0
|
Simple version of LockManager that does nothing. More...


Protected Member Functions | |
| doLock (array $paths, $type) | |
| Lock resources with the given keys and lock type. More... | |
| doUnlock (array $paths, $type) | |
| Unlock resources with the given keys and lock type. More... | |
Protected Member Functions inherited from LockManager | |
| doLockByType (array $pathsByType) | |
| doUnlockByType (array $pathsByType) | |
| normalizePathsByType (array $pathsByType) | |
| Normalize the $paths array by converting LOCK_UW locks into the appropriate type and removing any duplicated paths for each lock type. More... | |
| sha1Base16Absolute ( $path) | |
| Get the base 16 SHA-1 of a string, padded to 31 digits. More... | |
| sha1Base36Absolute ( $path) | |
| Get the base 36 SHA-1 of a string, padded to 31 digits. More... | |
Additional Inherited Members | |
Public Member Functions inherited from LockManager | |
| __construct (array $config) | |
| Construct a new instance from configuration. More... | |
| lock (array $paths, $type=self::LOCK_EX, $timeout=0) | |
| Lock the resources at the given abstract paths. More... | |
| lockByType (array $pathsByType, $timeout=0) | |
| Lock the resources at the given abstract paths. More... | |
| unlock (array $paths, $type=self::LOCK_EX) | |
| Unlock the resources at the given abstract paths. More... | |
| unlockByType (array $pathsByType) | |
| Unlock the resources at the given abstract paths. More... | |
Public Attributes inherited from LockManager | |
| const | LOCK_EX = 3 |
| const | LOCK_SH = 1 |
| Lock types; stronger locks have higher values. More... | |
| const | LOCK_UW = 2 |
Protected Attributes inherited from LockManager | |
| $domain | |
| array | $locksHeld = array() |
| Map of (resource path => lock type => count) *. More... | |
| $lockTTL | |
| array | $lockTypeMap |
| Mapping of lock types to the type actually used *. More... | |
Simple version of LockManager that does nothing.
Definition at line 253 of file LockManager.php.
|
protected |
Lock resources with the given keys and lock type.
| array | $paths | List of paths |
| int | $type | LockManager::LOCK_* constant |
Reimplemented from LockManager.
Definition at line 254 of file LockManager.php.
References Status\newGood().
|
protected |
Unlock resources with the given keys and lock type.
| array | $paths | List of paths |
| int | $type | LockManager::LOCK_* constant |
Reimplemented from LockManager.
Definition at line 258 of file LockManager.php.
References Status\newGood().