MediaWiki  1.30.0
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_TOKEN_SUFFIX Token::SUFFIX
 String Some punctuation to prevent editing from broken text-mangling proxies. More...
 
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 3
 
const MIGRATION_OLD 0
 
const MIGRATION_WRITE_BOTH 1
 
const MIGRATION_WRITE_NEW 2
 
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 SFH_NO_HASH 1
 
const SFH_OBJECT_ARGS 2
 
const SHELL_MAX_ARG_STRLEN '100000'
 

Detailed Description

Variable Documentation

◆ ALF_NO_BLOCK_LOCK

const ALF_NO_BLOCK_LOCK 8

Definition at line 126 of file Defines.php.

◆ ALF_NO_LINK_LOCK

const ALF_NO_LINK_LOCK 4

Definition at line 125 of file Defines.php.

◆ ALF_PRELOAD_EXISTENCE

const ALF_PRELOAD_EXISTENCE 2

Definition at line 124 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 123 of file Defines.php.

◆ APCOND_AGE

const APCOND_AGE 2

Definition at line 207 of file Defines.php.

Referenced by Autopromote\checkCondition().

◆ APCOND_AGE_FROM_EDIT

const APCOND_AGE_FROM_EDIT 7

Definition at line 212 of file Defines.php.

Referenced by Autopromote\checkCondition().

◆ APCOND_BLOCKED

const APCOND_BLOCKED 8

Definition at line 213 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 206 of file Defines.php.

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

◆ APCOND_EMAILCONFIRMED

const APCOND_EMAILCONFIRMED 3

Definition at line 208 of file Defines.php.

Referenced by Autopromote\checkCondition().

◆ APCOND_INGROUPS

const APCOND_INGROUPS 4

Definition at line 209 of file Defines.php.

Referenced by Autopromote\checkCondition().

◆ APCOND_IPINRANGE

const APCOND_IPINRANGE 6

Definition at line 211 of file Defines.php.

Referenced by Autopromote\checkCondition().

◆ APCOND_ISBOT

const APCOND_ISBOT 9

Definition at line 214 of file Defines.php.

Referenced by Autopromote\checkCondition().

◆ APCOND_ISIP

const APCOND_ISIP 5

Definition at line 210 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 112 of file Defines.php.

◆ AV_SCAN_ABORTED

const AV_SCAN_ABORTED -1

Definition at line 114 of file Defines.php.

◆ AV_SCAN_FAILED

const AV_SCAN_FAILED false

Definition at line 115 of file Defines.php.

◆ AV_VIRUS_FOUND

const AV_VIRUS_FOUND 1

Definition at line 113 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 259 of file Defines.php.

◆ CONTENT_FORMAT_JAVASCRIPT

◆ CONTENT_FORMAT_JSON

const CONTENT_FORMAT_JSON 'application/json'

Definition at line 263 of file Defines.php.

Referenced by JsonContentHandler\__construct().

◆ CONTENT_FORMAT_SERIALIZED

const CONTENT_FORMAT_SERIALIZED 'application/vnd.php.serialized'

Definition at line 261 of file Defines.php.

◆ CONTENT_FORMAT_TEXT

const CONTENT_FORMAT_TEXT 'text/plain'

Definition at line 257 of file Defines.php.

Referenced by RevisionTestModifyableContentHandler\__construct().

◆ CONTENT_FORMAT_WIKITEXT

const CONTENT_FORMAT_WIKITEXT 'text/x-wiki'

Content formats, used by Content and ContentHandler. These should be MIME types, and will be exposed in the API and XML dumps.

Extensions are free to use the below formats, or define their own. It is recommended to stick with the conventions for MIME types.

Definition at line 251 of file Defines.php.

Referenced by WikitextContentHandler\__construct(), RevisionTest\dataGetContentFormat(), WikitextContentHandlerTest\dataIsSupportedFormat(), ContentHandlerTest\dataMakeContent(), WikitextContentHandlerTest\testSerializeContent(), and WikitextContentHandlerTest\testUnserializeContent().

◆ CONTENT_FORMAT_XML

const CONTENT_FORMAT_XML 'application/xml'

Definition at line 265 of file Defines.php.

◆ CONTENT_MODEL_CSS

◆ CONTENT_MODEL_JAVASCRIPT

◆ 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 236 of file Defines.php.

Referenced by WikitextContent\__construct(), MessageContent\__construct(), ApiParseTest\addDBDataOnce(), RevisionStorageTest\createPage(), TestPageProps\createPage(), TitleMethodsTest\dataGetContentModel(), RevisionTest\dataGetContentModel(), ContentHandlerTest\dataGetDefaultModelFor(), WikitextContentTest\dataGetDeletionUpdates(), WikitextContentTest\dataGetParserOutput(), WikitextContentTest\dataGetSecondaryDataUpdates(), RevisionTest\dataGetSha1(), RevisionTest\dataGetSize(), ContentHandlerTest\dataMakeContent(), WikiEditorHooks\editPageShowEditFormFields(), WikiEditorHooks\editPageShowEditFormInitial(), ApiParse\execute(), ApiQueryRevisionsBase\extractRevisionInfo(), ApiQueryRevisionsBase\getAllowedParams(), ApiParse\getAllowedParams(), Revision\getContentModel(), ContentHandler\getDefaultModelFor(), MediaWikiTestCase\getDefaultWikitextNS(), ApiComparePages\getDiffContent(), TextPassDumper\getText(), TextContent\getWikitextForTransclusion(), FixDefaultJsonContentPages\handleRow(), MediaWikiTestCase\isWikitextNS(), Title\isWikitextPage(), PreprocessDump\processRevision(), CompareParsers\processRevision(), ContentHandlerTest\provideGetModelForID(), WikiPageTest\provideGetParserOutput(), WikiPageTest\provideGetRedirectTarget(), WikiPageTest\provideIsCountable(), ContentHandlerTest\setUp(), TextContentTest\setUp(), WikitextContentHandlerTest\setUp(), TestPageProps\setUp(), RevisionStorageTest\setUp(), PageArchiveTest\setUp(), SimpleCaptcha\shouldCheck(), WikiPageTest\testDoDeleteArticle(), WikiPageTest\testDoDeleteUpdates(), WikiPageTest\testDoEditContent(), WikiPageTest\testExists(), RevisionStorageTest\testFetchRevision(), ContentHandlerTest\testGetAutosummary(), WikiPageTest\testGetContent(), WikiPageTestContentHandlerUseDB\testGetContentModel(), RevisionTest\testGetContentUncloned(), ContentHandlerTest\testGetFieldsForSearchIndex(), RevisionStorageTest\testGetNext(), RevisionStorageTest\testGetPrevious(), WikiPageTest\testGetRevision(), WikiPageTest\testHasViewableContent(), RevisionStorageTest\testIsCurrent(), RevisionStorageTest\testNewFromArchiveRow(), RevisionStorageTest\testNewNullRevision(), ContentHandlerTest\testSupportsCategories(), and RevisionStorageTest\testUserWasLastToEdit().

◆ EDIT_AUTOSUMMARY

const EDIT_AUTOSUMMARY 64

◆ EDIT_DEFER_UPDATES

const EDIT_DEFER_UPDATES 32

Definition at line 158 of file Defines.php.

◆ EDIT_FORCE_BOT

◆ EDIT_INTERNAL

◆ EDIT_MINOR

◆ EDIT_NEW

◆ EDIT_SUPPRESS_RC

◆ EDIT_TOKEN_SUFFIX

const EDIT_TOKEN_SUFFIX Token::SUFFIX

String Some punctuation to prevent editing from broken text-mangling proxies.

Deprecated:
since 1.27, use \MediaWiki\Session\Token::SUFFIX

Definition at line 39 of file User.php.

◆ EDIT_UPDATE

◆ LIST_AND

const LIST_AND IDatabase::LIST_AND

Definition at line 44 of file Defines.php.

Referenced by SpecialRecentChanges\__construct(), LinksDeletionUpdate\batchDeleteByPK(), FindOrphanedFiles\checkFiles(), Wikimedia\Rdbms\Database\conditional(), PrefixSearch\defaultSearchBackend(), Wikimedia\Rdbms\Database\delete(), Wikimedia\Rdbms\DatabaseMysqlBase\deleteJoin(), Wikimedia\Rdbms\Database\deleteJoin(), PurgeModuleDeps\execute(), CleanupRemovedModules\execute(), BatchedQueryRunner\execute(), ChangesListSpecialPage\filterOnUserExperienceLevel(), LocalRepo\findFiles(), WatchedItemQueryService\getFromUntilTargetConds(), Wikimedia\Rdbms\DatabaseMysqlBase\getHeartbeatData(), WatchedItemQueryServiceUnitTest\getMockDb(), Block\getRangeCond(), WatchedItemQueryService\getStartFromConds(), WatchedItemStore\getVisitingWatchersCondition(), MigrateComments\loadCommentIDs(), Wikimedia\Rdbms\Database\makeGroupByWithHaving(), Wikimedia\Rdbms\Database\makeList(), Wikimedia\Rdbms\Database\makeWhereFrom2d(), DatabaseSQLTest\provideMakeList(), SpecialWatchlist\registerFilters(), 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 43 of file Defines.php.

Referenced by DatabaseSQLTest\provideMakeList().

◆ LIST_NAMES

const LIST_NAMES IDatabase::LIST_NAMES

◆ LIST_OR

◆ LIST_SET

◆ MIGRATION_NEW

◆ MIGRATION_OLD

const MIGRATION_OLD 0

Schema change migration flags.

Used as values of a feature flag for an orderly transition from an old schema to a new schema.

  • 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 293 of file Defines.php.

Referenced by CommentStore\createComment(), LocalFileDeleteBatch\doDBDeletes(), LocalFileDeleteBatch\doDBInserts(), WikiPage\doDeleteArticleReal(), CommentStore\getCommentInternal(), CommentStore\getFields(), CommentStore\getJoin(), WatchedItemQueryServiceUnitTest\getWatchedItemsWithRecentChangeInfoOptionsProvider(), CommentStoreTest\provideGetFields(), CommentStoreTest\provideGetJoin(), CommentStoreTest\provideStages(), LocalFile\recordUpload2(), CommentStoreTest\testGetCommentErrors(), and CommentStoreTest\testInsertRoundTrip().

◆ 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 133 of file Defines.php.

◆ MW_DATE_DMY

const MW_DATE_DMY 'dmy'

Definition at line 135 of file Defines.php.

◆ MW_DATE_ISO

const MW_DATE_ISO 'ISO 8601'

Definition at line 137 of file Defines.php.

◆ MW_DATE_MDY

const MW_DATE_MDY 'mdy'

Definition at line 134 of file Defines.php.

◆ MW_DATE_YMD

const MW_DATE_YMD 'ymd'

Definition at line 136 of file Defines.php.

◆ MW_EDITFILTERMERGED_SUPPORTS_API

const MW_EDITFILTERMERGED_SUPPORTS_API 1

Definition at line 169 of file Defines.php.

◆ MW_SUPPORTS_CONTENTHANDLER

const MW_SUPPORTS_CONTENTHANDLER 1

Definition at line 168 of file Defines.php.

◆ MW_SUPPORTS_LOCALISATIONCACHE

const MW_SUPPORTS_LOCALISATIONCACHE 1

Definition at line 167 of file Defines.php.

◆ MW_SUPPORTS_PARSERFIRSTCALLINIT

const MW_SUPPORTS_PARSERFIRSTCALLINIT 1

Hook support constants

Definition at line 166 of file Defines.php.

◆ NS_CATEGORY

const NS_CATEGORY 14

Definition at line 79 of file Defines.php.

Referenced by UncategorizedCategoriesPage\__construct(), CategoryPager\__construct(), DumpNamespaceFilter\__construct(), OutputPage\addCategoryLinks(), OutputPage\addCategoryLinksToLBAndGetResult(), ParserOutput\addTrackingCategory(), LinksUpdateTest\assertRecentChangeByCategorization(), SkinTemplate\buildNavUrls(), Title\checkQuickPermissions(), CategoryViewer\doCategoryQuery(), SpecialRecentChangesLinked\doMainQuery(), LinksDeletionUpdate\doUpdate(), LinkHolderArray\doVariants(), ApiQueryCategoryInfo\execute(), RefreshLinks\execute(), UpdateCollation\execute(), WikiPage\factory(), ApiParse\formatCategoryLinks(), UnusedCategoriesPage\formatResult(), MostlinkedCategoriesPage\formatResult(), UncategorizedCategoriesPage\formatResult(), CategoryPager\formatRow(), TitleValueTest\fragmentTitleProvider(), MediaWiki\Widget\Search\FullSearchResultWidget\generateSizeHtml(), CategoryPager\getBody(), Skin\getCategories(), WikiPage\getCategories(), LinksUpdate\getCategoryInsertions(), DumpCategoriesAsRdf\getCategoryIterator(), Skin\getCategoryLinks(), MediaWikiTestCase\getDefaultWikitextNS(), UncategorizedCategoriesPage\getExceptionList(), WikiFilePage\getForeignCategories(), SpecialRandomInCategory\getFormFields(), WikiPage\getHiddenCategories(), WantedFilesPage\getPageHeader(), Title\getParentCategories(), WantedCategoriesPage\getQueryInfo(), UnusedCategoriesPage\getQueryInfo(), MostlinkedCategoriesPage\getQueryInfo(), CategoryPager\getStartForm(), Category\getTitle(), TrackingCategories\getTrackingCategories(), LinksUpdate\invalidateCategories(), SearchHighlighter\linkReplace(), WikitextContentHandler\makeRedirectContent(), MovePage\move(), MovePage\moveToInternal(), Category\newFromName(), Article\newFromTitle(), CategoryMembershipChangeJob\notifyUpdatesForRevision(), WikiPage\onArticleCreate(), SpecialRandomInCategory\onSubmit(), InfoAction\pageInfo(), CoreParserFunctions\pagesincategory(), TitleTest\provideCreateFragmentTitle(), MediaWikiTitleCodecTest\provideParseTitle(), ApiQueryTest\provideTestTitlePartToKey(), Category\refreshCounts(), ApiQueryCategories\run(), ApiQueryAllCategories\run(), ApiQueryCategoryMembers\run(), CategoryFinder\scanNextLayer(), CategoryFinder\seed(), MovePageForm\showForm(), CologneBlueTemplate\talkLink(), ApiQueryWatchlistIntegrationTest\testCategorizeTypeParameter(), CategoryMembershipChangeTest\testChangeAddedNoRev(), CategoryMembershipChangeTest\testChangeAddedWithRev(), CategoryMembershipChangeTest\testChangeRemovedNoRev(), CategoryMembershipChangeTest\testChangeRemovedWithRev(), MWNamespaceTest\testGetContentNamespaces(), WikiCategoryPageTest\testHiddenCategory_PropertyIsSet(), WikiCategoryPageTest\testHiddenCategory_PropertyNotSet(), RecentChangeTest\testHiddenCategoryChange(), MWNamespaceTest\testIsContent(), ApiQueryAllPagesTest\testPrefixNormalizationSearchBug(), ExtraParserTest\testTrackingCategory(), Title\touchLinks(), WikiPage\updateCategoryCounts(), CategoryPage\view(), CategoriesRdf\writeCategoryData(), and CategoriesRdf\writeCategoryLinkData().

◆ NS_CATEGORY_TALK

const NS_CATEGORY_TALK 15

Definition at line 80 of file Defines.php.

Referenced by DumpNamespaceFilter\__construct(), and EditPage\incrementConflictStats().

◆ NS_FILE

const NS_FILE 6

Definition at line 71 of file Defines.php.

Referenced by FakeDimensionFile\__construct(), ApiQueryAllLinks\__construct(), DumpNamespaceFilter\__construct(), FileRepo\__construct(), ParserOutput\addLink(), UploadForm\addUploadJS(), ImageCleanup\buildSafeTitle(), RevertAction\checkCanExecute(), FindOrphanedFiles\checkFiles(), Title\checkQuickPermissions(), LocalRepo\checkRedirect(), UploadFromUrlTest\deleteFile(), ApiTestCaseUpload\deleteFileByFileName(), ApiTestCaseUpload\deleteFileByTitle(), SpecialRedirect\dispatchFile(), CategoryViewer\doCategoryQuery(), SpecialNuke\doDelete(), WikiPage\doDeleteUpdates(), SpecialRecentChangesLinked\doMainQuery(), MovePageForm\doSubmit(), ApiMove\execute(), FindMissingFiles\execute(), ApiQueryFilearchive\execute(), ApiDelete\execute(), ApiQueryImageInfo\execute(), DeleteBatch\execute(), UpdateCollation\execute(), FileDuplicateSearchPage\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(), LinksUpdate\getCategoryInsertions(), ApiUpload\getChunkResult(), FileContentHandler\getDataForSearchIndex(), WikitextContentHandler\getDataForSearchIndex(), MediaWikiTestCase\getDefaultWikitextNS(), ForeignDBFile\getDescriptionShortUrl(), ForeignDBFile\getDescriptionText(), EditPage\getEditToolbar(), WANCacheReapUpdate\getEventAffectedKeys(), SpecialWhatLinksHere\getFilterPanel(), ImagePageTest\getImagePage(), ImagePage404Test\getImagePage(), FileRepo\getNameFromTitle(), SearchNearMatcher\getNearMatchInternal(), ApiImageRotate\getPageSet(), ApiQueryInfo\getProtectionInfo(), MostimagesPage\getQueryInfo(), UnusedimagesPage\getQueryInfo(), UncategorizedImagesPage\getQueryInfo(), MIMEsearchPage\getQueryInfo(), ListDuplicatedFilesPage\getQueryInfo(), NewFilesPager\getQueryInfo(), WantedFilesPage\getQueryInfo(), File\getRedirectedTitle(), WikiFilePage\getRedirectTarget(), Title\getRestrictionTypes(), SpecialSearch\getSearchProfiles(), SpecialUpload\getUploadForm(), SpecialUpload\getWatchCheck(), SearchHighlighter\highlightText(), ImagePage\imageLinks(), SearchResult\initFromTitle(), EditPage\internalAttemptSave(), LinksUpdate\invalidateImageDescriptions(), Title\isAlwaysKnown(), LinkCache\isCacheable(), MWNamespace\isCapitalized(), Title\isDeleted(), Title\isDeletedQuick(), MWNamespace\isMovable(), MovePage\isValidFileMove(), MovePage\isValidMove(), MovePage\isValidMoveTarget(), Title\isValidMoveTarget(), SearchHighlighter\linkReplace(), PageArchive\listFiles(), SpecialNuke\listForm(), ArchivedFile\load(), ArchivedFile\loadFromRow(), Linker\makeThumbLink2(), MovePage\move(), ForeignDBFile\newFromRow(), OldLocalFile\newFromRow(), LocalFile\newFromRow(), ArchivedFile\newFromRow(), Article\newFromTitle(), SearchEngine\normalizeNamespaces(), File\normalizeTitle(), WikiPage\onArticleDelete(), ImageQueryPage\outputResults(), ImageCleanup\pageExists(), InfoAction\pageInfo(), MediaWiki\parseTitle(), ApiUpload\performUpload(), ImageCleanup\pokeFile(), FileDuplicateSearchPage\prefixSearchSubpages(), TitleCleanup\processRow(), ImageCleanup\processRow(), LanguageTest\provideGetNamespaceAliases(), SpecialShortpagesTest\provideGetQueryInfoRespectsContentNs(), UploadLogFormatterTest\provideOverwriteLogDatabaseRows(), MediaWikiTitleCodecTest\provideParseTitle(), UploadLogFormatterTest\provideRevertLogDatabaseRows(), TestSample\provideTitles(), UploadLogFormatterTest\provideUploadLogDatabaseRows(), PurgeChangedFiles\purgeFromLogType(), LinksUpdate\queueRecursiveJobs(), Category\refreshCounts(), ImageMap\render(), ApiQueryImages\run(), ApiQueryDuplicateFiles\run(), ApiQueryAllImages\run(), ApiQueryBacklinks\run(), ApiQueryBacklinks\runSecondQuery(), PrefixSearch\searchBackend(), UploadFromUrlTestSuite\setUp(), SpecialWhatLinksHere\showIndirectLinks(), EditPage\showIntro(), Article\showPatrolFooter(), SpecialSearch\showResults(), SpecialUpload\showUploadWarning(), SpecialUpload\showViewDeletedLinks(), MediaWiki\Widget\Search\SearchFormWidget\startsWithImage(), CologneBlueTemplate\talkLink(), WikitextContentHandlerTest\testDataIndexFieldsFile(), MWNamespaceTest\testIsCapitalizedHardcodedAssertions(), TitlePermissionTest\testQuickPermissions(), TraditionalImageGallery\toHTML(), PageArchive\undelete(), SpecialUndelete\undelete(), PageArchive\undeleteRevisions(), WikiPage\updateCategoryCounts(), 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

Definition at line 78 of file Defines.php.

Referenced by DumpNamespaceFilter\__construct().

◆ 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 92 of file Defines.php.

Referenced by DumpNamespaceFilter\__construct().

◆ NS_IMAGE_TALK

const NS_IMAGE_TALK NS_FILE_TALK
Deprecated:
since 1.14

Definition at line 96 of file Defines.php.

Referenced by DumpNamespaceFilter\__construct().

◆ 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 bug #696 which talked about that.

Definition at line 65 of file Defines.php.

Referenced by DumpNamespaceFilter\__construct(), BackupDumperLoggerTest\addDBData(), PrefixSearchTest\addDBDataOnce(), SearchEnginePrefixTest\addDBDataOnce(), SearchEngineTest\addDBDataOnce(), TitleValueTest\badConstructorProvider(), buildCommonApiParams(), Title\canExist(), TextPassDumperDatabaseTest\checkpointHelper(), Title\checkReadPermissions(), Title\checkSpecialsAndNSPermissions(), ApiPageSetTest\createPageSetWithRedirect(), PrefixSearch\defaultSearchBackend(), SpecialLog\execute(), WithoutInterwikiPage\execute(), SpecialExport\execute(), LogFormatterTestCase\expandDatabaseRow(), PrefixSearch\extractNamespace(), SearchEngineTest\fetchIds(), TitleValueTest\fragmentTitleProvider(), ParserFuzzTest\fuzzTest(), ApiQueryAllPages\getAllowedParams(), ApiQueryDeletedrevs\getAllowedParams(), MWNamespace\getCanonicalNamespaces(), MWNamespace\getContentNamespaces(), MediaWikiTestCase\getDefaultWikitextNS(), Linker\getInvalidTitleDescription(), EditWatchlistNormalHTMLForm\getLegend(), SpecialEditWatchlist\getNormalForm(), RandomPage\getNsList(), WantedFilesPage\getPageHeader(), MWNamespace\getSubject(), NamespaceConflictChecker\getTargetList(), User\getTokenUrl(), MWNamespace\hasTalkNamespace(), EditPage\incrementConflictStats(), Title\isAlwaysKnown(), MWNamespace\isContent(), MWNamespace\isMethodValidFor(), MWNamespace\isMovable(), MWNamespace\isTalk(), MWNamespace\isWatchable(), MediaWiki\main(), Html\namespaceSelectorOptions(), Title\newFromTextThrow(), SearchEngine\normalizeNamespaces(), SpecialListGroupRights\outputNamespaceProtectionInfo(), TitleTest\provideCreateFragmentTitle(), DeleteLogFormatterTest\provideDeleteLogDatabaseRows(), DeleteLogFormatterTest\provideEventLogDatabaseRows(), MediaWikiTitleCodecTest\provideFormat(), MediaWikiTitleCodecTest\provideGetFullText(), MediaWikiTitleCodecTest\provideGetNamespaceName(), MediaWikiTitleCodecTest\provideGetPrefixedDBkey(), TitleTest\provideGetPrefixedDBKey(), MediaWikiTitleCodecTest\provideGetPrefixedText(), TitleTest\provideGetPrefixedText(), SpecialShortpagesTest\provideGetQueryInfoRespectsContentNs(), TitleTest\provideGetTalkPage_good(), MediaWikiTitleCodecTest\provideGetText(), TitleMethodsTest\provideHasSubjectNamespace(), MWNamespaceTest\provideHasTalkNamespace(), TitleMethodsTest\provideInNamespace(), ImportLogFormatterTest\provideInterwikiLogDatabaseRows(), TitleTest\provideIsValid(), WikitextContentHandlerTest\provideMakeRedirectContent(), MergeLogFormatterTest\provideMergeLogDatabaseRows(), ProtectLogFormatterTest\provideModifyLogDatabaseRows(), MoveLogFormatterTest\provideMoveLogDatabaseRows(), ProtectLogFormatterTest\provideMoveProtLogDatabaseRows(), MoveLogFormatterTest\provideMoveRedirLogDatabaseRows(), TitleTest\provideNewFromTitleValue(), PageLangLogFormatterTest\providePageLangLogDatabaseRows(), MediaWikiTitleCodecTest\provideParseTitle(), PatrolLogFormatterTest\providePatrolLogDatabaseRows(), ProtectLogFormatterTest\provideProtectLogDatabaseRows(), DeleteLogFormatterTest\provideRestoreLogDatabaseRows(), DeleteLogFormatterTest\provideRevisionLogDatabaseRows(), PrefixSearchTest\provideSearch(), DeleteLogFormatterTest\provideSuppressDeleteLogDatabaseRows(), DeleteLogFormatterTest\provideSuppressEventLogDatabaseRows(), DeleteLogFormatterTest\provideSuppressRevisionLogDatabaseRows(), ApiQueryTest\provideTestTitlePartToKey(), ProtectLogFormatterTest\provideUnprotectLogDatabaseRows(), ImportLogFormatterTest\provideUploadLogDatabaseRows(), GlobalWithDBTest\provideWfIsBadImageList(), SearchExactMatchRescorer\rescore(), SearchEngineConfig\searchableNamespaces(), Title\secureAndSplit(), RandomPage\setNamespace(), WikiImporter\setTargetRootPage(), MWNamespaceTest\setUp(), ArticleTest\setUp(), TitlePermissionTest\setUp(), PrefixSearchTest\setUp(), SearchEnginePrefixTest\setUp(), SpecialAllPages\showChunk(), SpecialPrefixindex\showPrefixChunk(), MediaWikiTitleCodec\splitTitleString(), CologneBlueTemplate\talkLink(), TitlePermissionTest\testActionPermissions(), TitlePermissionTest\testCascadingSourcesRestrictions(), ContentHandlerTest\testDataIndexFields(), MWNamespaceTest\testEquals(), SpecialMyLanguageTest\testFindTitle(), MediaWikiTitleCodecTest\testFormat(), MWNamespaceTest\testGetAssociated(), ResourceLoaderWikiModuleTest\testGetContent(), MWNamespaceTest\testGetContentNamespaces(), ParserOutputSearchDataExtractorTest\testGetOutgoingLinks(), MWNamespaceTest\testGetSubject(), MWNamespaceTest\testGetSubjectNamespaces(), MWNamespaceTest\testGetTalk(), MWNamespaceTest\testGetTalkNamespaces(), TitleValueTest\testGetText(), MWNamespaceTest\testHasGenderDistinction(), MWNamespaceTest\testHasSubpages(), TitleMethodsTest\testInNamespaces(), TitleTest\testIsAlwaysKnownOnInterwiki(), MWNamespaceTest\testIsContent(), MWNamespaceTest\testIsContentAdvanced(), MWNamespaceTest\testIsSubject(), MWNamespaceTest\testIsTalk(), MWNamespaceTest\testIsWatchable(), TitlePermissionTest\testPageRestrictions(), ContentHandlerTest\testParserOutputForIndexing(), MediaWikiTitleCodecTest\testParseTitle(), MediaWikiTitleCodecTest\testParseTitle_invalid(), TextPassDumperDatabaseTest\testPlain(), TextPassDumperDatabaseTest\testPrefetchPlain(), TitlePermissionTest\testQuickPermissions(), ChangesListSpecialPageTest\testRcNsFilter(), ChangesListSpecialPageTest\testRcNsFilterInversion(), TitlePermissionTest\testSpecialsAndNSPermissions(), MWNamespaceTest\testSubjectEquals(), LinksUpdateTest\testUpdate_iwlinks(), LinksUpdateTest\testUpdate_pagelinks(), PrefixSearch\validateNamespaces(), and SpecialEditWatchlist\watchTitles().

◆ NS_MEDIA

const NS_MEDIA -2

Virtual namespaces; don't appear in the page database

Definition at line 53 of file Defines.php.

Referenced by ParserOutput\addLink(), WikiPage\factory(), Linker\formatLinksInComment(), ApiQueryLinks\getAllowedParams(), ApiQueryAllLinks\getAllowedParams(), ApiQueryLogEvents\getAllowedParams(), ApiQueryRecentChanges\getAllowedParams(), EditPage\getEditToolbar(), SearchNearMatcher\getNearMatchInternal(), MediaStatisticsPage\getQueryInfo(), ExtParserFunctions\ifexistCommon(), Title\isAlwaysKnown(), MWNamespace\isCapitalized(), Article\newFromTitle(), SearchEngine\normalizeNamespaces(), File\normalizeTitle(), MediaWiki\parseTitle(), TitleTest\provideCanHaveTalkPage(), TitleTest\provideGetPrefixedDBKey(), TitleTest\provideGetPrefixedText(), TitleTest\provideGetTalkPage_bad(), MWNamespaceTest\provideHasTalkNamespace(), TestSample\provideTitles(), ImageMap\render(), PrefixSearch\searchBackend(), TitlePermissionTest\testActionPermissions(), MWNamespaceTest\testGetAssociatedExceptionsForNsMedia(), MWNamespaceTest\testGetSubject(), MWNamespaceTest\testGetSubjectNamespaces(), MWNamespaceTest\testGetTalkExceptionsForNsMedia(), MWNamespaceTest\testGetTalkNamespaces(), MWNamespaceTest\testHasGenderDistinction(), MWNamespaceTest\testHasSubpages(), MWNamespaceTest\testIsCapitalizedHardcodedAssertions(), MWNamespaceTest\testIsContent(), MWNamespaceTest\testIsSubject(), MWNamespaceTest\testIsTalk(), MWNamespaceTest\testIsWatchable(), MWNamespaceTest\testSpecialAndMediaAreDifferentSubjects(), TestSample\testTitleObjectStringConversion(), and CoreParserFunctions\urlFunction().

◆ NS_MEDIAWIKI

const NS_MEDIAWIKI 8

Definition at line 73 of file Defines.php.

Referenced by DumpNamespaceFilter\__construct(), AllMessagesTablePager\__construct(), SkinTemplate\buildContentNavigationUrls(), Title\checkSpecialsAndNSPermissions(), TitleBlacklistHooks\clearBlacklist(), FixDefaultJsonContentPages\doDBUpdates(), WikiPage\doEditUpdates(), WikiPage\doPurge(), ApiEditPage\execute(), DeleteDefaultMessages\execute(), ImportSiteScripts\execute(), UpdateRestrictions\execute(), NukeNS\execute(), DeleteEqualMessages\execute(), MediaWikiGadgetsDefinitionRepo\fetchStructuredList(), AllMessagesTablePager\formatValue(), TitleBlacklist\getBlacklistText(), Article\getContentObject(), EditPage\getContentObject(), AllMessagesTablePager\getCustomisedStatuses(), Title\getDefaultMessageText(), ContentHandler\getDefaultModelFor(), MediaWikiTestCase\getDefaultWikitextNS(), MessageCache\getMsgFromNamespace(), SearchNearMatcher\getNearMatchInternal(), ContentHandler\getPageLanguage(), ContentHandler\getPageViewLanguage(), WantedPagesPage\getQueryInfo(), UnwatchedpagesPage\getQueryInfo(), RawAction\getRawText(), TrackingCategories\getTrackingCategories(), Title\hasSourceText(), EditPage\internalAttemptSave(), Title\isAlwaysKnown(), Title\isConversionTable(), Title\isCssOrJsPage(), BaseBlacklist\isLocalSource(), ChangeTags\isTagNameValid(), MessageCache\loadFromDB(), MessageCacheTest\makePage(), ConfirmEditHooks\onAlternateEditPreview(), WikiPage\onArticleDelete(), CiteHooks\onContentHandlerDefaultModelFor(), GadgetHooks\onPageContentSaveComplete(), ConfirmEditHooks\onPageContentSaveComplete(), ResourceLoaderWikiModuleTest\provideGetContent(), MessageCache\replace(), EditPage\setHeaders(), UploadFromUrlTestSuite\setUp(), TitlePermissionTest\setUp(), EditPage\showDiff(), EditPage\showIntro(), SpecialGadgets\showMainForm(), Article\showMissingArticle(), CologneBlueTemplate\talkLink(), ResourceLoaderWikiModuleTest\testGetContentForRedirects(), MWNamespaceTest\testIsCapitalizedHardcodedAssertions(), MWNamespaceTest\testIsCapitalizedWithWgCapitalLinkOverrides(), MWNamespaceTest\testIsCapitalizedWithWgCapitalLinks(), TitlePermissionTest\testSpecialsAndNSPermissions(), and TitleBlacklistHooks\validateBlacklist().

◆ NS_MEDIAWIKI_TALK

◆ NS_PROJECT

◆ NS_PROJECT_TALK

◆ NS_SPECIAL

const NS_SPECIAL -1

Definition at line 54 of file Defines.php.

Referenced by JobSpecification\__construct(), ParserOutput\addLink(), LinkCache\addLinkObj(), RCCacheEntryFactory\buildCLink(), SearchEngine\completionSearchBackend(), PrefixSearch\defaultSearchBackend(), CdnCacheUpdate\doUpdate(), LinkHolderArray\doVariants(), TidyUpBug37714\execute(), Title\fixSpecialName(), MediaWiki\Widget\Search\InterwikiSearchResultSetWidget\footerHtml(), OldChangesList\formatChangeLine(), ApiQueryLinks\getAllowedParams(), ApiQueryAllLinks\getAllowedParams(), ApiQueryLogEvents\getAllowedParams(), ApiQueryRecentChanges\getAllowedParams(), RCCacheEntryFactoryTest\getContext(), ApiErrorFormatter\getDummyTitle(), OutputPage\getJSVars(), IRCColourfulRCFeedFormatter\getLine(), ApiStructureTest\getMain(), ChangesListSpecialPageTest\getPage(), SpecialPage\getSafeTitleFor(), TestRecentChangesHelper\getTestContext(), SpecialPageTest\getTitleForWithWarningProvider(), SpecialPage\getTitleValueFor(), MediaWiki\Widget\Search\SimpleSearchResultSetWidget\headerHtml(), ExtParserFunctions\ifexistCommon(), Title\isAlwaysKnown(), Title\isSpecialPage(), MediaWiki\main(), MediaWiki\Linker\LinkRenderer\makeBrokenLink(), EnqueueJob\newFromJobsByWiki(), Linker\normaliseSpecialPage(), MessageCache\parse(), ApiPageSet\populateGeneratorData(), Title\prefix(), ApiPageSet\processTitlesArray(), TitleTest\provideCanHaveTalkPage(), TitleTest\provideGetTalkPage_bad(), MWNamespaceTest\provideHasTalkNamespace(), ImageMap\render(), LinkHolderArray\replaceInternal(), PrefixSearch\searchBackend(), SpecialMIMESearchTest\setUp(), CoreParserFunctions\special(), PrefixSearch\specialSearch(), MediaWikiTitleCodec\splitTitleString(), CologneBlueTemplate\talkLink(), MWNamespaceTest\testEquals(), MWNamespaceTest\testGetAssociatedExceptionsForNsSpecial(), MWNamespaceTest\testGetSubject(), MWNamespaceTest\testGetSubjectNamespaces(), MWNamespaceTest\testGetTalkExceptionsForNsSpecial(), MWNamespaceTest\testGetTalkNamespaces(), SpecialPageTest\testGetTitleFor(), SpecialPageFactoryTest\testGetTitleForAlias(), MWNamespaceTest\testHasGenderDistinction(), MWNamespaceTest\testHasSubpages(), SpecialPageTest\testInvalidGetTitleFor(), MWNamespaceTest\testIsCapitalizedHardcodedAssertions(), MWNamespaceTest\testIsCapitalizedWithWgCapitalLinkOverrides(), MWNamespaceTest\testIsCapitalizedWithWgCapitalLinks(), MWNamespaceTest\testIsContent(), MWNamespaceTest\testIsMovable(), MWNamespaceTest\testIsSubject(), MWNamespaceTest\testIsTalk(), MWNamespaceTest\testIsWatchable(), SpecialSearchTest\testRewriteQueryWithSuggestion(), MWNamespaceTest\testSpecialAndMediaAreDifferentSubjects(), TitlePermissionTest\testSpecialsAndNSPermissions(), MWNamespaceTest\testSubjectEquals(), and SkinTemplate\wrapHTML().

◆ NS_TALK

const NS_TALK 1

Definition at line 66 of file Defines.php.

Referenced by DumpNamespaceFilter\__construct(), BackupDumperPageTest\addDBData(), TextPassDumperDatabaseTest\addDBData(), BackupDumperLoggerTest\addDBData(), TextPassDumperDatabaseTest\checkpointHelper(), TitleValueTest\fragmentTitleProvider(), NamespaceConflictChecker\getDestinationTitle(), NamespaceConflictChecker\getTargetList(), TitleTest\provideCanHaveTalkPage(), TitleTest\provideCreateFragmentTitle(), SpecialShortpagesTest\provideGetQueryInfoRespectsContentNs(), TitleTest\provideGetTalkPage_good(), TitleMethodsTest\provideHasSubjectNamespace(), MWNamespaceTest\provideHasTalkNamespace(), TitleMethodsTest\provideInNamespace(), MediaWikiTitleCodecTest\provideParseTitle(), MWNamespaceTest\setUp(), MediaWikiTitleCodec\splitTitleString(), MWNamespaceTest\testEquals(), MWNamespaceTest\testGetAssociated(), MWNamespaceTest\testGetSubject(), MWNamespaceTest\testGetSubjectNamespaces(), MWNamespaceTest\testGetTalk(), MWNamespaceTest\testGetTalkNamespaces(), MWNamespaceTest\testHasGenderDistinction(), MWNamespaceTest\testHasSubpages(), MWNamespaceTest\testIsContent(), MWNamespaceTest\testIsSubject(), MWNamespaceTest\testIsTalk(), MWNamespaceTest\testIsWatchable(), TextPassDumperDatabaseTest\testPlain(), BackupDumperLoggerTest\testPlain(), TextPassDumperDatabaseTest\testPrefetchPlain(), TitlePermissionTest\testQuickPermissions(), MWNamespaceTest\testSubjectEquals(), LinksUpdateTest\testUpdate_pagelinks(), and BackupDumperLoggerTest\testXmlDumpsBackupUseCaseLogging().

◆ NS_TEMPLATE

◆ NS_TEMPLATE_TALK

const NS_TEMPLATE_TALK 11

Definition at line 76 of file Defines.php.

Referenced by DumpNamespaceFilter\__construct().

◆ NS_USER

const NS_USER 2

Definition at line 67 of file Defines.php.

Referenced by DumpNamespaceFilter\__construct(), UsersPager\__construct(), ActiveUsersPager\__construct(), ImageListPager\__construct(), SpecialEditWatchlist\buildRemoveLine(), Title\checkQuickPermissions(), RenameUserCleanup\checkRenameLog(), SpecialContributions\contributionsSub(), SpecialRedirect\dispatchUser(), FileDuplicateSearchPage\doBatchLookups(), UsersPager\doBatchLookups(), ContribsPager\doBatchLookups(), HistoryPager\doBatchLookups(), FixDefaultJsonContentPages\doDBUpdates(), UserCache\doQuery(), SpecialRenameuser\execute(), SpecialLog\execute(), SpecialContributions\execute(), ApiFeedContributions\execute(), ApiQueryAllUsers\execute(), ChangesListSpecialPage\execute(), ShiConverter\findVariantLink(), SrConverter\findVariantLink(), IuConverter\findVariantLink(), KuConverter\findVariantLink(), KkConverter\findVariantLink(), SpecialNewpages\form(), MIMEsearchPage\formatResult(), ImageListPager\formatValue(), CoreParserFunctions\gender(), Preferences\generateSkinOptions(), ImageHistoryPseudoPager\getBody(), User\getCanonicalName(), ContentHandler\getDefaultModelFor(), MediaWikiTestCase\getDefaultWikitextNS(), WANCacheReapUpdate\getEventAffectedKeys(), RenameuserLogFormatter\getMessageParameters(), SearchNearMatcher\getNearMatchInternal(), RenameuserLogFormatter\getPreloadTitles(), NewPagesPager\getQueryInfo(), WantedPagesPage\getQueryInfo(), ActiveUsersPager\getQueryInfo(), SpecialMypage\getRedirect(), Skin\getRelevantUser(), Article\getRobotPolicy(), MergeHistoryPager\getStartBody(), NewPagesPager\getStartBody(), LogPager\getStartBody(), DeletedContributionsPage\getSubTitle(), SpecialBlock\getTargetUserTitle(), UserRightsProxy\getUserPage(), User\getUserPage(), TitleValueTest\goodConstructorProvider(), MWNamespace\hasGenderDistinction(), User\idFromName(), EditPage\importFormData(), Title\isCssJsSubpage(), Title\isCssSubpage(), Title\isJsSubpage(), LogPager\limitPerformer(), Language\needsGenderDistinction(), RenameuserHooks\onShowMissingArticle(), InfoAction\pageInfo(), ProtectedPagesPager\preprocessResults(), BlockListPager\preprocessResults(), SpecialBlock\processForm(), SpecialUnblock\processUnblock(), NewUsersLogFormatterTest\provideAutocreateLogDatabaseRows(), RightsLogFormatterTest\provideAutopromoteLogDatabaseRows(), BlockLogFormatterTest\provideBlockLogDatabaseRows(), NewUsersLogFormatterTest\provideByemailLogDatabaseRows(), TitleTest\provideCanHaveTalkPage(), NewUsersLogFormatterTest\provideCreate2LogDatabaseRows(), NewUsersLogFormatterTest\provideCreateLogDatabaseRows(), MediaWikiTitleCodecTest\provideFormat(), MediaWikiTitleCodecTest\provideGetFullText(), MediaWikiTitleCodecTest\provideGetNamespaceName(), MediaWikiTitleCodecTest\provideGetPrefixedDBkey(), TitleTest\provideGetPrefixedDBKey(), MediaWikiTitleCodecTest\provideGetPrefixedText(), TitleTest\provideGetPrefixedText(), MediaWikiTitleCodecTest\provideGetText(), TitleMethodsTest\provideHasSubjectNamespace(), MWNamespaceTest\provideHasTalkNamespace(), TitleMethodsTest\provideInNamespace(), TitleTest\provideNewFromTitleValue(), NewUsersLogFormatterTest\provideNewUsersLogDatabaseRows(), MediaWikiTitleCodecTest\provideParseTitle(), BlockLogFormatterTest\provideReblockLogDatabaseRows(), RightsLogFormatterTest\provideRightsLogDatabaseRows(), BlockLogFormatterTest\provideSuppressBlockLogDatabaseRows(), BlockLogFormatterTest\provideSuppressReblockLogDatabaseRows(), TestSample\provideTitles(), BlockLogFormatterTest\provideUnblockLogDatabaseRows(), RenameuserSQL\rename(), MWNamespaceTest\setUp(), RevisionDeleteUser\setUsernameBitfields(), MovePageForm\showForm(), SpecialUndelete\showHistory(), EditPage\showIntro(), Article\showMissingArticle(), Preferences\skinPreferences(), MediaWikiTitleCodec\splitTitleString(), CologneBlueTemplate\talkLink(), TitlePermissionTest\testCssAndJavascriptPermissions(), MWNamespaceTest\testEquals(), MWNamespaceTest\testGetContentNamespaces(), MWNamespaceTest\testGetSubject(), MWNamespaceTest\testGetTalk(), MWNamespaceTest\testHasGenderDistinction(), MWNamespaceTest\testHasSubpages(), TitleMethodsTest\testInNamespaces(), MWNamespaceTest\testIsCapitalizedHardcodedAssertions(), MWNamespaceTest\testIsCapitalizedWithWgCapitalLinkOverrides(), MWNamespaceTest\testIsCapitalizedWithWgCapitalLinks(), MWNamespaceTest\testIsContent(), MWNamespaceTest\testIsNonincludable(), MWNamespaceTest\testIsSubject(), MWNamespaceTest\testIsTalk(), TitlePermissionTest\testQuickPermissions(), TitlePermissionTest\testSpecialsAndNSPermissions(), MWNamespaceTest\testSubjectEquals(), TitleBlacklistHooks\testUserName(), RecentChangesUpdateJob\updateActiveUsers(), Linker\userLink(), and ApiBase\validateUser().

◆ NS_USER_TALK

const NS_USER_TALK 3

Definition at line 68 of file Defines.php.

Referenced by DumpNamespaceFilter\__construct(), EmailNotification\actuallyNotifyOnPageChange(), EmailNotification\canSendUserTalkEmail(), User\clearNotification(), FileDuplicateSearchPage\doBatchLookups(), UsersPager\doBatchLookups(), ContribsPager\doBatchLookups(), HistoryPager\doBatchLookups(), WikiPage\doEditUpdates(), UserCache\doQuery(), SpecialRenameuser\execute(), ChangesListSpecialPage\execute(), ShiConverter\findVariantLink(), SrConverter\findVariantLink(), IuConverter\findVariantLink(), KuConverter\findVariantLink(), KkConverter\findVariantLink(), ImageHistoryPseudoPager\getBody(), NewUsersLogFormatter\getPreloadTitles(), WantedPagesPage\getQueryInfo(), SpecialMytalk\getRedirect(), Article\getRobotPolicy(), MergeHistoryPager\getStartBody(), NewPagesPager\getStartBody(), LogPager\getStartBody(), MWNamespace\hasGenderDistinction(), EditPage\importFormData(), User\isBlockedFrom(), Language\needsGenderDistinction(), EmailNotification\notifyOnPageChange(), WikiPage\onArticleDelete(), RenameuserHooks\onShowMissingArticle(), ProtectedPagesPager\preprocessResults(), BlockListPager\preprocessResults(), MediaWikiTitleCodecTest\provideFormat(), MediaWikiTitleCodecTest\provideGetFullText(), MediaWikiTitleCodecTest\provideGetPrefixedDBkey(), TitleTest\provideGetPrefixedDBKey(), MediaWikiTitleCodecTest\provideGetPrefixedText(), TitleTest\provideGetPrefixedText(), TitleMethodsTest\provideHasSubjectNamespace(), MWNamespaceTest\provideHasTalkNamespace(), TitleMethodsTest\provideInNamespace(), MWNamespaceTest\setUp(), SpecialUndelete\showHistory(), EditPage\showIntro(), Article\showMissingArticle(), Article\showViewFooter(), MediaWikiTitleCodec\splitTitleString(), MWNamespaceTest\testEquals(), MWNamespaceTest\testGetSubject(), MWNamespaceTest\testGetTalk(), MWNamespaceTest\testHasGenderDistinction(), MWNamespaceTest\testHasSubpages(), MWNamespaceTest\testIsSubject(), MWNamespaceTest\testIsTalk(), MWNamespaceTest\testSubjectEquals(), and Linker\userTalkLink().

◆ OT_HTML

const OT_HTML 1

Allowed values for Parser::$mOutputType Parameter to Parser::startExternalParse(). Use of Parser consts is preferred:

  • Parser::OT_HTML
  • Parser::OT_WIKI
  • Parser::OT_PREPROCESS
  • Parser::OT_MSG
  • Parser::OT_PLAIN

Definition at line 185 of file Defines.php.

Referenced by ParserMethodsTest\testCallParserFunction().

◆ OT_MSG

const OT_MSG 3

Definition at line 188 of file Defines.php.

◆ OT_PLAIN

const OT_PLAIN 4

Definition at line 189 of file Defines.php.

◆ OT_PREPROCESS

const OT_PREPROCESS 3

◆ OT_WIKI

const OT_WIKI 2

Definition at line 186 of file Defines.php.

◆ PROTO_CANONICAL

◆ PROTO_CURRENT

◆ PROTO_HTTP

◆ PROTO_HTTPS

◆ PROTO_INTERNAL

const PROTO_INTERNAL 2

Definition at line 225 of file Defines.php.

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

◆ PROTO_RELATIVE

◆ RC_CATEGORIZE

◆ RC_EDIT

◆ RC_EXTERNAL

◆ RC_LOG

◆ RC_NEW

◆ SFH_NO_HASH

const SFH_NO_HASH 1

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

  • Parser::SFH_NO_HASH
  • Parser::SFH_OBJECT_ARGS

Definition at line 198 of file Defines.php.

Referenced by CoreParserFunctions\register().

◆ SFH_OBJECT_ARGS

◆ SHELL_MAX_ARG_STRLEN

const SHELL_MAX_ARG_STRLEN '100000'

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

Definition at line 271 of file Defines.php.

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