MediaWiki  1.28.0
docs/maintenance.txt File Reference

Classes

class  Maintenance
 Abstract maintenance class for quickly writing and churning out maintenance scripts with minimal effort. More...
 

Variables

you have access to all of the
normal MediaWiki so you can
get a DB use the 
cache
 
you have access to all of the
normal MediaWiki so you can
get a DB use the etc For full
docs on the Maintenance 
class
 
you have access to all of the
normal MediaWiki so you can
get a DB 
connection
 
Prior to maintenance scripts
were a hodgepodge of code that
had no cohesion or formal
method of action Beginning
maintenance scripts have been
cleaned up to use a unified
class Directory structure How
to run a script How to write
your own DIRECTORY STRUCTURE
The maintenance directory of a
MediaWiki installation
contains several all of which
have unique purposes HOW TO
RUN A SCRIPT Ridiculously just
call php someScript php that s
in the top level maintenance
directory 
Example
 
Prior to maintenance scripts
were a hodgepodge of code that
had no cohesion or formal
method of action Beginning
maintenance scripts have been
cleaned up to use a unified
class Directory structure How
to run a script How to write
your own DIRECTORY STRUCTURE
The maintenance directory of a
MediaWiki installation
contains several all of which
have unique purposes HOW TO
RUN A SCRIPT Ridiculously just
call php someScript php that s
in the top level maintenance
directory if not default do
this many per batch HOW TO
WRITE YOUR OWN Make a file in
the maintenance directory
called myScript php or
something In write the 
following
 
you have access to all of the
normal MediaWiki 
functions
 
Prior to maintenance scripts
were a hodgepodge of code that
had no cohesion or formal
method of action Beginning 
in
 
Prior to maintenance scripts
were a hodgepodge of code that
had no cohesion or formal
method of action Beginning
maintenance scripts have been
cleaned up to use a unified
class Directory structure How
to run a script How to write
your own DIRECTORY STRUCTURE
The maintenance directory of a
MediaWiki installation
contains several all of which
have unique purposes HOW TO
RUN A SCRIPT Ridiculously just
call php someScript php that s
in the top level maintenance
directory if not default do
this many per batch HOW TO
WRITE YOUR OWN Make a file in
the maintenance directory
called myScript php or
something In 
it
 
class DemoMaint extends
Maintenance
maintClass = "DemoMaint"
 
require_once RUN_MAINTENANCE_IF_MAIN
 
Prior to maintenance scripts
were a hodgepodge of code that
had no cohesion or formal
method of action Beginning
maintenance scripts have been
cleaned up to use a unified
class Directory structure How
to run a script How to write
your own DIRECTORY STRUCTURE
The maintenance directory of a
MediaWiki installation
contains several all of which
have unique purposes HOW TO
RUN A SCRIPT Ridiculously 
simple
 
Prior to maintenance scripts
were a hodgepodge of code that
had no cohesion or formal
method of action Beginning
maintenance scripts have been
cleaned up to use a unified
class Directory structure How
to run a script How to write
your own DIRECTORY STRUCTURE
The maintenance directory of a
MediaWiki installation
contains several 
subdirectories
 
Prior to version
 
Prior to maintenance scripts
were a hodgepodge of code that
had no cohesion or formal
method of action Beginning
maintenance scripts have been
cleaned up to use a unified
class Directory structure How
to run a script How to write
your own DIRECTORY STRUCTURE
The maintenance directory of a
MediaWiki installation
contains several all of which
have unique purposes HOW TO
RUN A SCRIPT Ridiculously just
call php someScript php that s
in the top level maintenance
directory if not default 
wiki
 

Variable Documentation

you have access to all of the normal MediaWiki so you can get a DB use the cache

Definition at line 52 of file maintenance.txt.

Referenced by FileContentsHasher::__construct(), JobQueueDB::__construct(), MediaWiki\Auth\ThrottlePreAuthenticationProvider::__construct(), GitInfo::__construct(), JobQueueGroup::__construct(), MediaWiki\Auth\Throttler::__construct(), CachingSiteStore::__construct(), PageProps::__construct(), ExtensionRegistry::__construct(), RepoGroup::__construct(), CryptHKDF::__construct(), WANObjectCache::__construct(), CryptHKDF::__destruct(), MappedIterator::accept(), GitInfo::cacheIsComplete(), PageProps::cacheProperties(), PageProps::cacheProperty(), JobQueueDB::claimRandom(), ProcessCacheLRU::clear(), MapCacheLRU::clear(), MediaWiki\Auth\Throttler::clear(), RepoGroup::clearCache(), WANObjectCache::clearLastError(), MappedIterator::current(), JobQueueDB::doFlushCaches(), JobQueueDB::doGetAbandonedCount(), JobQueueDB::doGetAcquiredCount(), JobQueueDB::doGetSize(), WANObjectCache::doGetWithSetCallback(), UserCache::doQuery(), GenderCache::doQuery(), PageProps::ensureCacheSize(), WebInstallerOptions::execute(), ArrayBackedMemoizedCallable::fetchResult(), RepoGroup::findFile(), MapCacheLRU::get(), ProcessCacheLRU::get(), MapCacheLRU::getAllKeys(), PageProps::getCachedProperties(), PageProps::getCachedProperty(), WANObjectCache::getCheckKeyTime(), GitInfo::getCurrentBranch(), ProcessCacheLRUTestable::getEntriesCount(), FileContentsHasher::getFileContentsHashInternal(), GenderCache::getGenderOf(), GitInfo::getHead(), GitInfo::getHeadCommitDate(), GitInfo::getHeadSHA1(), WANObjectCache::getLastError(), WANObjectCache::getMulti(), WANObjectCache::getMultiWithSetCallback(), UserCache::getProp(), WANObjectCache::getQoS(), GitInfo::getRemoteUrl(), CryptHKDF::getSaltUsingCache(), CachingSiteStore::getSites(), MapCacheLRU::has(), ProcessCacheLRU::has(), MediaWiki\Auth\Throttler::increase(), MessageCache::load(), ExtensionRegistry::loadFromQueue(), WANObjectCache::makeGlobalKey(), WANObjectCache::makeKey(), mccShowUsage(), MovePage::move(), MappedIterator::next(), ProcessCacheLRU::ping(), MapCacheLRU::ping(), JobQueueGroup::pop(), GitInfo::precomputeValues(), WANObjectCache::processCheckKeys(), JobQueueGroup::push(), WANObjectCache::relayDelete(), WANObjectCache::relayPurge(), CachingSiteStore::reset(), ProcessCacheLRU::resize(), MappedIterator::rewind(), ProcessCacheLRU::set(), MapCacheLRU::set(), WANObjectCache::set(), MediaWiki\Auth\ThrottlePreAuthenticationProvider::setConfig(), RevisionTest::setUp(), RedisBagOStuffTest::setUp(), WANObjectCacheTest::setUp(), MemcachedBagOStuffTest::setUp(), ReplicatedBagOStuffTest::setUp(), TitleMethodsTest::setUp(), BagOStuffTest::setUp(), EditPageTest::setUp(), MultiWriteBagOStuffTest::setUp(), ApiEditPageTest::setUp(), TestPageProps::setUp(), RevisionStorageTest::setUp(), ArrayBackedMemoizedCallable::storeResult(), TitleMethodsTest::tearDown(), ApiEditPageTest::tearDown(), RevisionTest::tearDown(), RevisionStorageTest::tearDown(), TestPageProps::tearDown(), WANObjectCacheTest::testAdaptiveTTL(), BagOStuffTest::testAdd(), BagOStuffTest::testChangeTTL(), WANObjectCacheTest::testDelete(), ReplicatedBagOStuffTest::testGet(), BagOStuffTest::testGet(), ReplicatedBagOStuffTest::testGetAbsent(), BagOStuffTest::testGetMulti(), WANObjectCacheTest::testGetMultiWithSetCallback(), WANObjectCacheTest::testGetNotExists(), BagOStuffTest::testGetScopedLock(), BagOStuffTest::testGetWithSetCallback(), WANObjectCacheTest::testGetWithSeveralCheckKeys(), BagOStuffTest::testIncr(), BagOStuffTest::testIncrWithInit(), MemcachedBagOStuffTest::testKeyNormalization(), BagOStuffTest::testMerge(), WANObjectCacheTest::testProcessCache(), GlobalTest::testReadOnlySet(), RedisBagOStuffTest::testSerialize(), ReplicatedBagOStuffTest::testSet(), WANObjectCacheTest::testSetAndGet(), MultiWriteBagOStuffTest::testSetDelayed(), MultiWriteBagOStuffTest::testSetImmediate(), WANObjectCacheTest::testSetOver(), WANObjectCacheTest::testSetWithLag(), WANObjectCacheTest::testStaleSet(), MultiWriteBagOStuffTest::testSyncMerge(), WANObjectCacheTest::testTouchKeys(), RedisBagOStuffTest::testUnserialize(), MemcachedBagOStuffTest::testValidateKeyEncoding(), MemcachedBagOStuffTest::testValidateKeyEncodingThrowsException(), and WANObjectCacheTest::testWritePending().

you have access to all of the normal MediaWiki so you can get a DB use the etc For full docs on the Maintenance class

Definition at line 52 of file maintenance.txt.

Referenced by SpecialChangePassword::__construct(), MediaWiki\Auth\AuthPluginPrimaryAuthenticationProvider::__construct(), MediaWikiTestCase::__destruct(), MWLBFactory::applyDefaultConfig(), TestSetup::applyInitialConfig(), MediaWiki\Auth\AuthManager::beginAccountCreation(), MediaWiki\Auth\AuthManager::beginAuthentication(), MediaWiki\Auth\LocalPasswordPrimaryAuthenticationProvider::beginPrimaryAccountCreation(), MediaWiki\Auth\TemporaryPasswordPrimaryAuthenticationProvider::beginPrimaryAccountCreation(), MediaWiki\Auth\LocalPasswordPrimaryAuthenticationProvider::beginPrimaryAuthentication(), MediaWiki\Auth\TemporaryPasswordPrimaryAuthenticationProvider::beginPrimaryAuthentication(), Preprocessor::cacheGetTree(), Preprocessor::cacheSetTree(), MediaWiki\Auth\AuthManager::continueAccountCreation(), MediaWiki\Auth\AuthManager::continueAuthentication(), MediaWiki\Auth\ConfirmLinkSecondaryAuthenticationProvider::continueLinkAttempt(), ValidateRegistrationFile::execute(), ApiClientLogin::execute(), HTMLForm::factory(), WikitextContentHandler::getContentClass(), CssContentHandler::getContentClass(), JsonContentHandler::getContentClass(), JavaScriptContentHandler::getContentClass(), TextContentHandler::getContentClass(), ContentHandler::getDiffEngineClass(), MediaWiki\Session\TestUtils::getDummySession(), MediaWiki\Session\TestUtils::getDummySessionBackend(), MockMediaHandlerFactory::getHandlerClass(), MediaWiki\Auth\ConfirmLinkAuthenticationRequestTest::getLinkRequests(), MediaWiki\Auth\ConfirmLinkSecondaryAuthenticationProviderTest::getLinkRequests(), WatchedItemQueryServiceUnitTest::getMockAnonUser(), WatchedItemStoreUnitTest::getMockCache(), WatchedItemQueryServiceUnitTest::getMockDb(), WatchedItemStoreUnitTest::getMockDb(), WatchedItemStoreUnitTest::getMockLoadBalancer(), WatchedItemQueryServiceUnitTest::getMockLoadBalancer(), WatchedItemStoreUnitTest::getMockNonAnonUserWithId(), WatchedItemQueryServiceUnitTest::getMockNonAnonUserWithId(), WikiCategoryPageTest::getMockPageProps(), RecentChangeTest::getMockPageProps(), WatchedItemStoreUnitTest::getMockTitle(), WatchedItemUnitTest::getMockUser(), WatchedItemUnitTest::getMockWatchedItemStore(), DummyAction::getName(), MediaWiki\Auth\AbstractPasswordPrimaryAuthenticationProvider::getPassword(), MediaWiki\Auth\AuthManager::getPreAuthenticationProviders(), MediaWiki\Auth\AuthManager::getPrimaryAuthenticationProviders(), MediaWiki\Session\ImmutableSessionProviderWithCookieTest::getProvider(), MediaWiki\Session\BotPasswordSessionProviderTest::getProvider(), MediaWiki\Auth\LocalPasswordPrimaryAuthenticationProviderTest::getProvider(), MediaWiki\Auth\TemporaryPasswordPrimaryAuthenticationProviderTest::getProvider(), MediaWiki\Session\PHPSessionHandlerTest::getResetter(), MediaWiki\Auth\AuthManager::getSecondaryAuthenticationProviders(), MediaWiki\Auth\AbstractAuthenticationProvider::getUniqueId(), WatchedItemQueryService::getWatchedItemsWithRecentChangeInfo(), BotPassword::login(), ObjectCache::newFromParams(), MediaWikiTestCase::oncePerClass(), ResourceLoaderWikiModule::preloadTitleInfo(), MediaWiki\Auth\AuthManagerTest::provideAccountCreation(), MediaWiki\Auth\AuthManagerTest::provideAccountLink(), MediaWiki\Auth\AuthManagerTest::provideAuthentication(), MediaWiki\Auth\AuthenticationResponseTest::provideConstructors(), MediaWikiServicesTest::provideGetService(), MessageTest::provideNewFromSpecifier(), MediaWiki\Auth\LocalPasswordPrimaryAuthenticationProviderTest::provideProviderAllowsAuthenticationDataChange(), MediaWiki\Auth\TemporaryPasswordPrimaryAuthenticationProviderTest::provideProviderAllowsAuthenticationDataChange(), MediaWiki\Auth\AuthPluginPrimaryAuthenticationProviderTest::provideProviderAllowsAuthenticationDataChange(), MediaWiki\Auth\TemporaryPasswordPrimaryAuthenticationProviderTest::provideProviderChangeAuthenticationData(), MediaWiki\Auth\LocalPasswordPrimaryAuthenticationProviderTest::provideProviderChangeAuthenticationData(), MediaWiki\Auth\LocalPasswordPrimaryAuthenticationProvider::providerAllowsAuthenticationDataChange(), MediaWiki\Auth\TemporaryPasswordPrimaryAuthenticationProvider::providerAllowsAuthenticationDataChange(), MediaWiki\Auth\LocalPasswordPrimaryAuthenticationProvider::providerChangeAuthenticationData(), MediaWiki\Auth\TemporaryPasswordPrimaryAuthenticationProvider::providerChangeAuthenticationData(), ConfigFactory::salvage(), GenericArrayObject::setElement(), MediaWiki\Session\TestUtils::setSessionManagerSingleton(), ExtensionJsonValidationTest::setUp(), LanguageClassesTestCase::setUp(), MediaWiki\Auth\AbstractAuthenticationProviderTest::testAbstractAuthenticationProvider(), MediaWiki\Auth\AbstractPreAuthenticationProviderTest::testAbstractPreAuthenticationProvider(), MediaWiki\Auth\AbstractPrimaryAuthenticationProviderTest::testAbstractPrimaryAuthenticationProvider(), MediaWiki\Auth\AbstractSecondaryAuthenticationProviderTest::testAbstractSecondaryAuthenticationProvider(), ResourceLoaderContextTest::testAccessors(), MediaWiki\Auth\LocalPasswordPrimaryAuthenticationProviderTest::testAccountCreation(), MediaWiki\Auth\AuthPluginPrimaryAuthenticationProviderTest::testAccountCreation(), MediaWiki\Auth\TemporaryPasswordPrimaryAuthenticationProviderTest::testAccountCreation(), MediaWiki\Auth\AuthManagerTest::testAccountCreation(), MediaWiki\Auth\AuthManagerTest::testAccountLink(), WatchedItemUnitTest::testAddWatch(), MediaWiki\Auth\AuthManagerTest::testAllowsAuthenticationDataChange(), MediaWiki\Auth\AuthPluginPrimaryAuthenticationProviderTest::testAuthentication(), MediaWiki\Auth\LocalPasswordPrimaryAuthenticationProviderTest::testAuthentication(), MediaWiki\Auth\TemporaryPasswordPrimaryAuthenticationProviderTest::testAuthentication(), MediaWiki\Auth\AuthManagerTest::testAuthentication(), MediaWiki\Auth\AuthManagerTest::testAutoCreateFailOnLogin(), MediaWiki\Auth\AuthManagerTest::testAutoCreateOnLogin(), MediaWiki\Auth\AuthenticationRequestTest::testBasics(), MediaWiki\Session\TokenTest::testBasics(), MediaWiki\Session\SessionInfoTest::testBasics(), MediaWiki\Session\SessionProviderTest::testBasics(), MediaWiki\Auth\ResetPasswordSecondaryAuthenticationProviderTest::testBasics(), MediaWiki\Auth\AuthManagerTest::testBeginAccountCreation(), MediaWiki\Auth\AuthManagerTest::testBeginAccountLink(), MediaWiki\Auth\ConfirmLinkSecondaryAuthenticationProviderTest::testBeginLinkAttempt(), MediaWiki\Auth\EmailNotificationSecondaryAuthenticationProviderTest::testBeginSecondaryAccountCreation(), MediaWiki\Auth\ConfirmLinkSecondaryAuthenticationProviderTest::testBeginSecondaryAccountCreation(), MediaWiki\Auth\ConfirmLinkSecondaryAuthenticationProviderTest::testBeginSecondaryAuthentication(), ApiLoginTest::testBotPassword(), MediaWiki\Auth\AuthManagerTest::testCanCreateAccount(), MediaWiki\Auth\AuthManagerTest::testCanCreateAccounts(), MediaWiki\Auth\AuthManagerTest::testCanLinkAccounts(), MediaWiki\Auth\AuthManagerTest::testChangeAuthenticationData(), MediaWiki\Auth\AbstractPasswordPrimaryAuthenticationProviderTest::testCheckPasswordValidity(), MediaWiki\Session\SessionTest::testClear(), DatabaseDomainTest::testConstruct(), FauxRequestTest::testConstructInvalidData(), FauxRequestTest::testConstructInvalidSession(), MediaWiki\Auth\AuthPluginPrimaryAuthenticationProviderTest::testConstruction(), MediaWiki\Auth\AbstractPasswordPrimaryAuthenticationProviderTest::testConstructor(), MediaWiki\Auth\ThrottlerTest::testConstructor(), MediaWiki\Session\ImmutableSessionProviderWithCookieTest::testConstructor(), ResourceLoaderImageModuleTest::testContext(), MediaWiki\Auth\AuthManagerTest::testContinueAccountCreation(), MediaWiki\Auth\AuthManagerTest::testContinueAccountLink(), MediaWiki\Auth\ConfirmLinkSecondaryAuthenticationProviderTest::testContinueLinkAttempt(), MediaWiki\Auth\ConfirmLinkSecondaryAuthenticationProviderTest::testContinueSecondaryAccountCreation(), MediaWiki\Auth\ConfirmLinkSecondaryAuthenticationProviderTest::testContinueSecondaryAuthentication(), LinkRendererFactoryTest::testCreate(), LinkRendererFactoryTest::testCreateForUser(), LinkRendererFactoryTest::testCreateFromLegacyOptions(), MediaWiki\Auth\AuthManagerTest::testCreateFromLogin(), WikitextContentHandlerTest::testDataIndexFieldsFile(), MediaWiki\Session\SessionProviderTest::testDescribe(), MediaWiki\Session\PHPSessionHandlerTest::testDisabled(), ResourceLoaderContextTest::testDummy(), ResourceLoaderContextTest::testEmpty(), MediaWiki\Session\PHPSessionHandlerTest::testEnableFlags(), PasswordResetTest::testExecute_email(), MediaWiki\Auth\ThrottlerTest::testExpiration(), MediaWiki\Auth\AbstractPasswordPrimaryAuthenticationProviderTest::testFailResponse(), MediaWiki\Auth\LocalPasswordPrimaryAuthenticationProvider::testForAccountCreation(), MediaWiki\Auth\TemporaryPasswordPrimaryAuthenticationProvider::testForAccountCreation(), MediaWiki\Auth\LegacyHookPreAuthenticationProvider::testForAuthentication(), MediaWiki\Auth\AuthManagerTest::testForcePrimaryAuthenticationProviders(), HTMLRestrictionsFieldTest::testForm(), MediaWiki\Session\SessionProviderTest::testGetAllowedUserRights(), MediaWiki\Auth\AbstractPasswordPrimaryAuthenticationProviderTest::testGetAuthenticationRequests(), MediaWiki\Auth\AuthManagerTest::testGetAuthenticationRequests(), MediaWiki\Auth\AuthManagerTest::testGetAuthenticationRequestsRequired(), MediaWiki\Session\SessionManagerTest::testGetEmptySession(), MediaWiki\Session\SessionManagerTest::testGetGlobalSession(), ResourceLoaderTest::testGetModuleClass(), ResourceLoaderTest::testGetModuleClassDefault(), MediaWiki\Auth\AbstractPasswordPrimaryAuthenticationProviderTest::testGetNewPasswordExpiry(), MediaWiki\Auth\AbstractPasswordPrimaryAuthenticationProviderTest::testGetPassword(), MediaWiki\Auth\AbstractPasswordPrimaryAuthenticationProviderTest::testGetPasswordFactory(), MediaWiki\Auth\AuthenticationRequestTest::testGetRequestByClass(), MediaWiki\Auth\ButtonAuthenticationRequestTest::testGetRequestByName(), FauxRequestTest::testGetRequestURL(), BagOStuffTest::testGetScopedLock(), MediaWiki\Session\SessionManagerTest::testGetSessionById(), MediaWiki\Session\SessionManagerTest::testGetSessionForRequest(), MediaWiki\Auth\AuthenticationRequestTest::testGetUsernameFromRequests(), WatchedItemQueryServiceUnitTest::testGetWatchedItemsForUser(), WatchedItemQueryServiceUnitTest::testGetWatchedItemsForUser_invalidOptionThrowsException(), WatchedItemQueryServiceUnitTest::testGetWatchedItemsWithRecentChangeInfo(), WatchedItemQueryServiceUnitTest::testGetWatchedItemsWithRecentChangeInfo_invalidOptions(), WatchedItemQueryServiceUnitTest::testGetWatchedItemsWithRecentChangeInfo_watchlistOwnerAndInvalidToken(), ExtensionProcessorTest::testGlobalSettingsDocumentedInSchema(), MediaWiki\Session\SessionProviderTest::testHashToSessionId(), MediaWiki\Session\SessionProviderTest::testImmutableSessions(), PasswordResetTest::testIsAllowed(), WatchedItemUnitTest::testIsWatched(), MediaWiki\Auth\AuthenticationRequestTest::testLoadFromSubmission(), MediaWiki\Auth\AuthenticationRequestTest::testLoadRequestsFromSubmission(), MediaWiki\Session\SessionManagerTest::testLoadSessionInfoFromStore(), MediaWiki\Auth\ThrottlerTest::testLog(), MediaWikiTestCaseTest::testLoggersAreRestoredOnTearDown(), BotPasswordTest::testLogin(), JsonContentHandlerTest::testMakeEmptyContent(), ContentHandlerSanityTest::testMakeEmptyContent(), MediaWikiTestCase::testMediaWikiTestCaseParentSetupCalled(), MediaWiki\Auth\AuthenticationRequestTest::testMergeFieldInfo(), MediaWiki\Session\SessionProviderTest::testMergeMetadata(), MediaWiki\Session\SessionTest::testMethods(), DatabaseDomainTest::testNewFromId(), MessageTest::testNewFromSpecifier(), MediaWiki\Session\SessionProviderTest::testNewSessionInfo(), MediaWiki\Session\BotPasswordSessionProviderTest::testNewSessionInfoForRequest(), MediaWiki\Auth\ThrottlerTest::testNormalizeThrottleConditions2(), MediaWiki\Auth\AuthManagerTest::testNormalizeUsername(), ApiQueryWatchlistIntegrationTest::testOwnerAndTokenParams_noWatchlistTokenSet(), ApiQueryWatchlistRawIntegrationTest::testOwnerAndTokenParams_userHasNoWatchlistToken(), ApiQueryWatchlistRawIntegrationTest::testOwnerAndTokenParams_wrongToken(), ApiQueryWatchlistIntegrationTest::testOwnerAndTokenParams_wrongToken(), ContentHandlerTest::testParserOutputForIndexing(), ExtensionJsonValidationTest::testPassesValidation(), MediaWiki\Auth\AbstractPrimaryAuthenticationProviderTest::testPrimaryAccountLink(), MediaWiki\Auth\LocalPasswordPrimaryAuthenticationProviderTest::testProviderAllowsAuthenticationDataChange(), MediaWiki\Auth\TemporaryPasswordPrimaryAuthenticationProviderTest::testProviderAllowsAuthenticationDataChange(), MediaWiki\Auth\LocalPasswordPrimaryAuthenticationProviderTest::testProviderChangeAuthenticationData(), MediaWiki\Auth\TemporaryPasswordPrimaryAuthenticationProviderTest::testProviderChangeAuthenticationData(), MediaWiki\Auth\AuthPluginPrimaryAuthenticationProviderTest::testProviderChangeAuthenticationData(), MediaWiki\Auth\AuthManagerTest::testProviderCreation(), MediaWiki\Auth\AbstractPrimaryAuthenticationProviderTest::testProviderNormalizeUsername(), MediaWiki\Auth\AbstractSecondaryAuthenticationProviderTest::testProviderRevokeAccessForUser(), MediaWiki\Auth\AbstractPrimaryAuthenticationProviderTest::testProviderRevokeAccessForUser(), MediaWiki\Auth\AbstractPasswordPrimaryAuthenticationProviderTest::testProviderRevokeAccessForUser(), MediaWiki\Session\BotPasswordSessionProviderTest::testProvideSessionInfo(), ConfigFactoryTest::testRegister(), WatchedItemUnitTest::testRemoveWatch(), MediaWikiServicesTest::testResetChildProcessServices(), MediaWikiServicesTest::testResetGlobalInstance(), MediaWikiServicesTest::testResetGlobalInstance_quick(), MediaWiki\Session\SessionBackendTest::testResetIdOfGlobalSession(), WatchedItemStoreUnitTest::testResetNotificationTimestamp_item(), MediaWiki\Auth\AuthManagerTest::testRevokeAccessForUser(), MediaWiki\Session\SessionBackendTest::testSessionStuff(), MediaWiki\Auth\AbstractPasswordPrimaryAuthenticationProviderTest::testSetPasswordResetFlag(), MediaWikiTestCaseTest::testSetService(), MediaWiki\Session\SessionManagerTest::testSingleton(), MediaWiki\Auth\AuthManagerTest::testSingleton(), MediaWiki\Session\SessionBackendTest::testTakeOverGlobalSession(), MediaWiki\Auth\LocalPasswordPrimaryAuthenticationProviderTest::testTestForAccountCreation(), MediaWiki\Auth\TemporaryPasswordPrimaryAuthenticationProviderTest::testTestForAccountCreation(), MediaWiki\Auth\LegacyHookPreAuthenticationProviderTest::testTestForAuthentication(), MediaWiki\Auth\ResetPasswordSecondaryAuthenticationProviderTest::testTryReset(), MediaWiki\Session\SessionBackendTest::testUnpersistOfGlobalSession(), MediaWiki\Auth\AuthManagerTest::testUserCanAuthenticate(), MediaWiki\Auth\AuthManagerTest::testUserExists(), UserTest::testUserGetRightsHooks(), MediaWiki\Session\PHPSessionHandlerTest::testWrongInstance(), and WatchedItemStoreUnitTest::verifyCallbackJob().

you have access to all of the normal MediaWiki so you can get a DB connection

Definition at line 52 of file maintenance.txt.

Referenced by mccShowUsage().

Prior to maintenance scripts were a hodgepodge of code that had no cohesion or formal method of action Beginning maintenance scripts have been cleaned up to use a unified class Directory structure How to run a script How to write your own DIRECTORY STRUCTURE The maintenance directory of a MediaWiki installation contains several all of which have unique purposes HOW TO RUN A SCRIPT Ridiculously just call php someScript php that s in the top level maintenance directory Example

Definition at line 1 of file maintenance.txt.

Prior to maintenance scripts were a hodgepodge of code that had no cohesion or formal method of action Beginning maintenance scripts have been cleaned up to use a unified class Directory structure How to run a script How to write your own DIRECTORY STRUCTURE The maintenance directory of a MediaWiki installation contains several all of which have unique purposes HOW TO RUN A SCRIPT Ridiculously just call php someScript php that s in the top level maintenance directory if not default do this many per batch HOW TO WRITE YOUR OWN Make a file in the maintenance directory called myScript php or something In write the following

Definition at line 1 of file maintenance.txt.

Referenced by CheckLanguageCLI::help().

you have access to all of the normal MediaWiki functions

Definition at line 52 of file maintenance.txt.

Prior to maintenance scripts were a hodgepodge of code that had no cohesion or formal method of action Beginning in

Definition at line 1 of file maintenance.txt.

Prior to maintenance scripts were a hodgepodge of code that had no cohesion or formal method of action Beginning maintenance scripts have been cleaned up to use a unified class Directory structure How to run a script How to write your own DIRECTORY STRUCTURE The maintenance directory of a MediaWiki installation contains several all of which have unique purposes HOW TO RUN A SCRIPT Ridiculously just call php someScript php that s in the top level maintenance directory if not default do this many per batch HOW TO WRITE YOUR OWN Make a file in the maintenance directory called myScript php or something In it

Definition at line 1 of file maintenance.txt.

class DemoMaint extends Maintenance $ maintClass = "DemoMaint"
require_once RUN_MAINTENANCE_IF_MAIN

Definition at line 50 of file maintenance.txt.

Prior to maintenance scripts were a hodgepodge of code that had no cohesion or formal method of action Beginning maintenance scripts have been cleaned up to use a unified class Directory structure How to run a script How to write your own DIRECTORY STRUCTURE The maintenance directory of a MediaWiki installation contains several all of which have unique purposes HOW TO RUN A SCRIPT Ridiculously simple

Definition at line 1 of file maintenance.txt.

Prior to maintenance scripts were a hodgepodge of code that had no cohesion or formal method of action Beginning maintenance scripts have been cleaned up to use a unified class Directory structure How to run a script How to write your own DIRECTORY STRUCTURE The maintenance directory of a MediaWiki installation contains several subdirectories

Definition at line 1 of file maintenance.txt.

Prior to maintenance scripts were a hodgepodge of code that had no cohesion or formal method of action Beginning maintenance scripts have been cleaned up to use a unified class Directory structure How to run a script How to write your own DIRECTORY STRUCTURE The maintenance directory of a MediaWiki installation contains several all of which have unique purposes HOW TO RUN A SCRIPT Ridiculously just call php someScript php that s in the top level maintenance directory if not default wiki