MediaWiki REL1_40
defines.php File Reference

Go to the source code of this file.

Variables

const DBO_COMPRESS IDatabase::DBO_COMPRESS
 
const DBO_DDLMODE IDatabase::DBO_DDLMODE
 
const DBO_DEBUG IDatabase::DBO_DEBUG
 
const DBO_DEFAULT IDatabase::DBO_DEFAULT
 
const DBO_IGNORE IDatabase::DBO_IGNORE
 
const DBO_NOBUFFER IDatabase::DBO_NOBUFFER
 
const DBO_PERSISTENT IDatabase::DBO_PERSISTENT
 
const DBO_SSL IDatabase::DBO_SSL
 
const DBO_SYSDBA IDatabase::DBO_SYSDBA
 
const DBO_TRX IDatabase::DBO_TRX
 
const DB_MASTER ILoadBalancer::DB_PRIMARY
 
const DB_PRIMARY ILoadBalancer::DB_PRIMARY
 
const DB_REPLICA ILoadBalancer::DB_REPLICA
 

Variable Documentation

◆ DB_MASTER

const DB_MASTER ILoadBalancer::DB_PRIMARY
Deprecated
since 1.36, Use DB_PRIMARY instead

Definition at line 30 of file defines.php.

◆ DB_PRIMARY

const DB_PRIMARY ILoadBalancer::DB_PRIMARY
Since
1.36

Definition at line 28 of file defines.php.

Referenced by SiteStatsInit\__construct(), MediaWiki\Page\MergeHistory\__construct(), MediaWiki\Storage\NameTableStore\acquireId(), LogPage\addRelations(), User\addToDatabase(), MediaWiki\Auth\LocalPasswordPrimaryAuthenticationProvider\beginPrimaryAuthentication(), MediaWiki\Auth\EmailNotificationSecondaryAuthenticationProvider\beginSecondaryAccountCreation(), SpecialPageLanguage\changePageLanguage(), CheckStorage\check(), User\checkAndSetTouched(), CleanupUsersWithNoId\cleanup(), CleanupInvalidDbKeys\cleanupTable(), DBSiteStore\clear(), User\clearSharedCache(), CgzCopyTransaction\commit(), ChangeTags\defineTag(), SearchMySQL\delete(), MediaWiki\Block\BlockRestrictionStore\delete(), MediaWiki\Block\BlockRestrictionStore\deleteByBlockId(), MediaWiki\Block\BlockRestrictionStore\deleteByParentBlockId(), NukePage\deleteRevisions(), ChangeTags\deleteTagEverywhere(), SiteStatsInit\doAllAndCommit(), AddRFCandPMIDInterwiki\doDBUpdates(), FixExtLinksProtocolRelative\doDBUpdates(), MigrateExternallinks\doDBUpdates(), MigrateLinksTable\doDBUpdates(), MigrateRevisionActorTemp\doDBUpdates(), MigrateRevisionCommentTemp\doDBUpdates(), PopulateBacklinkNamespace\doDBUpdates(), PopulateFilearchiveSha1\doDBUpdates(), PopulateImageSha1\doDBUpdates(), PopulateIpChanges\doDBUpdates(), PopulatePPSortKey\doDBUpdates(), PopulateRecentChangesSource\doDBUpdates(), PopulateRevisionLength\doDBUpdates(), PopulateRevisionSha1\doDBUpdates(), RefreshExternallinksIndex\doDBUpdates(), PopulateRevisionLength\doLenUpdates(), SiteStatsInit\doPlaceholderInit(), PopulateInterwiki\doPopulate(), PopulateRevisionSha1\doSha1Updates(), SiteStatsUpdate\doUpdate(), UserEditCountUpdate\doUpdate(), WikiPage\doUpdateRestrictions(), RecountCategories\doWork(), WatchedItemStore\duplicateEntry(), ApiSetNotificationTimestamp\execute(), AttachLatest\execute(), BenchmarkTruncate\execute(), CleanupBlocks\execute(), CleanupRemovedModules\execute(), DeleteArchivedFiles\execute(), DeleteArchivedRevisions\execute(), DeleteDefaultMessages\execute(), DeleteEqualMessages\execute(), DeleteOrphanedRevisions\execute(), DeleteSelfExternals\execute(), DeleteTag\execute(), EraseArchivedFile\execute(), MWEval\execute(), FixMergeHistoryCorruption\execute(), FixTimestamps\execute(), FixUserRegistration\execute(), LoggedUpdateMaintenance\execute(), InitEditCount\execute(), InitSiteStats\execute(), InitUserPreference\execute(), MigrateUserGroup\execute(), MoveBatch\execute(), NukeNS\execute(), NukePage\execute(), PatchSql\execute(), PruneUnusedLinkTargetRows\execute(), PurgeModuleDeps\execute(), RebuildFileCache\execute(), ImageBuilder\execute(), RebuildTextIndex\execute(), RefreshImageMetadata\execute(), RemoveInvalidEmails\execute(), RemoveUnusedAccounts\execute(), RenameDbPrefix\execute(), RenameRestrictions\execute(), ResetPageRandom\execute(), RunBatchedQuery\execute(), MwSql\execute(), SqliteMaintenance\execute(), MoveToExternal\execute(), ResolveStubs\execute(), UpdateMediaWiki\execute(), UpdateArticleCount\execute(), UpdateRestrictions\execute(), UpdateSpecialPages\execute(), UppercaseTitlesForUnicodeTransition\execute(), WrapOldPasswords\execute(), UploadStash\fetchFileMetadata(), MediaWiki\Auth\TemporaryPasswordPrimaryAuthenticationProvider\finishAccountCreation(), DoubleRedirectJob\fixRedirects(), Wikimedia\Rdbms\LoadBalancer\getAnyOpenConnection(), FileBackendDBRepoWrapper\getBackendPaths(), MediaWiki\Block\DatabaseBlock\getBlocksForIPList(), UserRightsProxy\getDB(), MediaWiki\Deferred\LinksUpdate\LinksUpdate\getDB(), MediaWiki\User\TempUser\LocalSerialProvider\getDB(), DBAccessObjectUtils\getDBOptions(), UploadStash\getFile(), DoubleRedirectJob\getFinalDestination(), MediaWiki\Title\Title\getLinksTo(), MediaWiki\Storage\NameTableStore\getName(), ExternalStoreDB\getPrimary(), ForeignDBRepo\getPrimaryDB(), ForeignDBViaLBRepo\getPrimaryDB(), LocalRepo\getPrimaryDB(), JobQueueDB\getPrimaryDB(), MediaWiki\Revision\RevisionRenderer\getRenderedRevision(), DeleteLocalPasswords\getUserBatches(), DeleteLocalPasswords\getUserDB(), Wikimedia\Rdbms\ConnectionManager\getWriteConnection(), Wikimedia\Rdbms\ConnectionManager\getWriteConnectionRef(), FixDefaultJsonContentPages\handleRow(), ImportableOldRevisionImporter\import(), WikiRevision\importLogItem(), CheckStorage\importRevision(), MediaWiki\Block\BlockRestrictionStore\insert(), ManualLogEntry\insert(), MediaWiki\Block\DatabaseBlockStore\insertBlock(), WikiPage\insertRedirect(), WikiPage\insertRedirectEntry(), MediaWiki\EditPage\EditPage\internalAttemptSave(), BotPassword\invalidateAllPasswordsForCentralId(), MediaWiki\Title\Title\invalidateCache(), MediaWiki\Title\Title\isSingleRevRedirect(), SiteStats\loadAndLazyInit(), WikiPage\lockAndGetLatest(), ChangeTags\logTagManagementAction(), TitleCleanup\moveIllegalPage(), TitleCleanup\moveInconsistentPage(), RecompressTracked\moveTextRow(), MediaWiki\Block\DatabaseBlock\newLoad(), User\newSystemUser(), RecentChange\notifyEdit(), RecentChange\notifyNew(), MediaWiki\Storage\PageEditStash\parseAndCache(), RebuildTextIndex\populateSearchIndex(), MediaWiki\Auth\LocalPasswordPrimaryAuthenticationProvider\providerAllowsAuthenticationDataChange(), MediaWiki\Auth\TemporaryPasswordPrimaryAuthenticationProvider\providerAllowsAuthenticationDataChange(), MediaWiki\Auth\LocalPasswordPrimaryAuthenticationProvider\providerChangeAuthenticationData(), MediaWiki\Auth\TemporaryPasswordPrimaryAuthenticationProvider\providerChangeAuthenticationData(), ManualLogEntry\publish(), MediaWiki\User\UserGroupManager\purgeExpired(), MediaWiki\Block\DatabaseBlockStore\purgeExpiredBlocks(), MediaWiki\Title\Title\purgeExpiredRestrictions(), RecentChangesUpdateJob\purgeExpiredRows(), Maintenance\purgeRedundantText(), RecentChange\reallyMarkPatrolled(), SiteStatsInit\refresh(), MediaWiki\Category\Category\refreshCounts(), MediaWiki\Category\Category\refreshCountsIfSmall(), ChangeTagsList\reloadFromPrimary(), MediaWiki\Storage\NameTableStore\reloadMap(), BotPassword\removeAllPasswordsForCentralId(), MediaWiki\RenameUser\RenameuserSQL\rename(), ImportReporter\reportPage(), MediaWiki\Page\RollbackPage\rollback(), CategoryMembershipChangeJob\run(), ClearUserWatchlistJob\run(), DeleteLinksJob\run(), RenameUserJob\run(), UserEditCountInitJob\run(), RecentChange\save(), LogPage\saveContent(), MediaWiki\User\UserOptionsManager\saveOptions(), User\saveSettings(), DBSiteStore\saveSites(), EraseArchivedFile\scrubAllVersions(), RevDelArchivedFileItem\setBits(), RevDelArchivedRevisionItem\setBits(), RevDelArchiveItem\setBits(), RevDelFileItem\setBits(), RevDelLogItem\setBits(), RevDelRevisionItem\setBits(), MediaWikiShell\setupLegacy(), MediaWikiShell\setupLogging(), LogEventsList\showLogExtract(), MediaWiki\Storage\SqlBlobStore\storeBlob(), ChangeTags\undefineTag(), SearchMySQL\update(), SearchSqlite\update(), SearchPostgres\update(), MediaWiki\Block\BlockRestrictionStore\update(), RecentChangesUpdateJob\updateActiveUsers(), MediaWiki\Block\DatabaseBlockStore\updateBlock(), MediaWiki\Block\BlockRestrictionStore\updateByParentBlockId(), WikiPage\updateCategoryCounts(), ChangeTags\updateTags(), ChangeTags\updateTagsWithChecks(), MediaWiki\Block\DatabaseBlock\updateTimestamp(), SearchMySQL\updateTitle(), SearchSqlite\updateTitle(), ActivityUpdateJob\updateWatchlistNotification(), PopulateRevisionSha1\upgradeRow(), and PopulateRevisionLength\upgradeRow().

◆ DB_REPLICA

const DB_REPLICA ILoadBalancer::DB_REPLICA

Valid database indexes Operation-based indexes

Definition at line 26 of file defines.php.

Referenced by SiteStatsInit\__construct(), ApiTag\__construct(), MediaWiki\Block\DatabaseBlock\__construct(), IndexPager\__construct(), SearchDatabase\__construct(), OutputPage\addCategoryLinksToLBAndGetResult(), BackupDumper\backupDb(), MediaWiki\Auth\LocalPasswordPrimaryAuthenticationProvider\beginPrimaryAuthentication(), MediaWiki\Auth\TemporaryPasswordPrimaryAuthenticationProvider\beginPrimaryAuthentication(), SiteStatsUpdate\cacheUpdate(), CheckStorage\check(), CleanupInvalidDbKeys\cleanupTable(), MediaWiki\Revision\RevisionStore\countRevisionsBetween(), WatchedItemStore\countUnreadNotifications(), PrefixSearch\defaultSearchBackend(), DifferenceEngine\deletedLink(), MediaWiki\Category\CategoryViewer\doCategoryQuery(), FixDefaultJsonContentPages\doDBUpdates(), PopulateChangeTagDef\doDBUpdates(), PopulateIpChanges\doDBUpdates(), PopulateRevisionLength\doLenUpdates(), GenderCache\doQuery(), LinkBatch\doQuery(), UserCache\doQuery(), SearchPostgres\doSearchTextInDB(), SearchPostgres\doSearchTitleInDB(), UserEditCountUpdate\doUpdate(), LinkHolderArray\doVariants(), RecountCategories\doWork(), MediaWiki\Title\Title\estimateRevisionCount(), SpecialLog\execute(), CategoryChangesAsRdf\execute(), CheckBadRedirects\execute(), CheckImages\execute(), CheckUsernames\execute(), CleanupPreferences\execute(), CleanupSpam\execute(), ClearInterwikiCache\execute(), CompareParserCache\execute(), DeleteDefaultMessages\execute(), DumpCategoriesAsRdf\execute(), DumpLinks\execute(), MWEval\execute(), FixDoubleRedirects\execute(), FixMergeHistoryCorruption\execute(), GenerateSitemap\execute(), InitEditCount\execute(), InitUserPreference\execute(), PruneUnusedLinkTargetRows\execute(), PurgeChangedFiles\execute(), PurgeChangedPages\execute(), RebuildAll\execute(), RebuildFileCache\execute(), RefreshFileHeaders\execute(), RemoveInvalidEmails\execute(), RemoveUnusedAccounts\execute(), RenameUsersMatchingPattern\execute(), ResetPageRandom\execute(), ShowSiteStats\execute(), MwSql\execute(), OrphanStats\execute(), ResolveStubs\execute(), StorageTypeStats\execute(), UpdateArticleCount\execute(), UppercaseTitlesForUnicodeTransition\execute(), WikiBirthday\execute(), DeleteEqualMessages\fetchMessageInfo(), TitleCleanup\fileExists(), GrepPages\findPages(), User\findUsersByGroup(), Language\formatExpiry(), ApiResult\formatExpiry(), LCStoreDB\get(), MediaWiki\Storage\EditResultCache\get(), MediaWiki\Page\PageProps\getAllProperties(), MediaWiki\Rest\Handler\PageHistoryCountHandler\getAnonCount(), RecentChange\getAttribute(), MediaWiki\Revision\RevisionStore\getAuthorsBetween(), ContentHandler\getAutoDeleteReason(), FileBackendDBRepoWrapper\getBackendPaths(), MediaWiki\Block\DatabaseBlock\getBlocksForIPList(), MediaWiki\Rest\Handler\PageHistoryCountHandler\getBotCount(), MediaWiki\Title\Title\getBrokenLinksFrom(), WikiPage\getCategories(), MediaWiki\Storage\RevertedTagUpdate\getChangeTags(), RCDatabaseLogEntry\getComment(), WikiPage\getContributors(), AllMessagesTablePager\getCustomisedStatuses(), ApiBase\getDB(), BacklinkCache\getDB(), MediaWiki\ResourceLoader\WikiModule\getDB(), ChangesListSpecialPage\getDB(), DBAccessObjectUtils\getDBOptions(), MediaWiki\Title\Title\getDeletedEditsCount(), ChangeTags\getDisplayTableName(), SpecialBotPasswords\getFormFields(), WikiPage\getHiddenCategories(), MediaWiki\Revision\RevisionStore\getKnownCurrentRevision(), MediaWiki\Revision\ArchivedRevisionLookup\getLastRevisionId(), Wikimedia\Rdbms\ConnectionManager\getLazyReadConnectionRef(), MediaWiki\Title\Title\getLinksFrom(), MediaWiki\Title\Title\getLinksTo(), MediaWiki\Category\Category\getMembers(), MediaWiki\Rest\Handler\PageHistoryCountHandler\getMinorCount(), MediaWiki\Storage\NameTableStore\getName(), MediaWiki\Title\Title\getParentCategories(), MediaWiki\Page\PageProps\getProperties(), MediaWiki\ExternalLinks\LinkFilter\getQueryConditions(), MediaWiki\Block\DatabaseBlock\getRangeCond(), Wikimedia\Rdbms\ConnectionManager\getReadConnection(), Wikimedia\Rdbms\ConnectionManager\getReadConnectionRef(), MediaWiki\Title\Title\getRedirectsHere(), WikiPage\getRedirectTarget(), MediaWiki\Revision\RevisionRenderer\getRenderedRevision(), ExternalStoreDB\getReplica(), ForeignDBViaLBRepo\getReplicaDB(), LocalRepo\getReplicaDB(), JobQueueDB\getReplicaDB(), MediaWiki\Rest\Handler\PageHistoryCountHandler\getRevertedCount(), MediaWiki\Revision\RevisionStore\getRevisionSizes(), OutputPage\getRlClient(), MediaWiki\Linker\Linker\getRollbackEditCount(), HistoryBlobCurStub\getText(), HistoryBlobStub\getText(), PasswordReset\getUsersByEmail(), MediaWiki\Title\Title\hasDeletedEdits(), CheckStorage\importRevision(), MediaWiki\Block\DatabaseBlock\initFromRow(), MediaWiki\Category\Category\initialize(), BackupDumper\initProgress(), WikiPage\isBatchedDelete(), MediaWiki\Title\Title\isBigDeletion(), WikiPage\isCountable(), MediaWiki\Block\DatabaseBlock\isExemptedFromAutoblocks(), ChangeTags\listExplicitlyDefinedTags(), PageArchive\listFiles(), PageArchive\listPagesByPrefix(), PageArchive\listPagesBySearch(), MediaWiki\Revision\ArchivedRevisionLookup\listRevisions(), ChangeTags\listSoftwareActivatedTags(), ChangeTags\listSoftwareDefinedTags(), ArchivedFile\load(), SiteStats\loadAndLazyInit(), MediaWiki\Block\BlockRestrictionStore\loadByBlockId(), User\loadFromCache(), RecentChange\loadFromRow(), ArchivedFile\loadFromRow(), WikiPage\loadPageData(), DifferenceEngine\loadRevisionData(), DBSiteStore\loadSites(), WatchedItemStore\loadWatchedItemsBatch(), MediaWiki\ExternalLinks\LinkFilter\makeLikeArray(), ChangeTags\makeTagSummarySubquery(), SearchMySQL\minSearchLength(), MediaWiki\Block\DatabaseBlock\newFromID(), MediaWiki\Title\Title\newFromIDs(), UserArray\newFromIDs(), UserArray\newFromNames(), MediaWiki\Block\DatabaseBlock\newLoad(), User\newSystemUser(), SiteStats\numberingroup(), HistoryAction\onView(), ImagePage\openShowImage(), SiteStats\pagesInNs(), MediaWiki\ResourceLoader\ResourceLoader\preloadModuleInfo(), PurgeChangedFiles\purgeFromLogType(), SearchMySQL\queryFeatures(), ImagePage\queryImageLinks(), MediaWiki\ResourceLoader\MessageBlobStore\recacheMessageBlob(), LinkHolderArray\replaceInternal(), RevisionListBase\reset(), ResolveStubs\resolveStub(), TextPassDumper\rotateDb(), CategoryMembershipChangeJob\run(), ClearUserWatchlistJob\run(), TableCleanup\runTable(), SearchMySQL\searchInternal(), SearchSqlite\searchInternal(), MediaWikiShell\setupLegacy(), MediaWikiShell\setupLogging(), Article\showMissingArticle(), Article\showPatrolFooter(), RevDelLogList\suggestTarget(), ChangeTags\tagUsageStatistics(), MediaWiki\Auth\LocalPasswordPrimaryAuthenticationProvider\testUserCanAuthenticate(), MediaWiki\Auth\TemporaryPasswordPrimaryAuthenticationProvider\testUserCanAuthenticate(), and MediaWiki\ResourceLoader\ResourceLoader\tryRespondFromFileCache().

◆ DBO_COMPRESS

const DBO_COMPRESS IDatabase::DBO_COMPRESS

Database related constants

Definition at line 19 of file defines.php.

Referenced by MWLBFactory\applyDefaultConfig().

◆ DBO_DDLMODE

const DBO_DDLMODE IDatabase::DBO_DDLMODE

Database related constants

Definition at line 16 of file defines.php.

Referenced by DatabaseUpdater\__construct(), and DatabaseUpdater\insertUpdateRow().

◆ DBO_DEBUG

const DBO_DEBUG IDatabase::DBO_DEBUG

Database related constants

Definition at line 9 of file defines.php.

Referenced by MWEval\execute(), MediaWikiShell\setupLegacy(), and MediaWikiShell\setupLogging().

◆ DBO_DEFAULT

const DBO_DEFAULT IDatabase::DBO_DEFAULT

Database related constants

Definition at line 13 of file defines.php.

◆ DBO_IGNORE

const DBO_IGNORE IDatabase::DBO_IGNORE

Database related constants

Definition at line 11 of file defines.php.

◆ DBO_NOBUFFER

const DBO_NOBUFFER IDatabase::DBO_NOBUFFER

Database related constants

Definition at line 10 of file defines.php.

◆ DBO_PERSISTENT

const DBO_PERSISTENT IDatabase::DBO_PERSISTENT

Database related constants

Definition at line 14 of file defines.php.

◆ DBO_SSL

const DBO_SSL IDatabase::DBO_SSL
Deprecated
since 1.39, use the "ssl" parameter

Definition at line 18 of file defines.php.

◆ DBO_SYSDBA

const DBO_SYSDBA IDatabase::DBO_SYSDBA

Database related constants

Definition at line 15 of file defines.php.

◆ DBO_TRX

const DBO_TRX IDatabase::DBO_TRX