MediaWiki  master
MediaWiki constants

Variables

const ALF_NO_BLOCK_LOCK 8
 
const ALF_NO_LINK_LOCK 4
 
const ALF_PRELOAD_EXISTENCE 2
 
const ALF_PRELOAD_LINKS 1
 
const APCOND_AGE 2
 
const APCOND_AGE_FROM_EDIT 7
 
const APCOND_BLOCKED 8
 
const APCOND_EDITCOUNT 1
 
const APCOND_EMAILCONFIRMED 3
 
const APCOND_INGROUPS 4
 
const APCOND_IPINRANGE 6
 
const APCOND_ISBOT 9
 
const APCOND_ISIP 5
 
const AV_NO_VIRUS 0
 
const AV_SCAN_ABORTED -1
 
const AV_SCAN_FAILED false
 
const AV_VIRUS_FOUND 1
 
const CACHE_ACCEL 3
 
const CACHE_ANYTHING -1
 
const CACHE_DB 1
 
const CACHE_MEMCACHED 2
 
const CACHE_NONE 0
 
const CONTENT_FORMAT_CSS 'text/css'
 
const CONTENT_FORMAT_HTML 'text/html'
 
const CONTENT_FORMAT_JAVASCRIPT 'text/javascript'
 
const CONTENT_FORMAT_JSON 'application/json'
 
const CONTENT_FORMAT_SERIALIZED 'application/vnd.php.serialized'
 
const CONTENT_FORMAT_TEXT 'text/plain'
 
const CONTENT_FORMAT_WIKITEXT 'text/x-wiki'
 
const CONTENT_FORMAT_XML 'application/xml'
 
const CONTENT_MODEL_CSS 'css'
 
const CONTENT_MODEL_JAVASCRIPT 'javascript'
 
const CONTENT_MODEL_JSON 'json'
 
const CONTENT_MODEL_TEXT 'text'
 
const CONTENT_MODEL_WIKITEXT 'wikitext'
 
const EDIT_AUTOSUMMARY 64
 
const EDIT_DEFER_UPDATES 32
 
const EDIT_FORCE_BOT 16
 
const EDIT_INTERNAL 128
 
const EDIT_MINOR 4
 
const EDIT_NEW 1
 
const EDIT_SUPPRESS_RC 8
 
const EDIT_UPDATE 2
 
const LIST_AND IDatabase::LIST_AND
 
const LIST_COMMA IDatabase::LIST_COMMA
 
const LIST_NAMES IDatabase::LIST_NAMES
 
const LIST_OR IDatabase::LIST_OR
 
const LIST_SET IDatabase::LIST_SET
 
const MIGRATION_NEW 0x30000000 | SCHEMA_COMPAT_NEW
 
const MIGRATION_OLD 0x00000000 | SCHEMA_COMPAT_OLD
 
const MIGRATION_WRITE_BOTH 0x10000000 | SCHEMA_COMPAT_READ_BOTH | SCHEMA_COMPAT_WRITE_BOTH
 
const MIGRATION_WRITE_NEW 0x20000000 | SCHEMA_COMPAT_READ_BOTH | SCHEMA_COMPAT_WRITE_NEW
 
const MW_DATE_DEFAULT 'default'
 
const MW_DATE_DMY 'dmy'
 
const MW_DATE_ISO 'ISO 8601'
 
const MW_DATE_MDY 'mdy'
 
const MW_DATE_YMD 'ymd'
 
const MW_EDITFILTERMERGED_SUPPORTS_API 1
 
const MW_SUPPORTS_CONTENTHANDLER 1
 
const MW_SUPPORTS_LOCALISATIONCACHE 1
 
const MW_SUPPORTS_PARSERFIRSTCALLINIT 1
 
const NS_CATEGORY 14
 
const NS_CATEGORY_TALK 15
 
const NS_FILE 6
 
const NS_FILE_TALK 7
 
const NS_HELP 12
 
const NS_HELP_TALK 13
 
const NS_IMAGE NS_FILE
 NS_IMAGE and NS_IMAGE_TALK are the pre-v1.14 names for NS_FILE and NS_FILE_TALK respectively, and are kept for compatibility. More...
 
const NS_IMAGE_TALK NS_FILE_TALK
 
const NS_MAIN 0
 
const NS_MEDIA -2
 
const NS_MEDIAWIKI 8
 
const NS_MEDIAWIKI_TALK 9
 
const NS_PROJECT 4
 
const NS_PROJECT_TALK 5
 
const NS_SPECIAL -1
 
const NS_TALK 1
 
const NS_TEMPLATE 10
 
const NS_TEMPLATE_TALK 11
 
const NS_USER 2
 
const NS_USER_TALK 3
 
const OT_HTML 1
 
const OT_MSG 3
 
const OT_PLAIN 4
 
const OT_PREPROCESS 3
 
const OT_WIKI 2
 
const PROTO_CANONICAL 1
 
const PROTO_CURRENT null
 
const PROTO_HTTP 'http://'
 
const PROTO_HTTPS 'https://'
 
const PROTO_INTERNAL 2
 
const PROTO_RELATIVE '//'
 
const RC_CATEGORIZE 6
 
const RC_EDIT 0
 
const RC_EXTERNAL 5
 
const RC_LOG 3
 
const RC_NEW 1
 
const SCHEMA_COMPAT_NEW SCHEMA_COMPAT_WRITE_NEW | SCHEMA_COMPAT_READ_NEW
 
const SCHEMA_COMPAT_OLD SCHEMA_COMPAT_WRITE_OLD | SCHEMA_COMPAT_READ_OLD
 
const SCHEMA_COMPAT_READ_BOTH SCHEMA_COMPAT_READ_OLD | SCHEMA_COMPAT_READ_NEW
 
const SCHEMA_COMPAT_READ_NEW 0x20
 
const SCHEMA_COMPAT_READ_OLD 0x02
 
const SCHEMA_COMPAT_WRITE_BOTH SCHEMA_COMPAT_WRITE_OLD | SCHEMA_COMPAT_WRITE_NEW
 
const SCHEMA_COMPAT_WRITE_NEW 0x10
 
const SCHEMA_COMPAT_WRITE_OLD 0x01
 
const SFH_NO_HASH 1
 
const SFH_OBJECT_ARGS 2
 
const SHELL_MAX_ARG_STRLEN '100000'
 
const XML_DUMP_SCHEMA_VERSION_10 '0.10'
 
const XML_DUMP_SCHEMA_VERSION_11 '0.11'
 

Detailed Description

Variable Documentation

◆ ALF_NO_BLOCK_LOCK

const ALF_NO_BLOCK_LOCK 8

Definition at line 121 of file Defines.php.

◆ ALF_NO_LINK_LOCK

const ALF_NO_LINK_LOCK 4

Definition at line 120 of file Defines.php.

◆ ALF_PRELOAD_EXISTENCE

const ALF_PRELOAD_EXISTENCE 2

Definition at line 119 of file Defines.php.

◆ ALF_PRELOAD_LINKS

const ALF_PRELOAD_LINKS 1

Anti-lock flags Was used by $wgAntiLockFlags, which was removed with 1.25 Constants kept to not have warnings when used in LocalSettings

Definition at line 118 of file Defines.php.

◆ APCOND_AGE

const APCOND_AGE 2

Definition at line 202 of file Defines.php.

Referenced by Autopromote\checkCondition().

◆ APCOND_AGE_FROM_EDIT

const APCOND_AGE_FROM_EDIT 7

Definition at line 207 of file Defines.php.

Referenced by Autopromote\checkCondition().

◆ APCOND_BLOCKED

const APCOND_BLOCKED 8

Definition at line 208 of file Defines.php.

Referenced by Autopromote\checkCondition().

◆ APCOND_EDITCOUNT

const APCOND_EDITCOUNT 1

Autopromote conditions (must be here and not in Autopromote.php, so that they're loaded for DefaultSettings.php before AutoLoader.php)

Definition at line 201 of file Defines.php.

Referenced by Autopromote\checkCondition(), and AutopromoteTest\testEditCountLookupIsSkippedIfRequirementIsZero().

◆ APCOND_EMAILCONFIRMED

const APCOND_EMAILCONFIRMED 3

Definition at line 203 of file Defines.php.

Referenced by Autopromote\checkCondition().

◆ APCOND_INGROUPS

const APCOND_INGROUPS 4

Definition at line 204 of file Defines.php.

Referenced by Autopromote\checkCondition().

◆ APCOND_IPINRANGE

const APCOND_IPINRANGE 6

Definition at line 206 of file Defines.php.

Referenced by Autopromote\checkCondition().

◆ APCOND_ISBOT

const APCOND_ISBOT 9

Definition at line 209 of file Defines.php.

Referenced by Autopromote\checkCondition().

◆ APCOND_ISIP

const APCOND_ISIP 5

Definition at line 205 of file Defines.php.

Referenced by Autopromote\checkCondition().

◆ AV_NO_VIRUS

const AV_NO_VIRUS 0

Antivirus result codes, for use in $wgAntivirusSetup.

Definition at line 107 of file Defines.php.

Referenced by UploadBase\detectVirus().

◆ AV_SCAN_ABORTED

const AV_SCAN_ABORTED -1

Definition at line 109 of file Defines.php.

Referenced by UploadBase\detectVirus().

◆ AV_SCAN_FAILED

const AV_SCAN_FAILED false

Definition at line 110 of file Defines.php.

Referenced by UploadBase\detectVirus().

◆ AV_VIRUS_FOUND

const AV_VIRUS_FOUND 1

Definition at line 108 of file Defines.php.

◆ CACHE_ACCEL

◆ CACHE_ANYTHING

◆ CACHE_DB

◆ CACHE_MEMCACHED

const CACHE_MEMCACHED 2

◆ CACHE_NONE

◆ CONTENT_FORMAT_CSS

◆ CONTENT_FORMAT_HTML

const CONTENT_FORMAT_HTML 'text/html'

Definition at line 254 of file Defines.php.

◆ CONTENT_FORMAT_JAVASCRIPT

◆ CONTENT_FORMAT_JSON

const CONTENT_FORMAT_JSON 'application/json'

Definition at line 258 of file Defines.php.

Referenced by JsonContentHandler\__construct().

◆ CONTENT_FORMAT_SERIALIZED

const CONTENT_FORMAT_SERIALIZED 'application/vnd.php.serialized'

Definition at line 256 of file Defines.php.

◆ CONTENT_FORMAT_TEXT

◆ CONTENT_FORMAT_WIKITEXT

◆ CONTENT_FORMAT_XML

const CONTENT_FORMAT_XML 'application/xml'

Definition at line 260 of file Defines.php.

◆ CONTENT_MODEL_CSS

◆ CONTENT_MODEL_JAVASCRIPT

const CONTENT_MODEL_JAVASCRIPT 'javascript'

Definition at line 232 of file Defines.php.

◆ CONTENT_MODEL_JSON

◆ CONTENT_MODEL_TEXT

◆ CONTENT_MODEL_WIKITEXT

const CONTENT_MODEL_WIKITEXT 'wikitext'

Content model ids, used by Content and ContentHandler. These IDs will be exposed in the API and XML dumps.

Extensions that define their own content model IDs should take care to avoid conflicts. Using the extension name as a prefix is recommended, for example 'myextension-somecontent'.

Definition at line 231 of file Defines.php.

Referenced by DifferenceEngineSlotDiffRenderer\__construct(), MessageContent\__construct(), WikitextContent\__construct(), Revision\MainSlotRoleHandler\__construct(), RevisionDbTestBase\createPage(), PagePropsTest\createPage(), TitleMethodsTest\dataGetContentModel(), ContentHandlerTest\dataGetDefaultModelFor(), WikitextContentTest\dataGetDeletionUpdates(), WikitextContentTest\dataGetParserOutput(), WikitextContentTest\dataGetSecondaryDataUpdates(), ContentHandlerTest\dataMakeContent(), ApiParse\execute(), ApiQueryRevisionsBase\extractDeprecatedContent(), ApiQueryRevisionsBase\getAllowedParams(), ApiParse\getAllowedParams(), Revision\MainSlotRoleHandler\getDefaultModel(), MediaWikiIntegrationTestCase\getDefaultWikitextNS(), ApiComparePages\getDiffRevision(), MediaWiki\Tests\Revision\RevisionRendererTest\getMockTitle(), MediaWiki\Tests\Revision\RenderedRevisionTest\getMockTitle(), TextPassDumper\getText(), TextContent\getWikitextForTransclusion(), FixDefaultJsonContentPages\handleRow(), MediaWikiIntegrationTestCase\isWikitextNS(), Title\isWikitextPage(), RevisionDbTestBase\makeRevisionWithProps(), MediaWiki\Tests\Revision\SlotRecordTest\makeRow(), MediaWiki\Tests\Revision\RevisionRendererTest\newRevisionRenderer(), LanguageConverter\parseCachedTable(), PreprocessDump\processRevision(), CompareParsers\processRevision(), RevisionDbTestBase\provideGetContentModel(), ContentHandlerTest\provideGetModelForID(), NamespaceInfoTest\provideGetNamespaceContentModel(), WikiPageDbTestBase\provideGetParserOutput(), WikiPageDbTestBase\provideGetRedirectTarget(), RevisionDbTestBase\provideGetSha1(), RevisionDbTestBase\provideGetSize(), RevisionMcrReadNewDbTest\provideGetTextId(), RevisionMcrDbTest\provideGetTextId(), RevisionDbTestBase\provideGetTextId(), WikiPageDbTestBase\provideIsCountable(), ContentHandlerTest\setUp(), TextContentTest\setUp(), WikitextContentHandlerTest\setUp(), MediaWiki\Tests\Storage\PageUpdaterTest\setUp(), PagePropsTest\setUp(), PageArchiveTestBase\setUp(), MediaWiki\Tests\Revision\SlotRecordTest\testCompleteConstruction(), MediaWiki\Tests\Revision\SlotRecordTest\testConstructionDeferred(), WikiPageDbTestBase\testDoDeleteArticle(), WikiPageDbTestBase\testDoDeleteArticleReal_suppress(), WikiPageDbTestBase\testDoDeleteArticleReal_user0(), WikiPageDbTestBase\testDoDeleteArticleReal_userSysop(), WikiPageDbTestBase\testDoDeleteUpdates(), WikiPageDbTestBase\testDoEditContent(), WikiPageDbTestBase\testDoEditUpdates(), MediaWiki\Tests\Storage\DerivedPageDataUpdaterTest\testDoParserCacheUpdate(), MediaWiki\Tests\Storage\DerivedPageDataUpdaterTest\testDoUpdates(), WikiPageDbTestBase\testExists(), MediaWiki\Tests\Revision\MainSlotRoleHandlerTest\testFetDefaultModel(), MediaWiki\Tests\Maintenance\BackupDumperPageTest\testFullTextPlain(), ContentHandlerTest\testGetAutosummary(), ContentHandlerTest\testGetChangeTag(), WikiPageDbTestBase\testGetContent(), RevisionDbTestBase\testGetContentUncloned(), ContentHandlerTest\testGetFieldsForSearchIndex(), NamespaceInfoTest\testGetNamespaceContentModel(), PageArchiveTestBase\testGetPreviousRevision(), WikiPageDbTestBase\testGetRevision(), ContentHandlerTest\testGetSlotDiffRenderer_default(), WikiPageDbTestBase\testHasViewableContent(), MediaWiki\Tests\Revision\MainSlotRoleHandlerTest\testIsAllowedModel(), RevisionDbTestBase\testNewFromArchiveRow(), RevisionDbTestBase\testNewFromArchiveRowOverrides(), MediaWiki\Tests\Revision\SlotRecordTest\testNewUnsaved(), MediaWiki\Tests\Storage\DerivedPageDataUpdaterTest\testPrepareContent(), WikiPageDbTestBase\testPrepareContentForEdit(), RefreshLinksJobTest\testRunForMultiPage(), RefreshLinksJobTest\testRunForSinglePage(), EditPageTest\testShouldPreventChangingContentModelWhenUserCannotChangeModelForTitle(), EditPageTest\testShouldPreventChangingContentModelWhenUserCannotEditTargetTitle(), ContentHandlerTest\testSupportsCategories(), and RevisionDbTestBase\testUserWasLastToEdit().

◆ EDIT_AUTOSUMMARY

◆ EDIT_DEFER_UPDATES

const EDIT_DEFER_UPDATES 32

Definition at line 153 of file Defines.php.

◆ EDIT_FORCE_BOT

◆ EDIT_INTERNAL

◆ EDIT_MINOR

◆ EDIT_NEW

◆ EDIT_SUPPRESS_RC

◆ EDIT_UPDATE

◆ LIST_AND

const LIST_AND IDatabase::LIST_AND

Definition at line 39 of file Defines.php.

Referenced by SpecialRecentChanges\__construct(), FindOrphanedFiles\checkFiles(), Wikimedia\Rdbms\Database\conditional(), PrefixSearch\defaultSearchBackend(), Wikimedia\Rdbms\Database\delete(), Wikimedia\Rdbms\DatabaseMysqlBase\deleteJoin(), Wikimedia\Rdbms\Database\deleteJoin(), PopulateRevisionLength\doLenUpdates(), PurgeModuleDeps\execute(), DeleteSelfExternals\execute(), CleanupRemovedModules\execute(), RunBatchedQuery\execute(), ChangesListSpecialPage\filterOnUserExperienceLevel(), LocalRepo\findFiles(), WatchedItemQueryService\getFromUntilTargetConds(), Wikimedia\Rdbms\DatabaseMysqlBase\getHeartbeatData(), WatchedItemQueryServiceUnitTest\getMockDb(), MediaWiki\Block\DatabaseBlock\getRangeCond(), WatchedItemQueryService\getStartFromConds(), WatchedItemStore\getVisitingWatchersCondition(), ActorMigration\getWhere(), MigrateComments\loadCommentIDs(), Wikimedia\Rdbms\Database\makeGroupByWithHaving(), Wikimedia\Rdbms\Database\makeList(), Wikimedia\Rdbms\Database\makeWhereFrom2d(), ChangesListSpecialPageTest\normalizeCondition(), DatabaseSQLTest\provideMakeList(), UserGroupMembership\purgeExpired(), SpecialWatchlist\registerFilters(), Wikimedia\Rdbms\Database\replace(), ApiQueryAllDeletedRevisions\run(), ApiQueryAllImages\run(), Wikimedia\Rdbms\Database\selectSQLText(), Wikimedia\Rdbms\Database\tableNamesWithIndexClauseOrJOIN(), WatchedItemStoreUnitTest\testCountVisitingWatchersMultiple(), WatchedItemStoreUnitTest\testCountVisitingWatchersMultiple_withMissingTargets(), WatchedItemQueryServiceUnitTest\testGetWatchedItemsForUser_fromUntilStartFromOptions(), Wikimedia\Rdbms\DatabaseMssql\update(), DatabaseOracle\update(), Wikimedia\Rdbms\Database\update(), and Wikimedia\Rdbms\Database\upsert().

◆ LIST_COMMA

const LIST_COMMA IDatabase::LIST_COMMA

Obsolete IDatabase::makeList() constants These are also available as Database class constants

Definition at line 38 of file Defines.php.

Referenced by DatabaseSQLTest\provideMakeList().

◆ LIST_NAMES

const LIST_NAMES IDatabase::LIST_NAMES

◆ LIST_OR

const LIST_OR IDatabase::LIST_OR

Definition at line 42 of file Defines.php.

Referenced by SpecialRecentChanges\__construct(), ChangesListSpecialPage\__construct(), FindOrphanedFiles\checkFiles(), CleanupInvalidDbKeys\cleanupTable(), PrefixSearch\defaultSearchBackend(), PopulateRevisionLength\doLenUpdates(), SpecialWatchlist\doMainQuery(), MysqlUpdater\doSchemaRestructuring(), ApiQueryExternalLinks\execute(), PurgeModuleDeps\execute(), ApiQueryAllUsers\execute(), CleanupRemovedModules\execute(), ChangesListSpecialPage\filterOnUserExperienceLevel(), LocalRepo\findFiles(), SpecialBlockList\getBlockListPager(), MediaWiki\Block\DatabaseBlock\getBlocksForIPList(), BacklinkCache\getConditions(), WatchedItemQueryService\getExtraDeletedPageLogEntryRelatedCond(), WatchedItemQueryService\getFromUntilTargetConds(), UppercaseTitlesForUnicodeTransition\getLikeBatches(), WatchedItemQueryService\getStartFromConds(), WANCacheReapUpdate\getTitleChangeEvents(), WatchedItemStore\getVisitingWatchersCondition(), WatchedItemQueryService\getWatchedItemsWithRCInfoQueryConds(), ActorMigration\getWhere(), PageArchive\listPagesBySearch(), MigrateComments\loadCommentIDs(), Wikimedia\Rdbms\Database\makeList(), Wikimedia\Rdbms\Database\makeWhereFrom2d(), MediaWiki\Block\DatabaseBlock\newLoad(), DatabaseSQLTest\provideMakeList(), UserGroupMembership\purgeExpired(), SpecialWatchlist\registerFilters(), Wikimedia\Rdbms\Database\replace(), ApiQueryAllDeletedRevisions\run(), ApiQueryExtLinksUsage\run(), ApiQueryAllImages\run(), ApiQueryBacklinksprop\run(), ApiQueryRecentChanges\run(), ApiQueryBacklinks\runSecondQuery(), and Wikimedia\Rdbms\Database\upsert().

◆ LIST_SET

◆ MIGRATION_NEW

◆ MIGRATION_OLD

const MIGRATION_OLD 0x00000000 | SCHEMA_COMPAT_OLD

Schema change migration flags.

Used as values of a feature flag for an orderly transition from an old schema to a new schema. The numeric values of these constants are compatible with the SCHEMA_COMPAT_XXX bitfield semantics. High bits are used to ensure that the numeric ordering follows the order in which the migration stages should be used.

  • MIGRATION_OLD: Only read and write the old schema. The new schema need not even exist. This is used from when the patch is merged until the schema change is actually applied to the database.
  • MIGRATION_WRITE_BOTH: Write both the old and new schema. Read the new schema preferentially, falling back to the old. This is used while the change is being tested, allowing easy roll-back to the old schema.
  • MIGRATION_WRITE_NEW: Write only the new schema. Read the new schema preferentially, falling back to the old. This is used while running the maintenance script to migrate existing entries in the old schema to the new schema.
  • MIGRATION_NEW: Only read and write the new schema. The old schema (and the feature flag) may now be removed.

Definition at line 311 of file Defines.php.

Referenced by CommentStore\createComment(), CommentStore\getCommentInternal(), CommentStore\getFields(), CommentStore\getJoin(), RevisionTest\getRevisionStore(), CommentStoreTest\makeStore(), CommentStoreTest\makeStoreWithKey(), CommentStoreTest\provideGetFields(), CommentStoreTest\provideGetJoin(), CommentStoreTest\provideStages(), MediaWiki\Tests\Revision\RevisionStoreFactoryTest\provideWikiIds(), CommentStoreTest\testGetCommentErrors(), CommentStoreTest\testInsertRoundTrip(), CommentStoreTest\testInsertRoundTrip_withKeyConstruction(), and MediaWiki\Tests\Revision\RevisionStoreFactoryTest\testValidConstruction_doesntCauseErrors().

◆ MIGRATION_WRITE_BOTH

◆ MIGRATION_WRITE_NEW

◆ MW_DATE_DEFAULT

const MW_DATE_DEFAULT 'default'

Date format selectors; used in user preference storage and by Language::date() and co.

Definition at line 128 of file Defines.php.

◆ MW_DATE_DMY

const MW_DATE_DMY 'dmy'

Definition at line 130 of file Defines.php.

◆ MW_DATE_ISO

const MW_DATE_ISO 'ISO 8601'

Definition at line 132 of file Defines.php.

◆ MW_DATE_MDY

const MW_DATE_MDY 'mdy'

Definition at line 129 of file Defines.php.

◆ MW_DATE_YMD

const MW_DATE_YMD 'ymd'

Definition at line 131 of file Defines.php.

◆ MW_EDITFILTERMERGED_SUPPORTS_API

const MW_EDITFILTERMERGED_SUPPORTS_API 1

Definition at line 164 of file Defines.php.

◆ MW_SUPPORTS_CONTENTHANDLER

const MW_SUPPORTS_CONTENTHANDLER 1

Definition at line 163 of file Defines.php.

◆ MW_SUPPORTS_LOCALISATIONCACHE

const MW_SUPPORTS_LOCALISATIONCACHE 1

Definition at line 162 of file Defines.php.

◆ MW_SUPPORTS_PARSERFIRSTCALLINIT

const MW_SUPPORTS_PARSERFIRSTCALLINIT 1

Hook support constants

Definition at line 161 of file Defines.php.

◆ NS_CATEGORY

const NS_CATEGORY 14

Definition at line 74 of file Defines.php.

Referenced by UncategorizedCategoriesPage\__construct(), CategoryPager\__construct(), DumpNamespaceFilter\__construct(), OutputPage\addCategoryLinks(), OutputPage\addCategoryLinksToLBAndGetResult(), SearchEngineTest\addDBDataOnce(), ParserOutput\addTrackingCategory(), LinksUpdateTest\assertRecentChangeByCategorization(), SkinTemplate\buildNavUrls(), MediaWiki\Permissions\PermissionManager\checkQuickPermissions(), BenchmarkTitleValue\constructTitle(), BenchmarkTitleValue\constructTitleSafe(), BenchmarkTitleValue\constructTitleValue(), CategoryViewer\doCategoryQuery(), Parser\doDoubleUnderscore(), LinksDeletionUpdate\doIncrementalUpdate(), SpecialRecentChangesLinked\doMainQuery(), LinkHolderArray\doVariants(), ApiQueryCategoryInfo\execute(), RefreshLinks\execute(), WikiPage\factory(), ApiParse\formatCategoryLinks(), MostlinkedCategoriesPage\formatResult(), UnusedCategoriesPage\formatResult(), UncategorizedCategoriesPage\formatResult(), CategoryPager\formatRow(), TitleValueTest\fragmentTitleProvider(), MediaWiki\Widget\Search\FullSearchResultWidget\generateSizeHtml(), CategoryPager\getBody(), Skin\getCategories(), WikiPage\getCategories(), LinksUpdate\getCategoryInsertions(), DumpCategoriesAsRdf\getCategoryIterator(), Skin\getCategoryLinks(), CategoryChangesAsRdf\getChangedCatsIterator(), MediaWikiIntegrationTestCase\getDefaultWikitextNS(), CategoryChangesAsRdf\getDeletedCatsIterator(), UncategorizedCategoriesPage\getExceptionList(), WikiFilePage\getForeignCategories(), SpecialRandomInCategory\getFormFields(), WikiPage\getHiddenCategories(), CategoryChangesAsRdf\getMovedCatsIterator(), CategoryChangesAsRdf\getNewCatsIterator(), WantedFilesPage\getPageHeader(), Title\getParentCategories(), UnusedCategoriesPage\getQueryInfo(), WantedCategoriesPage\getQueryInfo(), MostlinkedCategoriesPage\getQueryInfo(), CategoryChangesAsRdf\getRestoredCatsIterator(), CategoryPager\getStartForm(), Category\getTitle(), TrackingCategories\getTrackingCategories(), CategoryChangesAsRdf\handleCategorization(), CategoryChangesAsRdf\handleMoves(), LinksUpdate\invalidateCategories(), LinkCache\isCacheable(), CategoriesRdf\labelToUrl(), SearchHighlighter\linkReplace(), WikitextContentHandler\makeRedirectContent(), MovePage\moveToInternal(), Category\newFromName(), Article\newFromTitle(), CategoryMembershipChangeJob\notifyUpdatesForRevision(), WikiPage\onArticleCreate(), SpecialRandomInCategory\onSubmit(), InfoAction\pageInfo(), CoreParserFunctions\pagesincategory(), CategoryChangesAsRdfTest\provideCategoryData(), SearchEngineTest\provideCompletionSearchMustRespectCapitalLinkOverrides(), TitleTest\provideCreateFragmentTitle(), OutputPageTest\provideGetCategories(), NamespaceInfoTest\provideGetCategoryLinkType(), NamespaceInfoTest\provideGetContentNamespaces(), NamespaceInfoTest\provideIsContent(), MediaWikiTitleCodecTest\provideParseTitle(), ApiQueryTest\provideTestTitlePartToKey(), Category\refreshCounts(), Parser\replaceInternalLinks2(), ApiQueryCategories\run(), ApiQueryAllCategories\run(), ApiQueryCategoryMembers\run(), CategoryFinder\scanNextLayer(), CategoryFinder\seed(), GenerateSitemap\setNamespacePriorities(), SearchEngineTest\setUp(), MovePageForm\showForm(), ApiQueryRecentChangesIntegrationTest\testCategorizeTypeParameter(), ApiQueryWatchlistIntegrationTest\testCategorizeTypeParameter(), CategoryMembershipChangeTest\testChangeAddedNoRev(), CategoryMembershipChangeTest\testChangeAddedWithRev(), CategoryMembershipChangeTest\testChangeRemovedNoRev(), CategoryMembershipChangeTest\testChangeRemovedWithRev(), WikiCategoryPageTest\testExpectUnusedCategory_PropertyIsSet(), WikiCategoryPageTest\testExpectUnusedCategory_PropertyNotSet(), WikiCategoryPageTest\testHiddenCategory_PropertyIsSet(), WikiCategoryPageTest\testHiddenCategory_PropertyNotSet(), RecentChangeTest\testHiddenCategoryChange(), CategoryTest\testNewFromRow_notFoundWithTitle(), ApiQueryAllPagesTest\testPrefixNormalizationSearchBug(), ExtraParserTest\testTrackingCategory(), Title\touchLinks(), CategoryPage\view(), CategoriesRdf\writeCategoryData(), and CategoriesRdf\writeCategoryLinkData().

◆ NS_CATEGORY_TALK

◆ NS_FILE

const NS_FILE 6

Definition at line 66 of file Defines.php.

Referenced by FakeDimensionFile\__construct(), ApiQueryAllLinks\__construct(), DumpNamespaceFilter\__construct(), FileRepo\__construct(), ParserTestRunner\addArticle(), ParserOutput\addLink(), UploadForm\addUploadJS(), CleanupImages\buildSafeTitle(), UploadBase\checkBadFileName(), RevertAction\checkCanExecute(), FindOrphanedFiles\checkFiles(), MediaWiki\Permissions\PermissionManager\checkQuickPermissions(), LocalRepo\checkRedirect(), UploadFromUrlTest\deleteFile(), ApiUploadTestCase\deleteFileByFileName(), ApiUploadTestCase\deleteFileByTitle(), SpecialRedirect\dispatchFile(), CategoryViewer\doCategoryQuery(), WikiPage\doDeleteUpdates(), SpecialRecentChangesLinked\doMainQuery(), MovePageForm\doSubmit(), ApiMove\execute(), FindMissingFiles\execute(), ApiDelete\execute(), ApiQueryFilearchive\execute(), ApiQueryImageInfo\execute(), DeleteBatch\execute(), FileDuplicateSearchPage\execute(), UppercaseTitlesForUnicodeTransition\execute(), ImportImages\execute(), SpecialUndelete\execute(), WikiPage\factory(), ForeignAPIRepo\findBySha1(), FileRepo\findFile(), LocalRepo\findFiles(), WikiFilePage\followRedirect(), Linker\formatLinksInComment(), NewFilesPager\formatRow(), ImageListPager\formatValue(), MediaWiki\Widget\Search\FullSearchResultWidget\generateFileHtml(), BacklinkCache\getCascadeProtectedLinks(), Title\getCascadeProtectionSources(), ApiUpload\getChunkResult(), FileContentHandler\getDataForSearchIndex(), WikitextContentHandler\getDataForSearchIndex(), MediaWikiIntegrationTestCase\getDefaultWikitextNS(), ForeignDBFile\getDescriptionShortUrl(), ForeignDBFile\getDescriptionText(), WANCacheReapUpdate\getEventAffectedKeys(), SpecialWhatLinksHere\getFilterPanel(), ImagePageTest\getImagePage(), ImagePage404Test\getImagePage(), FileRepo\getNameFromTitle(), SearchNearMatcher\getNearMatchInternal(), SearchUpdate\getNormalizedTitle(), ApiImageRotate\getPageSet(), ApiQueryInfo\getProtectionInfo(), MostimagesPage\getQueryInfo(), UnusedimagesPage\getQueryInfo(), UncategorizedImagesPage\getQueryInfo(), MIMEsearchPage\getQueryInfo(), ListDuplicatedFilesPage\getQueryInfo(), NewFilesPager\getQueryInfo(), WantedFilesPage\getQueryInfo(), File\getRedirectedTitle(), WikiFilePage\getRedirectTarget(), WikiPage\getRedirectTarget(), Title\getRestrictionTypes(), SpecialSearch\getSearchProfiles(), UploadBase\getTitle(), SpecialUpload\getUploadForm(), SpecialUpload\getWatchCheck(), SearchHighlighter\highlightText(), ImagePage\imageLinks(), SearchResult\initFromTitle(), EditPage\internalAttemptSave(), LinksUpdate\invalidateImageDescriptions(), Title\isAlwaysKnown(), LinkCache\isCacheable(), Title\isDeleted(), Title\isDeletedQuick(), NamespaceInfo\isMovable(), MovePage\isValidFileMove(), MovePage\isValidMove(), MovePage\isValidMoveTarget(), Title\isValidMoveTarget(), SearchHighlighter\linkReplace(), PageArchive\listFiles(), ArchivedFile\load(), ArchivedFile\loadFromRow(), Linker\makeThumbLink2(), MovePage\moveUnsafe(), OldLocalFile\newFromRow(), LocalFile\newFromRow(), ArchivedFile\newFromRow(), Article\newFromTitle(), File\normalizeTitle(), WikiPage\onArticleDelete(), ImageQueryPage\outputResults(), CleanupImages\pageExists(), InfoAction\pageInfo(), MediaWiki\parseTitle(), ApiUpload\performUpload(), CleanupImages\pokeFile(), FileDuplicateSearchPage\prefixSearchSubpages(), TitleCleanup\processRow(), CleanupImages\processRow(), NamespaceInfoTest\provideGetCategoryLinkType(), LanguageTest\provideGetNamespaceAliases(), SpecialShortpagesTest\provideGetQueryInfoRespectsContentNs(), NamespaceInfoTest\provideIsCapitalized(), NamespaceInfoTest\provideIsMovable(), ParserOutputTest\provideMergeTrackingMetaDataFrom(), UploadLogFormatterTest\provideOverwriteLogDatabaseRows(), MediaWikiTitleCodecTest\provideParseTitle(), UploadLogFormatterTest\provideRevertLogDatabaseRows(), SampleTest\provideTitles(), UploadLogFormatterTest\provideUploadLogDatabaseRows(), PurgeChangedFiles\purgeFromLogType(), LinksUpdate\queueRecursiveJobs(), LocalFile\recordUpload2(), Category\refreshCounts(), Parser\renderImageGallery(), Parser\replaceInternalLinks2(), ApiQueryImages\run(), ApiQueryDuplicateFiles\run(), ApiQueryAllImages\run(), ApiQueryBacklinks\run(), ApiQueryBacklinks\runSecondQuery(), PrefixSearch\searchBackend(), GenerateSitemap\setNamespacePriorities(), UploadFromUrlTestSuite\setUp(), ParserTestRunner\setupUploads(), SpecialWhatLinksHere\showIndirectLinks(), EditPage\showIntro(), Article\showPatrolFooter(), SpecialSearch\showResults(), SpecialUpload\showUploadWarning(), SpecialUpload\showViewDeletedLinks(), MediaWiki\Widget\Search\SearchFormWidget\startsWithImage(), WikitextContentHandlerTest\testDataIndexFieldsFile(), WikitextContentHandlerTest\testGetDeletionUpdates(), WikitextContentHandlerTest\testGetSecondaryDataUpdates(), MediaWiki\Tests\Block\BlockRestrictionStoreTest\testIgnoreNotSupportedTypes(), TitlePermissionTest\testQuickPermissions(), MediaWiki\Tests\Permissions\PermissionManagerTest\testQuickPermissions(), ForeignDBFileTest\testShouldConstructCorrectInstanceFromTitle(), TraditionalImageGallery\toHTML(), PageArchive\undelete(), SpecialUndelete\undelete(), PageArchive\undeleteRevisions(), WikiPage\updateRedirectOn(), CoreParserFunctions\urlFunction(), ApiFileRevert\validateParameters(), ImagePage\view(), wfStreamThumb(), SkinTemplate\wrapHTML(), and XmlDumpWriter\writeUploads().

◆ NS_FILE_TALK

◆ NS_HELP

◆ NS_HELP_TALK

const NS_HELP_TALK 13

◆ NS_IMAGE

const NS_IMAGE NS_FILE

NS_IMAGE and NS_IMAGE_TALK are the pre-v1.14 names for NS_FILE and NS_FILE_TALK respectively, and are kept for compatibility.

When writing code that should be compatible with older MediaWiki versions, either stick to the old names or define the new constants yourself, if they're not defined already.

Deprecated:
since 1.14

Definition at line 87 of file Defines.php.

◆ NS_IMAGE_TALK

const NS_IMAGE_TALK NS_FILE_TALK
Deprecated:
since 1.14

Definition at line 91 of file Defines.php.

◆ NS_MAIN

const NS_MAIN 0

Real namespaces

Number 100 and beyond are reserved for custom namespaces; DO NOT assign standard namespaces at 100 or beyond. DO NOT Change integer values as they are most probably hardcoded everywhere see T2696 which talked about that.

Definition at line 60 of file Defines.php.

Referenced by DumpNamespaceFilter\__construct(), TitleValue\__construct(), MediaWiki\Tests\Maintenance\BackupDumperLoggerTest\addDBData(), PrefixSearchTest\addDBDataOnce(), SearchEnginePrefixTest\addDBDataOnce(), SearchEngineTest\addDBDataOnce(), TitleValueTest\badConstructorProvider(), buildCommonApiParams(), Title\canExist(), NamespaceInfo\canHaveTalkPage(), MediaWiki\Tests\Maintenance\TextPassDumperDatabaseTest\checkpointHelper(), MediaWiki\Permissions\PermissionManager\checkReadPermissions(), MediaWiki\Permissions\PermissionManager\checkSpecialsAndNSPermissions(), LanguageConverter\convertNamespace(), LanguageConverter\convertTitle(), ApiPageSetTest\createPageSetWithRedirect(), PrefixSearch\defaultSearchBackend(), SpecialLog\execute(), WithoutInterwikiPage\execute(), SpecialContributions\execute(), SpecialExport\execute(), UppercaseTitlesForUnicodeTransition\execute(), LogFormatterTestCase\expandDatabaseRow(), SearchEngineTest\fetchIds(), LanguageConverter\findVariantLink(), Linker\formatAutocomments(), TitleValueTest\fragmentTitleProvider(), ParserFuzzTest\fuzzTest(), ApiQueryAllPages\getAllowedParams(), ApiQueryDeletedrevs\getAllowedParams(), ApiQueryInfo\getAllVariants(), NamespaceInfo\getCanonicalNamespaces(), NamespaceInfoTest\getDefaultNamespaces(), MediaWikiIntegrationTestCase\getDefaultWikitextNS(), CategoriesRdf\getDumpURI(), SpecialEditWatchlist\getExpandedTargets(), Linker\getInvalidTitleDescription(), EditWatchlistNormalHTMLForm\getLegend(), BlockLogFormatter\getMessageParameters(), MediaWiki\Tests\Revision\RevisionRendererTest\getMockTitle(), MediaWiki\Tests\Revision\RenderedRevisionTest\getMockTitle(), SpecialEditWatchlist\getNormalForm(), RandomPage\getNsList(), WantedFilesPage\getPageHeader(), DefaultPreferencesFactoryTest\getPreferencesFactory(), BlockListPager\getRestrictionListHTML(), NamespaceInfo\getSubject(), NamespaceDupes\getTargetList(), User\getTokenUrl(), Languages\getUntranslatedNamespaces(), ExternalUserNames\getUserLinkTitle(), TitleValueTest\goodConstructorProvider(), MediaWiki\EditPage\TextConflictHelper\incrementConflictStats(), MediaWiki\EditPage\TextConflictHelper\incrementResolvedStats(), MediaWiki\Tests\Maintenance\DeleteAutoPatrolLogsTest\insertLoggingData(), Title\isAlwaysKnown(), NamespaceInfo\isMethodValidFor(), NamespaceInfo\isMovable(), NamespaceInfo\isTalk(), MediaWiki\main(), Html\namespaceSelectorOptions(), Title\newFromTextThrow(), SpecialListGroupRights\outputNamespaceProtectionInfo(), SearchEngine\parseNamespacePrefixes(), MediaWikiTitleCodec\parseTitle(), BenchmarkTitleValue\parseTitleValue(), NamespaceInfoTest\provideCanHaveTalkPage(), TitleTest\provideCanHaveTalkPage(), CategoryChangesAsRdfTest\provideCategoryData(), SearchEngineTest\provideCompletionSearchMustRespectCapitalLinkOverrides(), ContentModelLogFormatterTest\provideContentModelLogDatabaseRows(), TitleTest\provideCreateFragmentTitle(), DeleteLogFormatterTest\provideDeleteLogDatabaseRows(), TitleTest\provideEquals(), DeleteLogFormatterTest\provideEventLogDatabaseRows(), NamespaceInfoTest\provideExists(), MediaWikiTitleCodecTest\provideFormat(), NamespaceInfoTest\provideGetCanonicalIndex(), NamespaceInfoTest\provideGetCanonicalName(), NamespaceInfoTest\provideGetCategoryLinkType(), NamespaceInfoTest\provideGetContentNamespaces(), MediaWikiTitleCodecTest\provideGetFullText(), TitleMethodsTest\provideGetLinkURL(), NamespaceInfoTest\provideGetNamespaceContentModel(), MediaWikiTitleCodecTest\provideGetNamespaceName(), TitleTest\provideGetOtherPage_good(), MediaWikiTitleCodecTest\provideGetPrefixedDBkey(), TitleTest\provideGetPrefixedDBKey(), MediaWikiTitleCodecTest\provideGetPrefixedText(), TitleTest\provideGetPrefixedText(), SpecialShortpagesTest\provideGetQueryInfoRespectsContentNs(), NamespaceInfoTest\provideGetRestrictionLevels(), TitleTest\provideGetSubjectPage_good(), NamespaceInfoTest\provideGetTalkPage_bad(), TitleTest\provideGetTalkPage_bad(), NamespaceInfoTest\provideGetTalkPage_good(), TitleTest\provideGetTalkPage_good(), MediaWikiTitleCodecTest\provideGetText(), ExternalUserNamesTest\provideGetUserLinkTitle(), TitleMethodsTest\provideHasSubjectNamespace(), NamespaceInfoTest\provideHasSubpages(), NamespaceInfoTest\provideHasTalkNamespace(), TitleMethodsTest\provideInNamespace(), ImportLogFormatterTest\provideInterwikiLogDatabaseRows(), NamespaceInfoTest\provideIsContent(), NamespaceInfoTest\provideIsMovable(), NamespaceInfoTest\provideIsSubject(), TitleTest\provideIsValid(), NamespaceInfoTest\provideIsWatchable(), TitleTest\provideIsWatchable(), WikitextContentHandlerTest\provideMakeRedirectContent(), MergeLogFormatterTest\provideMergeLogDatabaseRows(), ParserOutputTest\provideMergeTrackingMetaDataFrom(), ProtectLogFormatterTest\provideModifyLogDatabaseRows(), MoveLogFormatterTest\provideMoveLogDatabaseRows(), ProtectLogFormatterTest\provideMoveProtLogDatabaseRows(), MoveLogFormatterTest\provideMoveRedirLogDatabaseRows(), TitleTest\provideNewFromTitleValue(), PageLangLogFormatterTest\providePageLangLogDatabaseRows(), MediaWikiTitleCodecTest\provideParseTitle(), BlockLogFormatterTest\providePartialBlockLogDatabaseRows(), PatrolLogFormatterTest\providePatrolLogDatabaseRows(), ProtectLogFormatterTest\provideProtectLogDatabaseRows(), DeleteLogFormatterTest\provideRestoreLogDatabaseRows(), DeleteLogFormatterTest\provideRevisionLogDatabaseRows(), PrefixSearchTest\provideSearch(), NamespaceInfoTest\provideSubjectEquals(), NamespaceInfoTest\provideSubjectTalk(), TitleTest\provideSubpage(), DeleteLogFormatterTest\provideSuppressDeleteLogDatabaseRows(), DeleteLogFormatterTest\provideSuppressEventLogDatabaseRows(), DeleteLogFormatterTest\provideSuppressRevisionLogDatabaseRows(), ApiQueryTest\provideTestTitlePartToKey(), ProtectLogFormatterTest\provideUnprotectLogDatabaseRows(), ImportLogFormatterTest\provideUploadLogDatabaseRows(), NamespaceInfoTest\provideWantSignatures(), GlobalWithDBTest\provideWfIsBadImageList(), SearchExactMatchRescorer\rescore(), SearchEngineConfig\searchableNamespaces(), RandomPage\setNamespace(), GenerateSitemap\setNamespacePriorities(), WikiImporter\setTargetRootPage(), ArticleTest\setUp(), TitlePermissionTest\setUp(), PrefixSearchTest\setUp(), MediaWiki\Tests\Permissions\PermissionManagerTest\setUp(), SearchEnginePrefixTest\setUp(), NamespaceInfoTest\setupExtensionNamespaces(), NamespaceInfoTest\setupExtraNamespaces(), OutputPageTest\setupFeedLinks(), NamespaceInfoTest\setupHookNamespaces(), SpecialAllPages\showChunk(), SpecialPrefixindex\showPrefixChunk(), MediaWikiTitleCodec\splitTitleString(), TitlePermissionTest\testActionPermissions(), MediaWiki\Tests\Permissions\PermissionManagerTest\testActionPermissions(), DatabaseBlockTest\testAppliesToNamespaceOnPartialNamespaceBlock(), DatabaseBlockTest\testAppliesToReturnsTrueOnSitewideBlock(), TitlePermissionTest\testCascadingSourcesRestrictions(), MediaWiki\Tests\Permissions\PermissionManagerTest\testCascadingSourcesRestrictions(), UserTest\testCompositeBlocks(), ContentHandlerTest\testDataIndexFields(), NamespaceInfoTest\testEquals(), MediaWiki\Tests\Revision\MainSlotRoleHandlerTest\testFetDefaultModel(), SpecialMyLanguageTest\testFindTitle(), MediaWikiTitleCodecTest\testFormat(), BlockListPagerTest\testFormatValueRestrictions(), NamespaceInfoTest\testGetCanonicalIndex_caching(), NamespaceInfoTest\testGetCanonicalIndex_ExtensionNamespaces(), NamespaceInfoTest\testGetCanonicalIndex_HookNamespaces(), NamespaceInfoTest\testGetCanonicalIndex_NoCanonicalNamespaceNames(), NamespaceInfoTest\testGetCanonicalName_caching(), NamespaceInfoTest\testGetCanonicalName_ExtensionNamespaces(), NamespaceInfoTest\testGetCanonicalName_ExtraNamespaces(), NamespaceInfoTest\testGetCanonicalName_HookNamespaces(), NamespaceInfoTest\testGetCanonicalName_NoCanonicalNamespaceNames(), NamespaceInfoTest\testGetCanonicalNamespaces_NoCanonicalNamespaceNames(), ResourceLoaderWikiModuleTest\testGetContent(), LinkRendererTest\testGetLinkClasses(), ParserOutputSearchDataExtractorTest\testGetOutgoingLinks(), MediaWiki\Tests\Revision\RevisionRendererTest\testGetRenderedRevision_multi(), NamespaceInfoTest\testGetRestrictionLevels(), MediaWiki\Tests\Revision\RenderedRevisionTest\testGetRevisionParserOutput_multi(), NamespaceInfoTest\testGetSubjectNamespaces(), NamespaceInfoTest\testGetTalkNamespaces(), TitleValueTest\testGetText(), NamespaceInfoTest\testGetValidNamespaces(), NamespaceInfoTest\testGetValidNamespaces_caching(), NamespaceInfoTest\testGetValidNamespaces_ExtensionNamespaces(), NamespaceInfoTest\testGetValidNamespaces_ExtraNamespaces(), NamespaceInfoTest\testGetValidNamespaces_HookNamespaces(), NamespaceInfoTest\testGetValidNamespaces_NoCanonicalNamespaceNames(), NamespaceInfoTest\testHasGenderDistinction(), TitleMethodsTest\testInNamespaces(), MediaWiki\Tests\Revision\MainSlotRoleHandlerTest\testIsAllowedModel(), TitleTest\testIsAlwaysKnownOnInterwiki(), LinkRendererTest\testMakeBrokenLink(), LinkRendererTest\testMakeKnownLink(), MediaWiki\Tests\Block\Restriction\NamespaceRestrictionTest\testMatches(), ApiMoveTest\testMoveSubpages(), MediaWiki\Tests\Revision\RevisionStoreDbTestBase\testNewMutableRevisionFromArray(), TitlePermissionTest\testPageRestrictions(), MediaWiki\Tests\Permissions\PermissionManagerTest\testPageRestrictions(), ContentHandlerTest\testParserOutputForIndexing(), MediaWikiTitleCodecTest\testParseTitle(), MediaWikiTitleCodecTest\testParseTitle_invalid(), MediaWiki\Tests\Maintenance\TextPassDumperDatabaseTest\testPlain(), MediaWiki\Tests\Maintenance\TextPassDumperDatabaseTest\testPrefetchPlain(), TitlePermissionTest\testQuickPermissions(), MediaWiki\Tests\Permissions\PermissionManagerTest\testQuickPermissions(), ChangesListSpecialPageTest\testRcNsFilter(), ChangesListSpecialPageTest\testRcNsFilterInversion(), ApiQueryTest\testShouldNotExportPagesThatUserCanNotRead(), TitlePermissionTest\testSpecialsAndNSPermissions(), MediaWiki\Tests\Permissions\PermissionManagerTest\testSpecialsAndNSPermissions(), OutputPageTest\testTemplateIds(), LinksUpdateTest\testUpdate_iwlinks(), LinksUpdateTest\testUpdate_pagelinks(), NamespaceInfoTest\testWantSignatures_ExtraSignatureNamespaces(), and PrefixSearch\validateNamespaces().

◆ NS_MEDIA

const NS_MEDIA -2

Virtual namespaces; don't appear in the page database

Definition at line 48 of file Defines.php.

Referenced by ParserOutput\addLink(), WikiPage\factory(), Linker\formatLinksInComment(), ApiQueryLinks\getAllowedParams(), ApiQueryAllLinks\getAllowedParams(), ApiQueryLogEvents\getAllowedParams(), ApiQueryRecentChanges\getAllowedParams(), SearchNearMatcher\getNearMatchInternal(), MediaStatisticsPage\getQueryInfo(), WikiPage\getRedirectTarget(), Title\isAlwaysKnown(), Article\newFromTitle(), File\normalizeTitle(), MediaWiki\parseTitle(), NamespaceInfoTest\provideCanHaveTalkPage(), TitleTest\provideCanHaveTalkPage(), NamespaceInfoTest\provideExists(), TitleTest\provideGetPrefixedDBKey(), TitleTest\provideGetPrefixedText(), NamespaceInfoTest\provideGetTalkPage_bad(), TitleTest\provideGetTalkPage_bad(), NamespaceInfoTest\provideHasSubpages(), NamespaceInfoTest\provideHasTalkNamespace(), NamespaceInfoTest\provideIsCapitalized(), NamespaceInfoTest\provideIsContent(), NamespaceInfoTest\provideIsMovable(), NamespaceInfoTest\provideIsSubject(), NamespaceInfoTest\provideIsWatchable(), TitleTest\provideIsWatchable(), NamespaceInfoTest\provideSpecialNamespaces(), NamespaceInfoTest\provideSubjectEquals(), SampleTest\provideTitles(), NamespaceInfoTest\provideWantSignatures(), Parser\replaceInternalLinks2(), PrefixSearch\searchBackend(), NamespaceInfoTest\setupHookNamespaces(), TitlePermissionTest\testActionPermissions(), MediaWiki\Tests\Permissions\PermissionManagerTest\testActionPermissions(), NamespaceInfoTest\testGetCanonicalIndex_caching(), NamespaceInfoTest\testGetCanonicalName_caching(), NamespaceInfoTest\testGetCanonicalName_HookNamespaces(), NamespaceInfoTest\testGetSubjectNamespaces(), NamespaceInfoTest\testGetTalkNamespaces(), NamespaceInfoTest\testHasGenderDistinction(), OutputPageTest\testTemplateIds(), SampleTest\testTitleObjectStringConversion(), NamespaceInfoTest\testWantSignatures_ExtraSignatureNamespaces(), and CoreParserFunctions\urlFunction().

◆ NS_MEDIAWIKI

const NS_MEDIAWIKI 8

Definition at line 68 of file Defines.php.

Referenced by DumpNamespaceFilter\__construct(), AllMessagesTablePager\__construct(), ApiFormatXml\addXslt(), SkinTemplate\buildContentNavigationUrls(), MediaWiki\Permissions\PermissionManager\checkSpecialsAndNSPermissions(), FixDefaultJsonContentPages\doDBUpdates(), WikiPage\doPurge(), MediaWiki\Storage\DerivedPageDataUpdater\doUpdates(), ApiEditPage\execute(), DeleteDefaultMessages\execute(), UpdateRestrictions\execute(), ImportSiteScripts\execute(), NukeNS\execute(), DeleteEqualMessages\execute(), AllMessagesTablePager\formatValue(), EditPage\getContentObject(), AllMessagesTablePager\getCustomisedStatuses(), Title\getDefaultMessageText(), Revision\MainSlotRoleHandler\getDefaultModel(), MediaWikiIntegrationTestCase\getDefaultWikitextNS(), SearchNearMatcher\getNearMatchInternal(), ContentHandler\getPageLanguage(), ContentHandler\getPageViewLanguage(), WantedPagesPage\getQueryInfo(), UnwatchedpagesPage\getQueryInfo(), Article\getSubstituteContent(), Message\getTitle(), TrackingCategories\getTrackingCategories(), Title\hasSourceText(), EditPage\internalAttemptSave(), Title\isAlwaysKnown(), LinkCache\isCacheable(), Title\isConversionTable(), Title\isRawHtmlMessage(), Title\isSiteCssConfigPage(), Title\isSiteJsConfigPage(), Title\isSiteJsonConfigPage(), ChangeTags\isTagNameValid(), MessageCache\loadCachedMessagePageEntry(), MessageCache\loadFromDB(), MessageCacheTest\makePage(), WikiPage\onArticleDelete(), RawAction\onView(), LanguageConverter\parseCachedTable(), ResourceLoaderWikiModuleTest\provideGetContent(), NamespaceInfoTest\provideIsCapitalized(), MessageCache\refreshAndReplaceInternal(), EditPage\setHeaders(), GenerateSitemap\setNamespacePriorities(), UploadFromUrlTestSuite\setUp(), TitlePermissionTest\setUp(), MediaWiki\Tests\Permissions\PermissionManagerTest\setUp(), EditPage\showDiff(), EditPage\showIntro(), Article\showMissingArticle(), Parser\statelessFetchTemplate(), ResourceLoaderWikiModuleTest\testGetContentForRedirects(), MessageContentTest\testGetParserOutput(), MessageCacheTest\testReplaceCache(), TitlePermissionTest\testSpecialsAndNSPermissions(), MediaWiki\Tests\Permissions\PermissionManagerTest\testSpecialsAndNSPermissions(), ArticleViewTest\testViewMessagePage(), and LanguageConverter\updateConversionTable().

◆ NS_MEDIAWIKI_TALK

◆ NS_PROJECT

◆ NS_PROJECT_TALK

◆ NS_SPECIAL

const NS_SPECIAL -1

Definition at line 49 of file Defines.php.

Referenced by JobSpecification\__construct(), Job\__construct(), ParserOutput\addLink(), RCCacheEntryFactory\buildCLink(), MediaWiki\Permissions\PermissionManager\checkSpecialsAndNSPermissions(), SearchEngine\completionSearchBackend(), ApiFeedWatchlist\createFeedItem(), PrefixSearch\defaultSearchBackend(), LinkHolderArray\doVariants(), Revision\ensureTitle(), TidyUpT39714\execute(), ApiComparePages\execute(), Job\factory(), Title\fixSpecialName(), MediaWiki\Widget\Search\InterwikiSearchResultSetWidget\footerHtml(), OldChangesList\formatChangeLine(), MediaWikiTitleCodec\formatTitle(), ApiQueryLinks\getAllowedParams(), ApiQueryAllLinks\getAllowedParams(), ApiQueryLogEvents\getAllowedParams(), ApiQueryRecentChanges\getAllowedParams(), RCCacheEntryFactoryTest\getContext(), ApiComparePages\getDiffRevision(), ApiErrorFormatter\getDummyTitle(), OutputPage\getJSVars(), IRCColourfulRCFeedFormatter\getLine(), ApiStructureTest\getMain(), JobQueueRedis\getNewJobFields(), ChangesListSpecialPageTest\getPage(), SpecialPage\getSafeTitleFor(), TestRecentChangesHelper\getTestContext(), DifferenceEngine\getTitle(), SpecialPageTest\getTitleForWithWarningProvider(), SpecialPage\getTitleValueFor(), MediaWiki\Widget\Search\SimpleSearchResultSetWidget\headerHtml(), JobQueueDB\insertFields(), Title\isAlwaysKnown(), MediaWiki\Permissions\PermissionManager\isSameSpecialPage(), Title\isSpecialPage(), MediaWiki\Rest\EntryPoint\main(), MediaWiki\main(), MediaWiki\Linker\LinkRenderer\makeBrokenLink(), Linker\normaliseSpecialPage(), MessageCache\parse(), ApiPageSet\populateGeneratorData(), Title\prefix(), ApiPageSet\processTitlesArray(), LogFormatterTest\provideApiParamFormatting(), NamespaceInfoTest\provideCanHaveTalkPage(), TitleTest\provideCanHaveTalkPage(), NamespaceInfoTest\provideExists(), NamespaceInfoTest\provideGetCanonicalName(), NamespaceInfoTest\provideGetNamespaceContentModel(), NamespaceInfoTest\provideGetTalkPage_bad(), TitleTest\provideGetTalkPage_bad(), ExternalUserNamesTest\provideGetUserLinkTitle(), NamespaceInfoTest\provideHasSubpages(), NamespaceInfoTest\provideHasTalkNamespace(), NamespaceInfoTest\provideIsCapitalized(), NamespaceInfoTest\provideIsContent(), NamespaceInfoTest\provideIsMovable(), NamespaceInfoTest\provideIsSubject(), NamespaceInfoTest\provideIsWatchable(), TitleTest\provideIsWatchable(), NamespaceInfoTest\provideSpecialNamespaces(), NamespaceInfoTest\provideSubjectEquals(), NamespaceInfoTest\provideWantSignatures(), LinkHolderArray\replaceInternal(), Parser\replaceInternalLinks2(), PrefixSearch\searchBackend(), SpecialMIMESearchTest\setUp(), CoreParserFunctions\special(), PrefixSearch\specialSearch(), MediaWikiTitleCodec\splitTitleString(), NamespaceInfoTest\testEquals(), NamespaceInfoTest\testGetSubjectNamespaces(), NamespaceInfoTest\testGetTalkNamespaces(), SpecialPageTest\testGetTitleFor(), SpecialPageFactoryTest\testGetTitleForAlias(), NamespaceInfoTest\testHasGenderDistinction(), SpecialPageTest\testInvalidGetTitleFor(), JobTest\testJobSignatureGeneric(), JobTest\testJobSignatureTitleBased(), JobTest\testJobSignatureTitleBasedIncomplete(), LinkRendererTest\testMakeBrokenLink(), LinkRendererTest\testMakeLink(), LinkRendererTest\testMergeAttribs(), SpecialSearchTest\testRewriteQueryWithSuggestion(), TitlePermissionTest\testSpecialsAndNSPermissions(), MediaWiki\Tests\Permissions\PermissionManagerTest\testSpecialsAndNSPermissions(), NamespaceInfoTest\testWantSignatures_ExtraSignatureNamespaces(), and SkinTemplate\wrapHTML().

◆ NS_TALK

const NS_TALK 1

Definition at line 61 of file Defines.php.

Referenced by DumpNamespaceFilter\__construct(), MediaWiki\Tests\Maintenance\TextPassDumperDatabaseTest\addDBData(), MediaWiki\Tests\Maintenance\BackupDumperPageTest\addDBData(), MediaWiki\Tests\Maintenance\BackupDumperLoggerTest\addDBData(), MediaWiki\Tests\Maintenance\TextPassDumperDatabaseTest\checkpointHelper(), MediaWiki\Tests\Block\BlockRestrictionStoreTest\equalsDataProvider(), TitleValueTest\fragmentTitleProvider(), NamespaceDupes\getDestinationTitle(), DefaultPreferencesFactoryTest\getPreferencesFactory(), NamespaceDupes\getTargetList(), NamespaceInfoTest\provideCanHaveTalkPage(), TitleTest\provideCanHaveTalkPage(), TitleTest\provideCreateFragmentTitle(), TitleTest\provideEquals(), NamespaceInfoTest\provideExists(), NamespaceInfoTest\provideGetCanonicalIndex(), NamespaceInfoTest\provideGetCanonicalName(), NamespaceInfoTest\provideGetCategoryLinkType(), NamespaceInfoTest\provideGetNamespaceContentModel(), TitleTest\provideGetOtherPage_good(), SpecialShortpagesTest\provideGetQueryInfoRespectsContentNs(), NamespaceInfoTest\provideGetRestrictionLevels(), TitleTest\provideGetSubjectPage_good(), NamespaceInfoTest\provideGetTalkPage_good(), TitleTest\provideGetTalkPage_good(), TitleMethodsTest\provideHasSubjectNamespace(), NamespaceInfoTest\provideHasSubpages(), NamespaceInfoTest\provideHasTalkNamespace(), TitleMethodsTest\provideInNamespace(), NamespaceInfoTest\provideIsContent(), NamespaceInfoTest\provideIsMovable(), NamespaceInfoTest\provideIsSubject(), NamespaceInfoTest\provideIsWatchable(), TitleTest\provideIsWatchable(), ParserOutputTest\provideMergeTrackingMetaDataFrom(), MediaWikiTitleCodecTest\provideParseTitle(), NamespaceInfoTest\provideSubjectEquals(), NamespaceInfoTest\provideSubjectTalk(), NamespaceInfoTest\provideWantSignatures(), GenerateSitemap\setNamespacePriorities(), NamespaceInfoTest\setupExtensionNamespaces(), NamespaceInfoTest\setupExtraNamespaces(), MediaWikiTitleCodec\splitTitleString(), ApiBlockTest\testBlockWithRestrictions(), NamespaceInfoTest\testEquals(), NamespaceInfoTest\testGetCanonicalIndex_ExtensionNamespaces(), NamespaceInfoTest\testGetCanonicalName_ExtensionNamespaces(), NamespaceInfoTest\testGetCanonicalName_ExtraNamespaces(), NamespaceInfoTest\testGetCanonicalName_NoCanonicalNamespaceNames(), NamespaceInfoTest\testGetSubjectNamespaces(), NamespaceInfoTest\testGetTalkNamespaces(), NamespaceInfoTest\testGetValidNamespaces(), NamespaceInfoTest\testGetValidNamespaces_caching(), NamespaceInfoTest\testGetValidNamespaces_ExtensionNamespaces(), NamespaceInfoTest\testGetValidNamespaces_ExtraNamespaces(), NamespaceInfoTest\testGetValidNamespaces_HookNamespaces(), NamespaceInfoTest\testHasGenderDistinction(), SpecialBlockTest\testMaybeAlterFormDefaultsPartial(), ApiQuerySiteinfoTest\testNamespaceAliases(), MediaWiki\Tests\Maintenance\BackupDumperLoggerTest\testPlain(), MediaWiki\Tests\Maintenance\TextPassDumperDatabaseTest\testPlain(), MediaWiki\Tests\Maintenance\TextPassDumperDatabaseTest\testPrefetchPlain(), TitlePermissionTest\testQuickPermissions(), MediaWiki\Tests\Permissions\PermissionManagerTest\testQuickPermissions(), OutputPageTest\testTemplateIds(), LinksUpdateTest\testUpdate_pagelinks(), and MediaWiki\Tests\Maintenance\BackupDumperLoggerTest\testXmlDumpsBackupUseCaseLogging().

◆ NS_TEMPLATE

◆ NS_TEMPLATE_TALK

const NS_TEMPLATE_TALK 11

◆ NS_USER

const NS_USER 2

Definition at line 62 of file Defines.php.

◆ NS_USER_TALK

const NS_USER_TALK 3

Definition at line 63 of file Defines.php.

Referenced by DumpNamespaceFilter\__construct(), EmailNotification\actuallyNotifyOnPageChange(), MediaWiki\Block\AbstractBlock\appliesToUsertalk(), EmailNotification\canSendUserTalkEmail(), User\clearNotification(), HistoryPager\doBatchLookups(), FileDuplicateSearchPage\doBatchLookups(), UsersPager\doBatchLookups(), ContribsPager\doBatchLookups(), UserCache\doQuery(), MediaWiki\Storage\DerivedPageDataUpdater\doUpdates(), ChangesListSpecialPage\execute(), ShiConverter\findVariantLink(), SrConverter\findVariantLink(), IuConverter\findVariantLink(), KuConverter\findVariantLink(), KkConverter\findVariantLink(), ImageHistoryPseudoPager\getBody(), MediaWikiTitleCodecTest\getNamespaceInfo(), DefaultPreferencesFactoryTest\getPreferencesFactory(), NewUsersLogFormatter\getPreloadTitles(), WantedPagesPage\getQueryInfo(), SpecialMytalk\getRedirect(), Article\getRobotPolicy(), MergeHistoryPager\getStartBody(), NewPagesPager\getStartBody(), LogPager\getStartBody(), EditPage\importFormData(), UppercaseTitlesForUnicodeTransition\isUserPage(), Language\needsGenderDistinction(), EmailNotification\notifyOnPageChange(), WikiPage\onArticleDelete(), ProtectedPagesPager\preprocessResults(), BlockListPager\preprocessResults(), BlockLogFormatterTest\provideBlockLogDatabaseRows(), MediaWikiTitleCodecTest\provideFormat(), NamespaceInfoTest\provideGetCanonicalIndex(), NamespaceInfoTest\provideGetCanonicalName(), NamespaceInfoTest\provideGetCategoryLinkType(), MediaWikiTitleCodecTest\provideGetFullText(), NamespaceInfoTest\provideGetNamespaceContentModel(), MediaWikiTitleCodecTest\provideGetPrefixedDBkey(), TitleTest\provideGetPrefixedDBKey(), MediaWikiTitleCodecTest\provideGetPrefixedText(), TitleTest\provideGetPrefixedText(), NamespaceInfoTest\provideGetTalkPage_good(), TitleMethodsTest\provideHasSubjectNamespace(), NamespaceInfoTest\provideHasSubpages(), NamespaceInfoTest\provideHasTalkNamespace(), TitleMethodsTest\provideInNamespace(), MediaWiki\Tests\Permissions\PermissionManagerTest\provideIsBlockedFrom(), UserTest\provideIsBlockedFrom(), NamespaceInfoTest\provideIsSubject(), NamespaceInfoTest\provideSubjectEquals(), NamespaceInfoTest\provideSubjectTalk(), NamespaceInfoTest\provideWantSignatures(), GenerateSitemap\setNamespacePriorities(), SpecialUndelete\showHistory(), EditPage\showIntro(), Article\showMissingArticle(), Article\showViewFooter(), MediaWikiTitleCodec\splitTitleString(), DatabaseBlockTest\testAppliesToReturnsTrueOnSitewideBlock(), UserTest\testBlockInstanceCache(), MediaWiki\Tests\Permissions\PermissionManagerTest\testBlockInstanceCache(), NamespaceInfoTest\testEquals(), ApiQueryBlocksTest\testExecuteRestrictions(), NamespaceInfoTest\testGetValidNamespaces(), NamespaceInfoTest\testGetValidNamespaces_caching(), NamespaceInfoTest\testGetValidNamespaces_ExtensionNamespaces(), NamespaceInfoTest\testGetValidNamespaces_ExtraNamespaces(), NamespaceInfoTest\testGetValidNamespaces_HookNamespaces(), NamespaceInfoTest\testHasGenderDistinction(), and Linker\userTalkLink().

◆ OT_HTML

const OT_HTML 1

◆ OT_MSG

const OT_MSG 3

Definition at line 183 of file Defines.php.

◆ OT_PLAIN

const OT_PLAIN 4

◆ OT_PREPROCESS

const OT_PREPROCESS 3

◆ OT_WIKI

const OT_WIKI 2

◆ PROTO_CANONICAL

◆ PROTO_CURRENT

◆ PROTO_HTTP

◆ PROTO_HTTPS

◆ PROTO_INTERNAL

const PROTO_INTERNAL 2

Definition at line 220 of file Defines.php.

Referenced by CdnCacheUpdate\expand(), MediaWiki\performAction(), and wfExpandUrl().

◆ PROTO_RELATIVE

◆ RC_CATEGORIZE

◆ RC_EDIT

◆ RC_EXTERNAL

◆ RC_LOG

const RC_LOG 3

Definition at line 140 of file Defines.php.

Referenced by ChangesListSpecialPage\__construct(), RCCacheEntryFactory\buildCLink(), RCCacheEntryFactory\buildCurLink(), RCCacheEntryFactory\buildDiffLink(), RCCacheEntryFactory\buildLastLink(), PopulateRecentChangesSource\buildUpdateCondition(), LinksDeletionUpdate\doIncrementalUpdate(), SpecialWatchlist\doMainQuery(), RecentChange\doMarkPatrolled(), UpdateSearchIndex\doUpdateSearchIndex(), ApiQueryWatchlist\extractOutputData(), ApiQueryRecentChanges\extractRowInfo(), OldChangesList\formatChangeLine(), FeedUtils\formatDiff(), CategoryChangesAsRdf\getDeletedCatsIterator(), WatchedItemQueryService\getExtraDeletedPageLogEntryRelatedCond(), IRCColourfulRCFeedFormatter\getLine(), MachineReadableRCFeedFormatter\getLine(), EnhancedChangesList\getLineData(), CategoryChangesAsRdf\getMovedCatsIterator(), NewFilesPager\getQueryInfo(), CategoryChangesAsRdf\getRestoredCatsIterator(), WatchedItemQueryService\getWatchedItemsWithRCInfoQueryConds(), WatchedItemQueryService\getWatchedItemsWithRecentChangeInfo(), ChangesList\insertDiffHist(), EnhancedChangesList\makeCacheGroupingKey(), RCCacheEntryFactory\newFromRecentChange(), RecentChange\newLogEntry(), SpecialWatchlist\outputChangesList(), RecentChangeTest\provideRCTypes(), RebuildRecentchanges\rebuildRecentChangesTablePass3(), EnhancedChangesList\recentChangesBlockGroup(), EnhancedChangesList\recentChangesBlockLine(), SpecialWatchlist\registerFilters(), ApiQueryRecentChanges\run(), Article\showPatrolFooter(), ChangesList\userCan(), and WatchedItemQueryServiceUnitTest\userPermissionRelatedExtraChecksProvider().

◆ RC_NEW

◆ SCHEMA_COMPAT_NEW

◆ SCHEMA_COMPAT_OLD

◆ SCHEMA_COMPAT_READ_BOTH

◆ SCHEMA_COMPAT_READ_NEW

const SCHEMA_COMPAT_READ_NEW 0x20

Definition at line 283 of file Defines.php.

Referenced by ActorMigration\__construct(), Revision\RevisionStore\__construct(), ApiQueryUserContribsTest\addDBDataOnce(), MediaWiki\Tests\Revision\RevisionStoreDbTestBase\assertRevisionRecordMatchesRevision(), UserCache\doQuery(), Revision\RevisionStore\emulateMainSlot_1_29(), SpecialLog\execute(), ApiQueryUserContribs\execute(), ApiQueryContributors\execute(), ApiQueryUserInfo\getLatestContributionTime(), MediaWiki\Tests\Revision\getMcrMigrationStage(), NewFilesPager\getQueryInfo(), ActiveUsersPager\getQueryInfo(), User\getQueryInfo(), ActorMigration\getWhere(), MediaWiki\Tests\Storage\DerivedPageDataUpdaterTest\hasMultiSlotSupport(), Revision\RevisionStore\insertRevisionOn(), ActorMigration\isAnon(), ActorMigration\isNotAnon(), Revision\RevisionStore\newRevisionSlots(), InfoAction\pageCounts(), ApiQueryUserContribs\prepareQuery(), MediaWiki\Tests\Revision\RevisionQueryInfoTest\provideArchiveQueryInfo(), ActorMigrationTest\provideConstructor(), ActorMigrationTest\provideGetJoin(), ActorMigrationTest\provideGetWhere(), ApiQueryUserContribsTest\provideInterwikiUser(), ActorMigrationTest\provideIsAnon(), MediaWiki\Tests\Revision\RevisionStoreTest\provideMigrationConstruction(), MediaWiki\Tests\Revision\RevisionQueryInfoTest\provideQueryInfo(), MediaWiki\Tests\Revision\RevisionStoreTest\provideSetContentHandlerUseDB(), MediaWiki\Tests\Revision\RevisionQueryInfoTest\provideSlotsQueryInfo(), ApiQueryUserContribsTest\provideSorting(), ActorMigrationTest\provideStages(), ApiQueryAllRevisions\run(), ApiQueryRevisions\run(), Revision\selectArchiveFields(), OldLocalFile\selectFields(), MediaWiki\Block\DatabaseBlock\selectFields(), LocalFile\selectFields(), ArchivedFile\selectFields(), RecentChange\selectFields(), Revision\selectFields(), Revision\RevisionStore\setContentHandlerUseDB(), RevisionTest\setUp(), ActorMigrationTest\testInsertRoundTrip(), ActorMigrationTest\testInsertUserIdentity(), and Revision\userJoinCond().

◆ SCHEMA_COMPAT_READ_OLD

const SCHEMA_COMPAT_READ_OLD 0x02

Definition at line 281 of file Defines.php.

Referenced by ActorMigration\__construct(), Revision\RevisionStore\__construct(), Revision\RevisionStore\assertCrossWikiContentLoadingIsSafe(), CheckStorage\check(), CompressOld\compressWithConcat(), ApiQueryAllUsers\execute(), Revision\RevisionStore\getArchiveQueryInfo(), ActorMigration\getJoin(), Revision\RevisionStore\getQueryInfo(), Revision\RevisionStore\getSlotsQueryInfo(), Revision\RevisionStore\newMutableRevisionFromArray(), MediaWiki\Tests\Revision\RevisionQueryInfoTest\provideArchiveQueryInfo(), ActorMigrationTest\provideConstructor(), ActorMigrationTest\provideGetJoin(), ActorMigrationTest\provideGetWhere(), ApiQueryUserContribsTest\provideInterwikiUser(), ActorMigrationTest\provideIsAnon(), MediaWiki\Tests\Revision\RevisionStoreTest\provideMigrationConstruction(), MediaWiki\Tests\Revision\RevisionQueryInfoTest\provideQueryInfo(), MediaWiki\Tests\Revision\RevisionQueryInfoTest\provideSelectArchiveFields(), MediaWiki\Tests\Revision\RevisionQueryInfoTest\provideSelectFields(), MediaWiki\Tests\Revision\RevisionStoreTest\provideSetContentHandlerUseDB(), MediaWiki\Tests\Revision\RevisionQueryInfoTest\provideSlotsQueryInfo(), ApiQueryUserContribsTest\provideSorting(), ActorMigrationTest\provideStages(), Maintenance\purgeRedundantText(), UserTest\testActorId_old(), ChangesListSpecialPageTest\testFilterUserExpLevelAllExperienceLevels_old(), ChangesListSpecialPageTest\testFilterUserExpLevelRegistrered_old(), ChangesListSpecialPageTest\testFilterUserExpLevelRegistreredOrLearner_old(), ChangesListSpecialPageTest\testFilterUserExpLevelUnregistrered_old(), ChangesListSpecialPageTest\testFilterUserExpLevelUnregistreredOrExperienced_old(), ActorMigrationTest\testInsertRoundTrip(), ChangesListSpecialPageTest\testRcHidebyothersFilter_old(), ChangesListSpecialPageTest\testRcHidemyselfFilter_old(), TrackBlobs\trackRevisions(), and MediaWiki\Tests\Revision\RevisionStoreTest\useTextId().

◆ SCHEMA_COMPAT_WRITE_BOTH

const SCHEMA_COMPAT_WRITE_BOTH SCHEMA_COMPAT_WRITE_OLD | SCHEMA_COMPAT_WRITE_NEW

Definition at line 284 of file Defines.php.

Referenced by ActorMigration\__construct(), Revision\RevisionStore\__construct(), ApiQueryUserContribsTest\addDBDataOnce(), LocalFileDeleteBatch\doDBInserts(), MediaWiki\Tests\Revision\getMcrMigrationStage(), MediaWiki\Tests\Revision\RevisionQueryInfoTest\provideArchiveQueryInfo(), ActorMigrationTest\provideConstructor(), ActorMigrationTest\provideGetJoin(), ActorMigrationTest\provideGetWhere(), ApiQueryUserContribsTest\provideInterwikiUser(), ActorMigrationTest\provideIsAnon(), MediaWiki\Tests\Revision\RevisionStoreTest\provideMigrationConstruction(), MediaWiki\Tests\Revision\RevisionQueryInfoTest\provideQueryInfo(), MediaWiki\Tests\Revision\RevisionQueryInfoTest\provideSelectArchiveFields(), MediaWiki\Tests\Revision\RevisionQueryInfoTest\provideSelectFields(), MediaWiki\Tests\Revision\RevisionStoreTest\provideSetContentHandlerUseDB(), MediaWiki\Tests\Revision\RevisionQueryInfoTest\provideSlotsQueryInfo(), ApiQueryUserContribsTest\provideSorting(), ActorMigrationTest\provideStages(), LocalFile\recordUpload2(), RevisionTest\setUp(), UserTest\testActorId_old(), ChangesListSpecialPageTest\testFilterUserExpLevelAllExperienceLevels_old(), ChangesListSpecialPageTest\testFilterUserExpLevelRegistrered_old(), ChangesListSpecialPageTest\testFilterUserExpLevelRegistreredOrLearner_old(), ChangesListSpecialPageTest\testFilterUserExpLevelUnregistrered_old(), ChangesListSpecialPageTest\testFilterUserExpLevelUnregistreredOrExperienced_old(), ActorMigrationTest\testInsertRoundTrip(), ChangesListSpecialPageTest\testRcHidebyothersFilter_old(), and ChangesListSpecialPageTest\testRcHidemyselfFilter_old().

◆ SCHEMA_COMPAT_WRITE_NEW

const SCHEMA_COMPAT_WRITE_NEW 0x10

◆ SCHEMA_COMPAT_WRITE_OLD

const SCHEMA_COMPAT_WRITE_OLD 0x01

◆ SFH_NO_HASH

const SFH_NO_HASH 1

Flags for Parser::setFunctionHook Use of Parser consts is preferred:

Definition at line 193 of file Defines.php.

Referenced by Parser\setFunctionHook().

◆ SFH_OBJECT_ARGS

const SFH_OBJECT_ARGS 2

Definition at line 194 of file Defines.php.

Referenced by Parser\callParserFunction().

◆ SHELL_MAX_ARG_STRLEN

const SHELL_MAX_ARG_STRLEN '100000'

Max string length for shell invocations; based on binfmts.h

Definition at line 266 of file Defines.php.

Referenced by MediaWiki\Shell\Command\execute().

◆ XML_DUMP_SCHEMA_VERSION_10

const XML_DUMP_SCHEMA_VERSION_10 '0.10'

XML dump schema versions, for use with XmlDumpWriter. See also the corresponding export-nnnn.xsd files in the docs directory, which are also listed at https://www.mediawiki.org/xml/. Note that not all old schema versions are represented here, as several were already unsupported at the time these constants were introduced.

Definition at line 324 of file Defines.php.

◆ XML_DUMP_SCHEMA_VERSION_11

const XML_DUMP_SCHEMA_VERSION_11 '0.11'