MediaWiki  1.29.1
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 MaintenancemaintClass = "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

◆ cache

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(), WANObjectCacheReaper::__construct(), PageProps::__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(), 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(), WANObjectCacheReaper::invoke(), MessageCache::load(), WANObjectCache::makeGlobalKey(), WANObjectCache::makeKey(), mccShowUsage(), MovePage::move(), MappedIterator::next(), ProcessCacheLRU::ping(), MapCacheLRU::ping(), JobQueueGroup::pop(), GitInfo::precomputeValues(), WANObjectCache::processCheckKeys(), JobQueueGroup::push(), WANObjectCache::reap(), WANObjectCache::reapCheckKey(), WANObjectCache::relayDelete(), WANObjectCache::relayPurge(), CachingSiteStore::reset(), ProcessCacheLRU::resize(), MappedIterator::rewind(), ProcessCacheLRU::set(), MapCacheLRU::set(), WANObjectCache::set(), MediaWiki\Auth\ThrottlePreAuthenticationProvider::setConfig(), RevisionTest::setUp(), MemcachedBagOStuffTest::setUp(), WANObjectCacheTest::setUp(), ReplicatedBagOStuffTest::setUp(), RedisBagOStuffTest::setUp(), TitleMethodsTest::setUp(), BagOStuffTest::setUp(), MultiWriteBagOStuffTest::setUp(), EditPageTest::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(), WANObjectCacheTest::testReap(), 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().

◆ class

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
Examples
/src/tests/phpunit/MediaWikiTestCase.php.

Definition at line 52 of file maintenance.txt.

Referenced by MediaWikiTestCase::__call(), Wikimedia\Rdbms\Database::__clone(), SpecialChangePassword::__construct(), HTMLFormFieldCloner::__construct(), MediaWiki\Auth\AuthPluginPrimaryAuthenticationProvider::__construct(), ChangesListSpecialPage::__construct(), JobSpecification::__construct(), LocalisationCache::__construct(), Language::__construct(), MediaWikiTestCase::__destruct(), MediaWiki\Session\SessionProvider::__toString(), MWLBFactory::applyDefaultConfig(), TestSetup::applyInitialConfig(), NullRepo::assertWritableRepo(), ForeignDBViaLBRepo::assertWritableRepo(), ForeignDBRepo::assertWritableRepo(), ForeignAPIRepo::assertWritableRepo(), 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(), FileCacheBase::cacheMissKey(), Preprocessor::cacheSetTree(), ExtensionJsonValidator::checkDependencies(), FileBackendStore::concatenate(), MediaWiki\Auth\AuthManager::continueAccountCreation(), MediaWiki\Auth\AuthManager::continueAuthentication(), MediaWiki\Auth\ConfirmLinkSecondaryAuthenticationProvider::continueLinkAttempt(), ReadOnlyModeTest::createLB(), BagOStuff::debug(), MediaWiki\Session\SessionProvider::describeMessage(), FileBackendMultiWrite::doOperationsInternal(), FileBackendStore::doOperationsInternal(), IndexPager::doQuery(), ForeignAPIRepo::enumFiles(), RedirectSpecialPage::execute(), ApiClientLogin::execute(), MediaWikiShell::execute(), JobRunner::executeJob(), HTMLForm::factory(), Wikimedia\Rdbms\Database::factory(), QueryPage::getCachedTimestamp(), WikitextContentHandler::getContentClass(), CssContentHandler::getContentClass(), JsonContentHandler::getContentClass(), JavaScriptContentHandler::getContentClass(), TextContentHandler::getContentClass(), ContextSource::getContext(), Wikimedia\Rdbms\ResultWrapper::getDB(), ResourceLoaderModule::getDefinitionSummary(), ContentHandler::getDiffEngineClass(), HTMLFormField::getDiv(), MediaWiki\Session\TestUtils::getDummySession(), MediaWiki\Session\TestUtils::getDummySessionBackend(), ResourceLoaderTest::getFailFerryMock(), ChangesListSpecialPage::getFilterGroupDefinitionFromLegacyCustomFilters(), IcuCollation::getFirstLetterData(), HTMLFancyCaptchaFieldTest::getForm(), MockMediaHandlerFactory::getHandlerClass(), MWException::getHTML(), Wikimedia\Tests\Rdbms\ConnectionManagerTest::getIDatabaseMock(), Wikimedia\Tests\Rdbms\SessionConsistentConnectionManagerTest::getIDatabaseMock(), MWLBFactory::getLBFactoryClass(), LBFactoryTest::getLBFactoryClassProvider(), MediaWiki\Auth\ConfirmLinkAuthenticationRequestTest::getLinkRequests(), MediaWiki\Auth\ConfirmLinkSecondaryAuthenticationProviderTest::getLinkRequests(), Wikimedia\Tests\Rdbms\ConnectionManagerTest::getLoadBalancerMock(), Wikimedia\Tests\Rdbms\SessionConsistentConnectionManagerTest::getLoadBalancerMock(), Wikimedia\Rdbms\LoadBalancer::getLoadMonitor(), WatchedItemQueryServiceUnitTest::getMockAnonUser(), WatchedItemStoreUnitTest::getMockCache(), WatchedItemQueryServiceUnitTest::getMockDb(), WatchedItemStoreUnitTest::getMockDb(), WatchedItemStoreUnitTest::getMockLoadBalancer(), WatchedItemQueryServiceUnitTest::getMockLoadBalancer(), WatchedItemQueryServiceUnitTest::getMockNonAnonUserWithId(), WatchedItemStoreUnitTest::getMockNonAnonUserWithId(), SkinTemplateTest::getMockOutputPage(), WikiCategoryPageTest::getMockPageProps(), RecentChangeTest::getMockPageProps(), WatchedItemStoreUnitTest::getMockReadOnlyMode(), WatchedItemStoreUnitTest::getMockTitle(), WatchedItemUnitTest::getMockUser(), WatchedItemUnitTest::getMockWatchedItemStore(), VirtualRESTService::getName(), DummyAction::getName(), MediaWikiTestCase::getNewTempFile(), HTMLFormField::getOOUI(), 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(), ResourceLoaderTest::getSimpleModuleMock(), InterwikiLookupAdapterTest::getSiteLookup(), Skin::getSkinStylePath(), IndexPager::getSqlComment(), HTMLCheckMatrix::getTableRow(), HTMLFormField::getTableRow(), MediaWiki\Auth\AbstractAuthenticationProvider::getUniqueId(), WatchedItemQueryService::getWatchedItemsWithRecentChangeInfo(), ForeignAPIRepo::httpGetCached(), FileCacheBase::incrMissesRecent(), LocalFile::loadExtraFromDB(), LocalFile::loadFromDB(), FileOp::logFailure(), BotPassword::login(), ObjectCache::newFromParams(), LocalFile::nextHistoryLine(), MathCaptcha::onAuthChangeFormFields(), QuestyCaptcha::onAuthChangeFormFields(), ReCaptcha::onAuthChangeFormFields(), FancyCaptcha::onAuthChangeFormFields(), SimpleCaptcha::onAuthChangeFormFields(), MediaWikiTestCase::oncePerClass(), TitleBlacklistHooks::onRegistration(), ResourceLoaderWikiModule::preloadTitleInfo(), SkinTemplate::prepareQuickTemplate(), MediaWiki\Auth\AuthManagerTest::provideAccountCreation(), MediaWiki\Auth\AuthManagerTest::provideAccountLink(), ApiMainTest::provideApiErrorFormatterCreation(), MediaWiki\Auth\AuthManagerTest::provideAuthentication(), MediaWiki\Auth\AuthenticationResponseTest::provideConstructors(), MediaWikiServicesTest::provideGetService(), 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(), File::readOnlyError(), QueryPage::reallyDoQuery(), QueryPage::recache(), SpamBlacklistHooks::registerExtension(), RenameuserSQL::rename(), MWException::report(), MWException::reportHTML(), MediaWiki::restInPeace(), FileBackendMultiWrite::resyncFiles(), TransformationalImageHandler::rotate(), ConfigFactory::salvage(), GenericArrayObject::setElement(), MediaWiki\Session\TestUtils::setSessionManagerSingleton(), TitleBlacklistAuthenticationRequestTest::setUp(), CaptchaAuthenticationRequestTest::setUp(), TitleBlacklistPreAuthenticationProviderTest::setUp(), MWHttpRequestTestCase::setUp(), CaptchaPreAuthenticationProviderTest::setUp(), LanguageClassesTestCase::setUp(), MimeMagic::singleton(), 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(), ApiMessageTest::testApiMessageCreate(), ApiTestCase::testApiTestGroup(), 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\SessionInfoTest::testBasics(), MediaWiki\Session\TokenTest::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(), HashBagOStuffTest::testConstruct(), DatabaseDomainTest::testConstruct(), FauxRequestTest::testConstructInvalidData(), FauxRequestTest::testConstructInvalidSession(), MediaWiki\Auth\AuthPluginPrimaryAuthenticationProviderTest::testConstruction(), MediaWiki\Auth\AbstractPasswordPrimaryAuthenticationProviderTest::testConstructor(), LanguageCodeTest::testConstructor(), MediaWiki\Auth\ThrottlerTest::testConstructor(), MediaWiki\Session\ImmutableSessionProviderWithCookieTest::testConstructor(), FauxRequestTest::testConstructWithSession(), 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(), CachedBagOStuffTest::testExpire(), MediaWiki\Auth\AbstractPasswordPrimaryAuthenticationProviderTest::testFailResponse(), InterwikiLookupAdapterTest::testFetch(), TitleBlacklistPreAuthenticationProvider::testForAccountCreation(), MediaWiki\Auth\LocalPasswordPrimaryAuthenticationProvider::testForAccountCreation(), MediaWiki\Auth\TemporaryPasswordPrimaryAuthenticationProvider::testForAccountCreation(), MediaWiki\Auth\LegacyHookPreAuthenticationProvider::testForAuthentication(), MediaWiki\Auth\AuthManagerTest::testForcePrimaryAuthenticationProviders(), HTMLRestrictionsFieldTest::testForm(), MediaWiki\Session\SessionProviderTest::testGetAllowedUserRights(), CaptchaPreAuthenticationProviderTest::testGetAuthenticationRequests(), MediaWiki\Auth\AbstractPasswordPrimaryAuthenticationProviderTest::testGetAuthenticationRequests(), MediaWiki\Auth\AuthManagerTest::testGetAuthenticationRequests(), CaptchaPreAuthenticationProviderTest::testGetAuthenticationRequests_store(), MediaWiki\Auth\AuthManagerTest::testGetAuthenticationRequestsRequired(), MediaWiki\Session\SessionManagerTest::testGetEmptySession(), ChangesListSpecialPageTest::testGetFilterGroupDefinitionFromLegacyCustomFilters(), MediaWiki\Session\SessionManagerTest::testGetGlobalSession(), UserGroupMembershipTest::testGetMembership(), ApiErrorFormatterTest::testGetMessageFromException(), ApiErrorFormatterTest::testGetMessageFromException_BC(), 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(), MessageBlobStoreTest::testGetResourceLoader(), BagOStuffTest::testGetScopedLock(), MediaWiki\Session\SessionManagerTest::testGetSessionById(), MediaWiki\Session\SessionManagerTest::testGetSessionForRequest(), ChangesListSpecialPageTest::testGetStructuredFilterJsData(), MediaWiki\Auth\AuthenticationRequestTest::testGetUsernameFromRequests(), WatchedItemQueryServiceUnitTest::testGetWatchedItemsForUser(), WatchedItemQueryServiceUnitTest::testGetWatchedItemsForUser_invalidOptionThrowsException(), WatchedItemQueryServiceUnitTest::testGetWatchedItemsWithRecentChangeInfo(), WatchedItemQueryServiceUnitTest::testGetWatchedItemsWithRecentChangeInfo_extension(), WatchedItemQueryServiceUnitTest::testGetWatchedItemsWithRecentChangeInfo_invalidOptions(), WatchedItemQueryServiceUnitTest::testGetWatchedItemsWithRecentChangeInfo_watchlistOwnerAndInvalidToken(), ExtensionProcessorTest::testGlobalSettingsDocumentedInSchema(), MediaWiki\Session\SessionProviderTest::testHashToSessionId(), MediaWiki\Session\SessionProviderTest::testImmutableSessions(), PasswordResetTest::testIsAllowed(), UserTest::testIsPingLimitable(), WatchedItemUnitTest::testIsWatched(), MediaWiki\Auth\AuthenticationRequestTest::testLoadFromSubmission(), MediaWiki\Auth\AuthenticationRequestTest::testLoadRequestsFromSubmission(), MediaWiki\Session\SessionManagerTest::testLoadSessionInfoFromStore(), MediaWiki\Auth\ThrottlerTest::testLog(), MediaWikiTestCaseTest::testLoggersAreRestoredOnTearDown_replacingExistingLogger(), MediaWikiTestCaseTest::testLoggersAreRestoredOnTearDown_replacingNonExistingLogger(), MediaWikiTestCaseTest::testLoggersAreRestoredOnTearDown_replacingSameLoggerTwice(), BotPasswordTest::testLogin(), JsonContentHandlerTest::testMakeEmptyContent(), ContentHandlerSanityTest::testMakeEmptyContent(), CachedBagOStuffTest::testMakeGlobalKey(), CachedBagOStuffTest::testMakeKey(), MediaWikiTestCase::testMediaWikiTestCaseParentSetupCalled(), SearchIndexFieldTest::testMerge(), MediaWiki\Auth\AuthenticationRequestTest::testMergeFieldInfo(), MediaWiki\Session\SessionProviderTest::testMergeMetadata(), MediaWiki\Session\SessionTest::testMethods(), ResourceLoaderContextTest::testMsg(), ObjectCacheTest::testNewAnythingAccel(), ObjectCacheTest::testNewAnythingHash(), ObjectCacheTest::testNewAnythingNoAccel(), ObjectCacheTest::testNewAnythingNoAccelNoDb(), ObjectCacheTest::testNewAnythingNothing(), ObjectCacheTest::testNewAnythingNothingNoDb(), DatabaseDomainTest::testNewFromId(), 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(), 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(), BagOStuffTest::testReportDupes(), MediaWikiServicesTest::testResetChildProcessServices(), MediaWikiServicesTest::testResetGlobalInstance(), MediaWikiServicesTest::testResetGlobalInstance_quick(), MediaWiki\Session\SessionBackendTest::testResetIdOfGlobalSession(), WatchedItemStoreUnitTest::testResetNotificationTimestamp_item(), MediaWiki\Auth\AuthManagerTest::testRevokeAccessForUser(), SamplingStatsdClientTest::testSampling(), MediaWiki\Session\SessionBackendTest::testSessionStuff(), MediaWiki\Auth\AbstractPasswordPrimaryAuthenticationProviderTest::testSetPasswordResetFlag(), SamplingStatsdClientTest::testSetSamplingRates(), MediaWikiTestCaseTest::testSetService(), MediaWiki\Session\SessionManagerTest::testSingleton(), MediaWiki\Auth\AuthManagerTest::testSingleton(), UserTest::testSoftBlockRanges(), HTMLReCaptchaFieldTest::testSubmit(), HTMLReCaptchaNoCaptchaFieldTest::testSubmit(), HTMLSubmittedValueFieldTest::testSubmit(), MediaWiki\Session\SessionBackendTest::testTakeOverGlobalSession(), MediaWiki\Auth\LocalPasswordPrimaryAuthenticationProviderTest::testTestForAccountCreation(), MediaWiki\Auth\TemporaryPasswordPrimaryAuthenticationProviderTest::testTestForAccountCreation(), MediaWiki\Auth\LegacyHookPreAuthenticationProviderTest::testTestForAuthentication(), CaptchaPreAuthenticationProviderTest::testTestForAuthentication(), MediaWiki\Auth\ResetPasswordSecondaryAuthenticationProviderTest::testTryReset(), MediaWiki\Session\SessionBackendTest::testUnpersistOfGlobalSession(), MediaWiki\Auth\AuthManagerTest::testUserCanAuthenticate(), MediaWiki\Auth\AuthManagerTest::testUserExists(), UserTest::testUserGetRightsHooks(), HtmlCheckMatrixTest::testValidateAllowsOnlyKnownTags(), MediaWiki\Session\PHPSessionHandlerTest::testWrongInstance(), MediaWiki\Tidy\TidyDriverBase::validate(), WatchedItemStoreUnitTest::verifyCallbackJob(), and CaptchaPreAuthenticationProvider::verifyCaptcha().

◆ connection

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().

◆ 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 Example

Definition at line 1 of file maintenance.txt.

◆ following

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().

◆ functions

you have access to all of the normal MediaWiki functions

Definition at line 52 of file maintenance.txt.

◆ in

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.

◆ it

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.

◆ maintClass

class DemoMaint extends Maintenance $ maintClass = "DemoMaint"

◆ RUN_MAINTENANCE_IF_MAIN

require_once RUN_MAINTENANCE_IF_MAIN

Definition at line 50 of file maintenance.txt.

◆ 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 all of which have unique purposes HOW TO RUN A SCRIPT Ridiculously simple

Definition at line 1 of file maintenance.txt.

◆ subdirectories

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.

◆ version

it is up to the author donor to decide if he or she is willing to distribute software through any other system and a licensee cannot impose that choice This section is intended to make thoroughly clear what is believed to be a consequence of the rest of this License If the distribution and or use of the Program is restricted in certain countries either by patents or by copyrighted the original copyright holder who places the Program under this License may add an geographical distribution limitation excluding those so that distribution is permitted only in or among countries not thus excluded In such this License incorporates the limitation as if written in the body of this License The Free Software Foundation may publish revised and or new versions of the General Public License from time to time Such new versions will be similar in spirit to the present but may differ in detail to address new problems or concerns Each version is given a distinguishing version number If the Program specifies a version number of this License which applies to it and any later version
explicit

◆ wiki

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