Go to the documentation of this file.
75 if ( $lockStatus->isOK() ) {
98 $wasOk = $this->status->isOK();
99 $this->status->merge( $this->manager->unlockByType( $this->pathsByType ) );
102 $this->status->setResult(
true, $this->status->value );
Class for handling resource locking.
skin txt MediaWiki includes four core it has been set as the default in MediaWiki since the replacing Monobook it had been been the default skin since before being replaced by Vector largely rewritten in while keeping its appearance Several legacy skins were removed in the as the burden of supporting them became too heavy to bear Those in etc for skin dependent CSS etc for skin dependent JavaScript These can also be customised on a per user by etc This feature has led to a wide variety of user styles becoming that gallery is a good place to ending in php
merge( $other, $overwriteValue=false)
Merge another status object into this one.
static release(ScopedLock &$lock=null)
Release a scoped lock and set any errors in the attatched Status object.
array $pathsByType
Map of lock types to resource paths *.
Generic operation result class Has warning/error list, boolean status and arbitrary value.
__construct(LockManager $manager, array $pathsByType, Status $status)
__destruct()
Release the locks when this goes out of scope.
the array() calling protocol came about after MediaWiki 1.4rc1.
List of Api Query prop modules.
static factory(LockManager $manager, array $paths, $type, Status $status, $timeout=0)
Get a ScopedLock object representing a lock on resource paths.
lockByType(array $pathsByType, $timeout=0)
Lock the resources at the given abstract paths.