MediaWiki REL1_37
Defines.php File Reference

A few constants that might be needed during LocalSettings.php. More...

Go to the source code of this file.

Variables

const MW_SUPPORTS_RESOURCE_MODULES 1
 Support for $wgResourceModules.
 
const MW_VERSION '1.37.6'
 The running version of MediaWiki.
 
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 NS_MEDIA -2
 
const NS_SPECIAL -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_MAIN 0
 
const NS_MEDIAWIKI 8
 
const NS_MEDIAWIKI_TALK 9
 
const NS_PROJECT 4
 
const NS_PROJECT_TALK 5
 
const NS_TALK 1
 
const NS_TEMPLATE 10
 
const NS_TEMPLATE_TALK 11
 
const NS_USER 2
 
const NS_USER_TALK 3
 
const CACHE_ACCEL 3
 
const CACHE_ANYTHING -1
 
const CACHE_DB 1
 
const CACHE_MEMCACHED 2
 
const CACHE_NONE 0
 
const AV_NO_VIRUS 0
 
const AV_SCAN_ABORTED -1
 
const AV_SCAN_FAILED false
 
const AV_VIRUS_FOUND 1
 
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 RC_CATEGORIZE 6
 
const RC_EDIT 0
 
const RC_EXTERNAL 5
 
const RC_LOG 3
 
const RC_NEW 1
 
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 MW_EDITFILTERMERGED_SUPPORTS_API 1
 
const MW_SUPPORTS_CONTENTHANDLER 1
 
const MW_SUPPORTS_LOCALISATIONCACHE 1
 
const MW_SUPPORTS_PARSERFIRSTCALLINIT 1
 
const OT_HTML 1
 
const OT_MSG 3
 
const OT_PLAIN 4
 
const OT_PREPROCESS 3
 
const OT_WIKI 2
 
const SFH_NO_HASH 1
 
const SFH_OBJECT_ARGS 2
 
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 PROTO_CANONICAL 1
 
const PROTO_CURRENT null
 
const PROTO_HTTP 'http://'
 
const PROTO_HTTPS 'https://'
 
const PROTO_INTERNAL 2
 
const PROTO_RELATIVE '//'
 
const CONTENT_MODEL_CSS 'css'
 
const CONTENT_MODEL_JAVASCRIPT 'javascript'
 
const CONTENT_MODEL_JSON 'json'
 
const CONTENT_MODEL_TEXT 'text'
 
const CONTENT_MODEL_UNKNOWN 'unknown'
 
const CONTENT_MODEL_WIKITEXT 'wikitext'
 
const CONTENT_FORMAT_CSS 'text/css'
 For CSS pages.
 
const CONTENT_FORMAT_HTML 'text/html'
 For future use, e.g.
 
const CONTENT_FORMAT_JAVASCRIPT 'text/javascript'
 For JS pages.
 
const CONTENT_FORMAT_JSON 'application/json'
 For future use with the API, and for use by extensions.
 
const CONTENT_FORMAT_SERIALIZED 'application/vnd.php.serialized'
 For future use with the API and for extensions.
 
const CONTENT_FORMAT_TEXT 'text/plain'
 For future use, e.g.
 
const CONTENT_FORMAT_WIKITEXT 'text/x-wiki'
 Wikitext.
 
const CONTENT_FORMAT_XML 'application/xml'
 For future use with the API, and for use by extensions.
 
const SHELL_MAX_ARG_STRLEN '100000'
 
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_MASK SCHEMA_COMPAT_READ_OLD | SCHEMA_COMPAT_READ_TEMP | SCHEMA_COMPAT_READ_NEW
 
const SCHEMA_COMPAT_READ_NEW 0x200
 
const SCHEMA_COMPAT_READ_OLD 0x02
 
const SCHEMA_COMPAT_READ_TEMP 0x20
 
const SCHEMA_COMPAT_TEMP SCHEMA_COMPAT_WRITE_TEMP | SCHEMA_COMPAT_READ_TEMP
 
const SCHEMA_COMPAT_WRITE_BOTH SCHEMA_COMPAT_WRITE_OLD | SCHEMA_COMPAT_WRITE_NEW
 
const SCHEMA_COMPAT_WRITE_MASK SCHEMA_COMPAT_WRITE_OLD | SCHEMA_COMPAT_WRITE_TEMP | SCHEMA_COMPAT_WRITE_NEW
 
const SCHEMA_COMPAT_WRITE_NEW 0x100
 
const SCHEMA_COMPAT_WRITE_OLD 0x01
 
const SCHEMA_COMPAT_WRITE_OLD_AND_TEMP SCHEMA_COMPAT_WRITE_OLD | SCHEMA_COMPAT_WRITE_TEMP
 
const SCHEMA_COMPAT_WRITE_TEMP 0x10
 
const SCHEMA_COMPAT_WRITE_TEMP_AND_NEW SCHEMA_COMPAT_WRITE_TEMP | SCHEMA_COMPAT_WRITE_NEW
 
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 XML_DUMP_SCHEMA_VERSION_10 '0.10'
 
const XML_DUMP_SCHEMA_VERSION_11 '0.11'
 

Detailed Description

A few constants that might be needed during LocalSettings.php.

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. http://www.gnu.org/copyleft/gpl.html

Definition in file Defines.php.

Variable Documentation

◆ APCOND_AGE

const APCOND_AGE 2

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

Definition at line 179 of file Defines.php.

◆ APCOND_AGE_FROM_EDIT

const APCOND_AGE_FROM_EDIT 7

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

Definition at line 184 of file Defines.php.

◆ APCOND_BLOCKED

const APCOND_BLOCKED 8

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

Definition at line 185 of file Defines.php.

◆ APCOND_EDITCOUNT

const APCOND_EDITCOUNT 1

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

Definition at line 178 of file Defines.php.

◆ APCOND_EMAILCONFIRMED

const APCOND_EMAILCONFIRMED 3

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

Definition at line 180 of file Defines.php.

◆ APCOND_INGROUPS

const APCOND_INGROUPS 4

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

Definition at line 181 of file Defines.php.

◆ APCOND_IPINRANGE

const APCOND_IPINRANGE 6

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

Definition at line 183 of file Defines.php.

◆ APCOND_ISBOT

const APCOND_ISBOT 9

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

Definition at line 186 of file Defines.php.

◆ APCOND_ISIP

const APCOND_ISIP 5

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

Definition at line 182 of file Defines.php.

◆ AV_NO_VIRUS

const AV_NO_VIRUS 0

Antivirus result codes, for use in $wgAntivirusSetup.

Definition at line 95 of file Defines.php.

Referenced by UploadBase\detectVirus().

◆ AV_SCAN_ABORTED

const AV_SCAN_ABORTED -1

Antivirus result codes, for use in $wgAntivirusSetup.

Definition at line 97 of file Defines.php.

Referenced by UploadBase\detectVirus().

◆ AV_SCAN_FAILED

const AV_SCAN_FAILED false

Antivirus result codes, for use in $wgAntivirusSetup.

Definition at line 98 of file Defines.php.

Referenced by UploadBase\detectVirus().

◆ AV_VIRUS_FOUND

const AV_VIRUS_FOUND 1

Antivirus result codes, for use in $wgAntivirusSetup.

Definition at line 96 of file Defines.php.

◆ CACHE_ACCEL

const CACHE_ACCEL 3

Cache type

Definition at line 89 of file Defines.php.

◆ CACHE_ANYTHING

◆ CACHE_DB

const CACHE_DB 1

Cache type

Definition at line 87 of file Defines.php.

Referenced by Installer\getInstallerConfig(), ObjectCache\newAnything(), and ManageJobs\repushAbandoned().

◆ CACHE_MEMCACHED

const CACHE_MEMCACHED 2

Cache type

Definition at line 88 of file Defines.php.

Referenced by McTest\execute(), and Installer\getInstallerConfig().

◆ CACHE_NONE

◆ CONTENT_FORMAT_CSS

const CONTENT_FORMAT_CSS 'text/css'

For CSS pages.

Definition at line 228 of file Defines.php.

Referenced by CssContentHandler\__construct(), and ResourceLoaderWikiModule\getContent().

◆ CONTENT_FORMAT_HTML

const CONTENT_FORMAT_HTML 'text/html'

For future use, e.g.

with some plain HTML messages.

Definition at line 232 of file Defines.php.

◆ CONTENT_FORMAT_JAVASCRIPT

const CONTENT_FORMAT_JAVASCRIPT 'text/javascript'

For JS pages.

Definition at line 226 of file Defines.php.

Referenced by JavaScriptContentHandler\__construct(), and ResourceLoaderWikiModule\getContent().

◆ CONTENT_FORMAT_JSON

const CONTENT_FORMAT_JSON 'application/json'

For future use with the API, and for use by extensions.

Definition at line 236 of file Defines.php.

Referenced by JsonContentHandler\__construct().

◆ CONTENT_FORMAT_SERIALIZED

const CONTENT_FORMAT_SERIALIZED 'application/vnd.php.serialized'

For future use with the API and for extensions.

Definition at line 234 of file Defines.php.

◆ CONTENT_FORMAT_TEXT

const CONTENT_FORMAT_TEXT 'text/plain'

For future use, e.g.

with some plain HTML messages.

Definition at line 230 of file Defines.php.

◆ CONTENT_FORMAT_WIKITEXT

const CONTENT_FORMAT_WIKITEXT 'text/x-wiki'

Wikitext.

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

Referenced by WikitextContentHandler\__construct().

◆ CONTENT_FORMAT_XML

const CONTENT_FORMAT_XML 'application/xml'

For future use with the API, and for use by extensions.

Definition at line 238 of file Defines.php.

◆ CONTENT_MODEL_CSS

const CONTENT_MODEL_CSS 'css'

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

Referenced by MediaWiki\Revision\MainSlotRoleHandler\getDefaultModel(), EditPage\getPreviewText(), ResourceLoaderWikiModule\invalidateModuleCache(), Title\isSiteCssConfigPage(), Title\isUserCssConfigPage(), and EditPage\showIntro().

◆ CONTENT_MODEL_JAVASCRIPT

const CONTENT_MODEL_JAVASCRIPT 'javascript'

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

Referenced by MediaWiki\Revision\MainSlotRoleHandler\getDefaultModel(), EditPage\getPreviewText(), ResourceLoaderWikiModule\invalidateModuleCache(), Title\isSiteJsConfigPage(), Title\isUserJsConfigPage(), and EditPage\showIntro().

◆ CONTENT_MODEL_JSON

const CONTENT_MODEL_JSON 'json'

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

Referenced by MediaWiki\Revision\MainSlotRoleHandler\getDefaultModel(), EditPage\getPreviewText(), FixDefaultJsonContentPages\handleRow(), Title\isSiteJsonConfigPage(), Title\isUserJsonConfigPage(), and EditPage\showIntro().

◆ CONTENT_MODEL_TEXT

const CONTENT_MODEL_TEXT 'text'

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

Referenced by TextSlotDiffRenderer\diff(), DifferenceEngine\generateTextDiffBody(), MediaWiki\Revision\MainSlotRoleHandler\getDefaultModel(), MediaWiki\Rest\Handler\CompareHandler\getRevisionText(), and DifferenceEngine\textDiff().

◆ CONTENT_MODEL_UNKNOWN

const CONTENT_MODEL_UNKNOWN 'unknown'

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

Referenced by MediaWiki\Revision\FallbackSlotRoleHandler\__construct().

◆ CONTENT_MODEL_WIKITEXT

◆ EDIT_AUTOSUMMARY

const EDIT_AUTOSUMMARY 64

◆ EDIT_DEFER_UPDATES

const EDIT_DEFER_UPDATES 32

Article edit flags

Definition at line 130 of file Defines.php.

◆ EDIT_FORCE_BOT

◆ EDIT_INTERNAL

◆ EDIT_MINOR

◆ EDIT_NEW

◆ EDIT_SUPPRESS_RC

◆ EDIT_UPDATE

◆ LIST_AND

◆ LIST_COMMA

const LIST_COMMA IDatabase::LIST_COMMA

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

Definition at line 42 of file Defines.php.

◆ LIST_NAMES

const LIST_NAMES IDatabase::LIST_NAMES

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

Definition at line 45 of file Defines.php.

◆ LIST_OR

◆ LIST_SET

const LIST_SET IDatabase::LIST_SET

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

Definition at line 44 of file Defines.php.

◆ MIGRATION_NEW

const MIGRATION_NEW 0x30000000 | SCHEMA_COMPAT_NEW

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

Referenced by CommentStore\getCommentInternal(), CommentStore\getFields(), CommentStore\getJoin(), CommentStore\insert(), and CommentStore\insertInternal().

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

◆ MIGRATION_WRITE_BOTH

const MIGRATION_WRITE_BOTH 0x10000000 | SCHEMA_COMPAT_READ_BOTH | SCHEMA_COMPAT_WRITE_BOTH

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

◆ MIGRATION_WRITE_NEW

const MIGRATION_WRITE_NEW 0x20000000 | SCHEMA_COMPAT_READ_BOTH | SCHEMA_COMPAT_WRITE_NEW

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

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

◆ MW_DATE_DMY

const MW_DATE_DMY 'dmy'

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

Definition at line 107 of file Defines.php.

◆ MW_DATE_ISO

const MW_DATE_ISO 'ISO 8601'

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

Definition at line 109 of file Defines.php.

◆ MW_DATE_MDY

const MW_DATE_MDY 'mdy'

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

Definition at line 106 of file Defines.php.

◆ MW_DATE_YMD

const MW_DATE_YMD 'ymd'

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

Definition at line 108 of file Defines.php.

◆ MW_EDITFILTERMERGED_SUPPORTS_API

const MW_EDITFILTERMERGED_SUPPORTS_API 1

Hook support constants

Definition at line 141 of file Defines.php.

◆ MW_SUPPORTS_CONTENTHANDLER

const MW_SUPPORTS_CONTENTHANDLER 1

Hook support constants

Definition at line 140 of file Defines.php.

◆ MW_SUPPORTS_LOCALISATIONCACHE

const MW_SUPPORTS_LOCALISATIONCACHE 1

Hook support constants

Definition at line 139 of file Defines.php.

◆ MW_SUPPORTS_PARSERFIRSTCALLINIT

const MW_SUPPORTS_PARSERFIRSTCALLINIT 1

Hook support constants

Definition at line 138 of file Defines.php.

◆ MW_SUPPORTS_RESOURCE_MODULES

const MW_SUPPORTS_RESOURCE_MODULES 1

Support for $wgResourceModules.

Definition at line 145 of file Defines.php.

◆ MW_VERSION

◆ NS_CATEGORY

const NS_CATEGORY 14

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

Referenced by DumpNamespaceFilter\__construct(), CategoryPager\__construct(), SpecialUncategorizedCategories\__construct(), OutputPage\addCategoryLinks(), OutputPage\addCategoryLinksToLBAndGetResult(), ParserOutput\addTrackingCategory(), Skin\buildNavUrls(), MediaWiki\Permissions\PermissionManager\checkQuickPermissions(), BenchmarkTitleValue\constructTitle(), BenchmarkTitleValue\constructTitleSafe(), BenchmarkTitleValue\constructTitleValue(), CategoryViewer\doCategoryQuery(), LinksDeletionUpdate\doIncrementalUpdate(), SpecialRecentChangesLinked\doMainQuery(), LinkHolderArray\doVariants(), ApiQueryCategoryInfo\execute(), RefreshLinks\execute(), ApiParse\formatCategoryLinks(), SpecialMostLinkedCategories\formatResult(), SpecialUncategorizedCategories\formatResult(), SpecialUnusedCategories\formatResult(), CategoryPager\formatRow(), MediaWiki\Search\SearchWidgets\FullSearchResultWidget\generateSizeHtml(), CategoryPager\getBody(), WikiPage\getCategories(), Skin\getCategories(), LinksUpdate\getCategoryInsertions(), DumpCategoriesAsRdf\getCategoryIterator(), Skin\getCategoryLinks(), NamespaceInfo\getCategoryLinkType(), CategoryChangesAsRdf\getChangedCatsIterator(), CategoryChangesAsRdf\getDeletedCatsIterator(), SpecialUncategorizedCategories\getExceptionList(), WikiFilePage\getForeignCategories(), SpecialRandomInCategory\getFormFields(), WikiPage\getHiddenCategories(), CategoryChangesAsRdf\getMovedCatsIterator(), CategoryChangesAsRdf\getNewCatsIterator(), WantedFilesPage\getPageHeader(), Title\getParentCategories(), SpecialMostLinkedCategories\getQueryInfo(), SpecialUnusedCategories\getQueryInfo(), SpecialWantedCategories\getQueryInfo(), CategoryChangesAsRdf\getRestoredCatsIterator(), CategoryPager\getStartForm(), TrackingCategories\getTrackingCategories(), CategoryChangesAsRdf\handleCategorization(), Parser\handleDoubleUnderscore(), Parser\handleInternalLinks2(), CategoryChangesAsRdf\handleMoves(), LinksUpdate\invalidateCategories(), CategoriesRdf\labelToUrl(), SearchHighlighter\linkReplace(), WikitextContentHandler\makeRedirectContent(), MovePage\moveToInternal(), Category\newFromName(), Article\newFromTitle(), MediaWiki\Page\WikiPageFactory\newFromTitle(), CategoryMembershipChangeJob\notifyUpdatesForRevision(), WikiPage\onArticleCreate(), SpecialRandomInCategory\onSubmit(), InfoAction\pageInfo(), CoreParserFunctions\pagesincategory(), Category\refreshCounts(), ApiQueryAllCategories\run(), ApiQueryCategories\run(), ApiQueryCategoryMembers\run(), GenerateSitemap\setNamespacePriorities(), MovePageForm\showForm(), Title\touchLinks(), LinkCache\usePersistentCache(), CategoryPage\view(), CategoriesRdf\writeCategoryData(), and CategoriesRdf\writeCategoryLinkData().

◆ NS_CATEGORY_TALK

const NS_CATEGORY_TALK 15

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

Referenced by DumpNamespaceFilter\__construct(), MediaWiki\EditPage\TextConflictHelper\incrementConflictStats(), MediaWiki\EditPage\TextConflictHelper\incrementResolvedStats(), and GenerateSitemap\setNamespacePriorities().

◆ NS_FILE

const NS_FILE 6

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

Referenced by DumpNamespaceFilter\__construct(), ApiQueryAllLinks\__construct(), FileRepo\__construct(), ParserOutput\addLink(), UploadForm\addUploadJS(), CleanupImages\buildSafeTitle(), UploadBase\checkBadFileName(), RevertAction\checkCanExecute(), FindOrphanedFiles\checkFiles(), MediaWiki\Permissions\PermissionManager\checkQuickPermissions(), LocalRepo\checkRedirect(), SpecialRedirect\dispatchFile(), CategoryViewer\doCategoryQuery(), SpecialRecentChangesLinked\doMainQuery(), MovePageForm\doSubmit(), SpecialFileDuplicateSearch\execute(), SpecialUndelete\execute(), ApiDelete\execute(), ApiMove\execute(), ApiQueryFilearchive\execute(), ApiQueryImageInfo\execute(), DeleteBatch\execute(), FindMissingFiles\execute(), ImportImages\execute(), UppercaseTitlesForUnicodeTransition\execute(), ForeignAPIRepo\findBySha1(), FileRepo\findFile(), LocalRepo\findFiles(), WikiFilePage\followRedirect(), Linker\formatLinksInComment(), NewFilesPager\formatRow(), ImageListPager\formatValue(), MediaWiki\Search\SearchWidgets\FullSearchResultWidget\generateFileHtml(), MediaWiki\Permissions\RestrictionStore\getCascadeProtectionSourcesInternal(), NamespaceInfo\getCategoryLinkType(), ApiUpload\getChunkResult(), FileContentHandler\getDataForSearchIndex(), WikitextContentHandler\getDataForSearchIndex(), Title\getDeletedEditsCount(), ForeignDBFile\getDescriptionShortUrl(), ForeignDBFile\getDescriptionText(), WANCacheReapUpdate\getEventAffectedKeys(), SpecialWhatLinksHere\getFilterPanel(), FileRepo\getNameFromTitle(), SearchNearMatcher\getNearMatchInternal(), SearchUpdate\getNormalizedTitle(), MediaWiki\Rest\Handler\MediaFileHandler\getPage(), ApiImageRotate\getPageSet(), ApiQueryInfo\getProtectionInfo(), NewFilesPager\getQueryInfo(), SpecialListDuplicatedFiles\getQueryInfo(), SpecialMIMESearch\getQueryInfo(), MostimagesPage\getQueryInfo(), SpecialUncategorizedImages\getQueryInfo(), SpecialUnusedImages\getQueryInfo(), WantedFilesPage\getQueryInfo(), File\getRedirectedTitle(), WikiFilePage\getRedirectTarget(), WikiPage\getRedirectTarget(), SpecialSearch\getSearchProfiles(), UploadBase\getTitle(), SpecialUpload\getUploadForm(), SpecialUpload\getWatchCheck(), Parser\handleInternalLinks2(), Title\hasDeletedEdits(), SearchHighlighter\highlightText(), ImagePage\imageLinks(), initFromTitle(), LinksUpdate\invalidateImageDescriptions(), Title\isAlwaysKnown(), NamespaceInfo\isCapitalized(), MovePage\isValidFileMove(), MovePage\isValidMove(), MovePage\isValidMoveTarget(), SearchHighlighter\linkReplace(), PageArchive\listFiles(), ArchivedFile\load(), ArchivedFile\loadFromRow(), Linker\makeThumbLink2(), MovePage\moveUnsafe(), UppercaseTitlesForUnicodeTransition\mungeTitle(), ArchivedFile\newFromRow(), LocalFile\newFromRow(), OldLocalFile\newFromRow(), Article\newFromTitle(), MediaWiki\Page\WikiPageFactory\newFromTitle(), File\normalizeTitle(), WikiPage\onArticleDelete(), ImageQueryPage\outputResults(), CleanupImages\pageExists(), InfoAction\pageInfo(), MediaWiki\parseTitle(), ApiUpload\performUpload(), CleanupImages\pokeFile(), SpecialFileDuplicateSearch\prefixSearchSubpages(), CleanupImages\processRow(), TitleCleanup\processRow(), PurgeChangedFiles\purgeFromLogType(), LinksUpdate\queueRecursiveJobs(), Category\refreshCounts(), Parser\renderImageGallery(), ApiQueryAllImages\run(), ApiQueryBacklinks\run(), ApiQueryDuplicateFiles\run(), ApiQueryImages\run(), ApiQueryBacklinks\runSecondQuery(), PrefixSearch\searchBackend(), GenerateSitemap\setNamespacePriorities(), SpecialWhatLinksHere\showIndirectLinks(), EditPage\showIntro(), Article\showPatrolFooter(), SpecialSearch\showResults(), SpecialUpload\showUploadWarning(), SpecialUpload\showViewDeletedLinks(), MediaWiki\Search\SearchWidgets\SearchFormWidget\startsWithImage(), TraditionalImageGallery\toHTML(), SpecialUndelete\undelete(), PageArchive\undeleteAsUser(), PageArchive\undeleteRevisions(), WikiPage\updateRedirectOn(), CoreParserFunctions\urlFunction(), LinkCache\usePersistentCache(), ApiFileRevert\validateParameters(), ImagePage\view(), wfImageAuthMain(), wfStreamThumb(), SkinTemplate\wrapHTML(), and XmlDumpWriter\writeUploads().

◆ NS_FILE_TALK

const NS_FILE_TALK 7

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

Referenced by DumpNamespaceFilter\__construct(), and GenerateSitemap\setNamespacePriorities().

◆ NS_HELP

const NS_HELP 12

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

Referenced by DumpNamespaceFilter\__construct(), and GenerateSitemap\setNamespacePriorities().

◆ NS_HELP_TALK

const NS_HELP_TALK 13

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

Referenced by DumpNamespaceFilter\__construct(), and GenerateSitemap\setNamespacePriorities().

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

Referenced by DumpNamespaceFilter\__construct(), TitleValue\assertValidSpec(), buildCommonApiParams(), NamespaceInfo\canHaveTalkPage(), MediaWiki\Permissions\PermissionManager\checkReadPermissions(), MediaWiki\Permissions\PermissionManager\checkSpecialsAndNSPermissions(), LanguageConverter\convertNamespace(), LanguageConverter\convertTitle(), PrefixSearch\defaultSearchBackend(), SpecialContributions\execute(), SpecialExport\execute(), SpecialLog\execute(), SpecialWithoutInterwiki\execute(), UppercaseTitlesForUnicodeTransition\execute(), ApiQueryInfo\extractPageInfo(), LanguageConverter\findVariantLink(), Linker\formatAutocomments(), ApiQueryAllPages\getAllowedParams(), ApiQueryDeletedrevs\getAllowedParams(), ApiQueryInfo\getAllVariants(), NamespaceInfo\getCanonicalNamespaces(), NamespaceInfo\getContentNamespaces(), CategoriesRdf\getDumpURI(), SpecialEditWatchlist\getExpandedTargets(), Linker\getInvalidTitleDescription(), EditWatchlistNormalHTMLForm\getLegend(), BlockLogFormatter\getMessageParameters(), NewPagesPager\getNamespaceCond(), SpecialEditWatchlist\getNormalForm(), SpecialRandomPage\getNsList(), WantedFilesPage\getPageHeader(), BlockListPager\getRestrictionListHTML(), NamespaceInfo\getSubject(), NamespaceDupes\getTargetList(), User\getTokenUrl(), ExternalUserNames\getUserLinkTitle(), SpecialSearch\goResult(), NamespaceInfo\hasTalkNamespace(), MediaWiki\EditPage\TextConflictHelper\incrementConflictStats(), MediaWiki\EditPage\TextConflictHelper\incrementResolvedStats(), Title\isAlwaysKnown(), NamespaceInfo\isContent(), NamespaceInfo\isMethodValidFor(), NamespaceInfo\isMovable(), NamespaceInfo\isTalk(), NamespaceInfo\isWatchable(), MediaWiki\maybeDoHttpsRedirect(), Html\namespaceSelectorOptions(), Title\newFromTextThrow(), SpecialListGroupRights\outputNamespaceProtectionInfo(), SearchEngine\parseNamespacePrefixes(), BenchmarkTitleValue\parseTitleValue(), SearchExactMatchRescorer\rescore(), SearchEngineConfig\searchableNamespaces(), SpecialRandomPage\setNamespace(), GenerateSitemap\setNamespacePriorities(), WikiImporter\setTargetRootPage(), SpecialAllPages\showChunk(), SpecialPrefixindex\showPrefixChunk(), MediaWikiTitleCodec\splitTitleString(), and PrefixSearch\validateNamespaces().

◆ NS_MEDIA

◆ NS_MEDIAWIKI

const NS_MEDIAWIKI 8

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 72 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(), DeleteEqualMessages\execute(), ImportSiteScripts\execute(), NukeNS\execute(), AllMessagesTablePager\formatValue(), EditPage\getContentObject(), AllMessagesTablePager\getCustomisedStatuses(), Title\getDefaultMessageText(), MediaWiki\Revision\MainSlotRoleHandler\getDefaultModel(), SearchNearMatcher\getNearMatchInternal(), ContentHandler\getPageLanguage(), ContentHandler\getPageViewLanguage(), SpecialUnwatchedPages\getQueryInfo(), WantedPagesPage\getQueryInfo(), Message\getTitle(), TrackingCategories\getTrackingCategories(), Title\hasSourceText(), Title\isAlwaysKnown(), Title\isConversionTable(), Title\isRawHtmlMessage(), Title\isSiteCssConfigPage(), Title\isSiteJsConfigPage(), Title\isSiteJsonConfigPage(), ChangeTags\isTagNameValid(), MessageCache\loadCachedMessagePageEntry(), MessageCache\loadFromDB(), WikiPage\onArticleDelete(), RawAction\onView(), LanguageConverter\parseCachedTable(), MessageCache\refreshAndReplaceInternal(), EditPage\setHeaders(), GenerateSitemap\setNamespacePriorities(), EditPage\showDiff(), EditPage\showIntro(), Article\showMissingArticle(), Parser\statelessFetchTemplate(), LanguageConverter\updateConversionTable(), and LinkCache\usePersistentCache().

◆ NS_MEDIAWIKI_TALK

const NS_MEDIAWIKI_TALK 9

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

Referenced by DumpNamespaceFilter\__construct(), DeleteEqualMessages\execute(), AllMessagesTablePager\formatValue(), AllMessagesTablePager\getCustomisedStatuses(), and GenerateSitemap\setNamespacePriorities().

◆ NS_PROJECT

const NS_PROJECT 4

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

Referenced by DumpNamespaceFilter\__construct(), SpecialListGroupRights\execute(), SpecialPasswordPolicies\execute(), SpecialStatistics\getGroupStats(), Language\getNamespaces(), GenerateSitemap\setNamespacePriorities(), SpecialBookSources\showList(), WebInstallerName\submit(), and wfInstallerMain().

◆ NS_PROJECT_TALK

const NS_PROJECT_TALK 5

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

Referenced by DumpNamespaceFilter\__construct(), Language\getNamespaceAliases(), Language\getNamespaces(), and GenerateSitemap\setNamespacePriorities().

◆ NS_SPECIAL

const NS_SPECIAL -1

Virtual namespaces; don't appear in the page database

Definition at line 53 of file Defines.php.

Referenced by Job\__construct(), JobSpecification\__construct(), ParserOutput\addLink(), OutputPage\buildBacklinkSubtitle(), RCCacheEntryFactory\buildCLink(), MediaWiki\Permissions\PermissionManager\checkSpecialsAndNSPermissions(), SearchEngine\completionSearchBackend(), ApiFeedWatchlist\createFeedItem(), PrefixSearch\defaultSearchBackend(), LinkHolderArray\doVariants(), TidyUpT39714\execute(), Job\factory(), Title\fixSpecialName(), MediaWiki\Search\SearchWidgets\InterwikiSearchResultSetWidget\footerHtml(), OldChangesList\formatChangeLine(), MediaWikiTitleCodec\formatTitle(), ApiQueryLogEvents\getAllowedParams(), ApiQueryAllLinks\getAllowedParams(), ApiQueryLinks\getAllowedParams(), ApiQueryRecentChanges\getAllowedParams(), ApiErrorFormatter\getDummyTitle(), OutputPage\getJSVars(), IRCColourfulRCFeedFormatter\getLine(), JobQueueRedis\getNewJobFields(), SpecialPage\getSafeTitleFor(), RecentChange\getTitle(), DifferenceEngine\getTitle(), Parser\getTitle(), SpecialPage\getTitleValueFor(), MediaWiki\Search\SearchWidgets\SimpleSearchResultSetWidget\headerHtml(), JobQueueDB\insertFields(), Title\isAlwaysKnown(), MediaWiki\Permissions\PermissionManager\isSameSpecialPage(), Title\isSpecialPage(), MediaWiki\main(), MediaWiki\Rest\EntryPoint\main(), MediaWiki\Linker\LinkRenderer\makeBrokenLink(), MediaWiki\Linker\LinkRenderer\normalizeTarget(), MessageCache\parse(), ApiPageSet\populateGeneratorData(), Title\prefix(), ApiPageSet\processTitlesArray(), LinkHolderArray\replaceInternal(), PrefixSearch\searchBackend(), Parser\setPage(), CoreParserFunctions\special(), PrefixSearch\specialSearch(), MediaWikiTitleCodec\splitTitleString(), wfApiMain(), and SkinTemplate\wrapHTML().

◆ NS_TALK

const NS_TALK 1

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

Referenced by DumpNamespaceFilter\__construct(), NamespaceDupes\getDestinationTitle(), NamespaceDupes\getTargetList(), GenerateSitemap\setNamespacePriorities(), and MediaWikiTitleCodec\splitTitleString().

◆ NS_TEMPLATE

const NS_TEMPLATE 10

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

Referenced by DumpNamespaceFilter\__construct(), ApiQueryAllLinks\__construct(), SpecialUncategorizedTemplates\__construct(), Parser\braceSubstitution(), SpecialUnusedTemplates\formatResult(), SpecialUnusedTemplates\getQueryInfo(), SpecialWantedTemplates\getQueryInfo(), GenerateSitemap\setNamespacePriorities(), and LinkCache\usePersistentCache().

◆ NS_TEMPLATE_TALK

const NS_TEMPLATE_TALK 11

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

Referenced by DumpNamespaceFilter\__construct(), and GenerateSitemap\setNamespacePriorities().

◆ NS_USER

const NS_USER 2

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

Referenced by DumpNamespaceFilter\__construct(), UsersPager\__construct(), ActiveUsersPager\__construct(), ImageListPager\__construct(), MediaWiki\Permissions\PermissionManager\checkQuickPermissions(), MediaWiki\Permissions\PermissionManager\checkUserConfigPermissions(), SpecialContributions\contributionsSub(), SpecialFileDuplicateSearch\doBatchLookups(), HistoryPager\doBatchLookups(), NewFilesPager\doBatchLookups(), UsersPager\doBatchLookups(), FixDefaultJsonContentPages\doDBUpdates(), UserCache\doQuery(), SpecialContributions\execute(), SpecialLog\execute(), ChangesListSpecialPage\execute(), ApiBlock\execute(), ApiQueryAllUsers\execute(), LanguageConverterSpecific\findVariantLink(), SpecialNewpages\form(), MediaWiki\Block\BlockErrorFormatter\formatBlockerLink(), SpecialMIMESearch\formatResult(), NewFilesPager\formatRow(), ImageListPager\formatValue(), CoreParserFunctions\gender(), MediaWiki\Preferences\DefaultPreferencesFactory\generateSkinOptions(), ImageHistoryPseudoPager\getBody(), MediaWiki\User\UserNameUtils\getCanonical(), MediaWiki\Revision\MainSlotRoleHandler\getDefaultModel(), WANCacheReapUpdate\getEventAffectedKeys(), SearchNearMatcher\getNearMatchInternal(), ActiveUsersPager\getQueryInfo(), NewPagesPager\getQueryInfo(), WantedPagesPage\getQueryInfo(), SpecialMypage\getRedirect(), Skin\getRelevantUser(), Article\getRobotPolicy(), LogPager\getStartBody(), MergeHistoryPager\getStartBody(), NewPagesPager\getStartBody(), SpecialDeletedContributions\getSubTitle(), SpecialBlock\getTargetUserTitle(), ExternalUserNames\getUserLinkTitle(), User\getUserPage(), UserRightsProxy\getUserPage(), NamespaceInfo\hasGenderDistinction(), EditPage\importFormData(), Title\isUserCssConfigPage(), Title\isUserJsConfigPage(), Title\isUserJsonConfigPage(), UppercaseTitlesForUnicodeTransition\isUserPage(), MediaWiki\Block\UnblockUser\log(), MediaWiki\Block\BlockUser\log(), Language\needsGenderDistinction(), InfoAction\pageInfo(), BlockListPager\preprocessResults(), ProtectedPagesPager\preprocessResults(), SpecialBlock\processFormInternal(), GenerateSitemap\setNamespacePriorities(), RevisionDeleteUser\setUsernameBitfields(), MovePageForm\showForm(), SpecialUndelete\showHistory(), EditPage\showIntro(), Article\showMissingArticle(), MediaWiki\Preferences\DefaultPreferencesFactory\skinPreferences(), MediaWikiTitleCodec\splitTitleString(), RecentChangesUpdateJob\updateActiveUsers(), and Linker\userLink().

◆ NS_USER_TALK

const NS_USER_TALK 3

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

Referenced by DumpNamespaceFilter\__construct(), MediaWiki\Block\BlockUser\__construct(), EmailNotification\actuallyNotifyOnPageChange(), MediaWiki\Block\AbstractBlock\appliesToUsertalk(), EmailNotification\canSendUserTalkEmail(), MediaWiki\Watchlist\WatchlistManager\clearTitleUserNotifications(), SpecialFileDuplicateSearch\doBatchLookups(), HistoryPager\doBatchLookups(), ContribsPager\doBatchLookups(), UsersPager\doBatchLookups(), UserCache\doQuery(), MediaWiki\Storage\DerivedPageDataUpdater\doUpdates(), ChangesListSpecialPage\execute(), LanguageConverterSpecific\findVariantLink(), ImageHistoryPseudoPager\getBody(), NewUsersLogFormatter\getPreloadTitles(), WantedPagesPage\getQueryInfo(), SpecialMytalk\getRedirect(), Article\getRobotPolicy(), LogPager\getStartBody(), MergeHistoryPager\getStartBody(), NewPagesPager\getStartBody(), NamespaceInfo\hasGenderDistinction(), EditPage\importFormData(), UppercaseTitlesForUnicodeTransition\isUserPage(), Language\needsGenderDistinction(), WikiPage\onArticleDelete(), InfoAction\pageInfo(), BlockListPager\preprocessResults(), ProtectedPagesPager\preprocessResults(), GenerateSitemap\setNamespacePriorities(), SpecialUndelete\showHistory(), EditPage\showIntro(), Article\showMissingArticle(), Article\showViewFooter(), MediaWikiTitleCodec\splitTitleString(), and Linker\userTalkLink().

◆ OT_HTML

const OT_HTML 1

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

Definition at line 157 of file Defines.php.

◆ OT_MSG

const OT_MSG 3

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

Definition at line 160 of file Defines.php.

◆ OT_PLAIN

const OT_PLAIN 4

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

Definition at line 161 of file Defines.php.

◆ OT_PREPROCESS

const OT_PREPROCESS 3

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

Definition at line 159 of file Defines.php.

◆ OT_WIKI

const OT_WIKI 2

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

Definition at line 158 of file Defines.php.

◆ PROTO_CANONICAL

◆ PROTO_CURRENT

◆ PROTO_HTTP

◆ PROTO_HTTPS

◆ PROTO_INTERNAL

const PROTO_INTERNAL 2

Protocol constants for wfExpandUrl()

Definition at line 197 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

RecentChange type identifiers

Definition at line 117 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(), RebuildRecentchanges\rebuildRecentChangesTablePass3(), EnhancedChangesList\recentChangesBlockGroup(), EnhancedChangesList\recentChangesBlockLine(), SpecialWatchlist\registerFilters(), ApiQueryRecentChanges\run(), Article\showPatrolFooter(), and ChangesList\userCan().

◆ RC_NEW

◆ SCHEMA_COMPAT_NEW

Schema compatibility flags.

Used as flags in a bit field that indicates whether the old or new schema (or both) are read or written.

  • SCHEMA_COMPAT_WRITE_OLD: Whether information is written to the old schema.
  • SCHEMA_COMPAT_READ_OLD: Whether information stored in the old schema is read.
  • SCHEMA_COMPAT_WRITE_TEMP: Whether information is written to a temporary intermediate schema.
  • SCHEMA_COMPAT_READ_TEMP: Whether information is read from the temporary intermediate schema.
  • SCHEMA_COMPAT_WRITE_NEW: Whether information is written to the new schema
  • SCHEMA_COMPAT_READ_NEW: Whether information is read from the new schema

Definition at line 276 of file Defines.php.

◆ SCHEMA_COMPAT_OLD

Schema compatibility flags.

Used as flags in a bit field that indicates whether the old or new schema (or both) are read or written.

  • SCHEMA_COMPAT_WRITE_OLD: Whether information is written to the old schema.
  • SCHEMA_COMPAT_READ_OLD: Whether information stored in the old schema is read.
  • SCHEMA_COMPAT_WRITE_TEMP: Whether information is written to a temporary intermediate schema.
  • SCHEMA_COMPAT_READ_TEMP: Whether information is read from the temporary intermediate schema.
  • SCHEMA_COMPAT_WRITE_NEW: Whether information is written to the new schema
  • SCHEMA_COMPAT_READ_NEW: Whether information is read from the new schema

Definition at line 274 of file Defines.php.

Referenced by ActorMigration\__construct().

◆ SCHEMA_COMPAT_READ_BOTH

const SCHEMA_COMPAT_READ_BOTH SCHEMA_COMPAT_READ_OLD | SCHEMA_COMPAT_READ_NEW

Schema compatibility flags.

Used as flags in a bit field that indicates whether the old or new schema (or both) are read or written.

  • SCHEMA_COMPAT_WRITE_OLD: Whether information is written to the old schema.
  • SCHEMA_COMPAT_READ_OLD: Whether information stored in the old schema is read.
  • SCHEMA_COMPAT_WRITE_TEMP: Whether information is written to a temporary intermediate schema.
  • SCHEMA_COMPAT_READ_TEMP: Whether information is read from the temporary intermediate schema.
  • SCHEMA_COMPAT_WRITE_NEW: Whether information is written to the new schema
  • SCHEMA_COMPAT_READ_NEW: Whether information is read from the new schema

Definition at line 273 of file Defines.php.

Referenced by CommentStore\__construct(), CommentStore\getCommentInternal(), CommentStore\getFields(), and CommentStore\getJoin().

◆ SCHEMA_COMPAT_READ_MASK

Schema compatibility flags.

Used as flags in a bit field that indicates whether the old or new schema (or both) are read or written.

  • SCHEMA_COMPAT_WRITE_OLD: Whether information is written to the old schema.
  • SCHEMA_COMPAT_READ_OLD: Whether information stored in the old schema is read.
  • SCHEMA_COMPAT_WRITE_TEMP: Whether information is written to a temporary intermediate schema.
  • SCHEMA_COMPAT_READ_TEMP: Whether information is read from the temporary intermediate schema.
  • SCHEMA_COMPAT_WRITE_NEW: Whether information is written to the new schema
  • SCHEMA_COMPAT_READ_NEW: Whether information is read from the new schema

Definition at line 269 of file Defines.php.

Referenced by ActorMigrationBase\__construct().

◆ SCHEMA_COMPAT_READ_NEW

const SCHEMA_COMPAT_READ_NEW 0x200

Schema compatibility flags.

Used as flags in a bit field that indicates whether the old or new schema (or both) are read or written.

  • SCHEMA_COMPAT_WRITE_OLD: Whether information is written to the old schema.
  • SCHEMA_COMPAT_READ_OLD: Whether information stored in the old schema is read.
  • SCHEMA_COMPAT_WRITE_TEMP: Whether information is written to a temporary intermediate schema.
  • SCHEMA_COMPAT_READ_TEMP: Whether information is read from the temporary intermediate schema.
  • SCHEMA_COMPAT_WRITE_NEW: Whether information is written to the new schema
  • SCHEMA_COMPAT_READ_NEW: Whether information is read from the new schema

Definition at line 267 of file Defines.php.

Referenced by ActorMigrationBase\__construct(), CommentStore\getCommentInternal(), CommentStore\getFields(), CommentStore\getJoin(), ActorMigrationBase\getWhere(), and InfoAction\pageCounts().

◆ SCHEMA_COMPAT_READ_OLD

const SCHEMA_COMPAT_READ_OLD 0x02

Schema compatibility flags.

Used as flags in a bit field that indicates whether the old or new schema (or both) are read or written.

  • SCHEMA_COMPAT_WRITE_OLD: Whether information is written to the old schema.
  • SCHEMA_COMPAT_READ_OLD: Whether information stored in the old schema is read.
  • SCHEMA_COMPAT_WRITE_TEMP: Whether information is written to a temporary intermediate schema.
  • SCHEMA_COMPAT_READ_TEMP: Whether information is read from the temporary intermediate schema.
  • SCHEMA_COMPAT_WRITE_NEW: Whether information is written to the new schema
  • SCHEMA_COMPAT_READ_NEW: Whether information is read from the new schema

Definition at line 263 of file Defines.php.

Referenced by ActorMigrationBase\__construct(), CommentStore\getCommentInternal(), CommentStore\getFields(), ActorMigrationBase\getJoin(), and CommentStore\getJoin().

◆ SCHEMA_COMPAT_READ_TEMP

const SCHEMA_COMPAT_READ_TEMP 0x20

Schema compatibility flags.

Used as flags in a bit field that indicates whether the old or new schema (or both) are read or written.

  • SCHEMA_COMPAT_WRITE_OLD: Whether information is written to the old schema.
  • SCHEMA_COMPAT_READ_OLD: Whether information stored in the old schema is read.
  • SCHEMA_COMPAT_WRITE_TEMP: Whether information is written to a temporary intermediate schema.
  • SCHEMA_COMPAT_READ_TEMP: Whether information is read from the temporary intermediate schema.
  • SCHEMA_COMPAT_WRITE_NEW: Whether information is written to the new schema
  • SCHEMA_COMPAT_READ_NEW: Whether information is read from the new schema

Definition at line 265 of file Defines.php.

Referenced by ActorMigrationBase\__construct(), ApiQueryContributors\execute(), ActorMigrationBase\getJoin(), ActorMigrationBase\getWhere(), ActorMigrationBase\isAnon(), ActorMigrationBase\isNotAnon(), ApiQueryUserContribs\prepareQuery(), ApiQueryAllRevisions\run(), ApiQueryRevisions\run(), and RevisionDeleteUser\setUsernameBitfields().

◆ SCHEMA_COMPAT_TEMP

Schema compatibility flags.

Used as flags in a bit field that indicates whether the old or new schema (or both) are read or written.

  • SCHEMA_COMPAT_WRITE_OLD: Whether information is written to the old schema.
  • SCHEMA_COMPAT_READ_OLD: Whether information stored in the old schema is read.
  • SCHEMA_COMPAT_WRITE_TEMP: Whether information is written to a temporary intermediate schema.
  • SCHEMA_COMPAT_READ_TEMP: Whether information is read from the temporary intermediate schema.
  • SCHEMA_COMPAT_WRITE_NEW: Whether information is written to the new schema
  • SCHEMA_COMPAT_READ_NEW: Whether information is read from the new schema

Definition at line 275 of file Defines.php.

◆ SCHEMA_COMPAT_WRITE_BOTH

const SCHEMA_COMPAT_WRITE_BOTH SCHEMA_COMPAT_WRITE_OLD | SCHEMA_COMPAT_WRITE_NEW

Schema compatibility flags.

Used as flags in a bit field that indicates whether the old or new schema (or both) are read or written.

  • SCHEMA_COMPAT_WRITE_OLD: Whether information is written to the old schema.
  • SCHEMA_COMPAT_READ_OLD: Whether information stored in the old schema is read.
  • SCHEMA_COMPAT_WRITE_TEMP: Whether information is written to a temporary intermediate schema.
  • SCHEMA_COMPAT_READ_TEMP: Whether information is read from the temporary intermediate schema.
  • SCHEMA_COMPAT_WRITE_NEW: Whether information is written to the new schema
  • SCHEMA_COMPAT_READ_NEW: Whether information is read from the new schema

Definition at line 270 of file Defines.php.

Referenced by CommentStore\__construct().

◆ SCHEMA_COMPAT_WRITE_MASK

Schema compatibility flags.

Used as flags in a bit field that indicates whether the old or new schema (or both) are read or written.

  • SCHEMA_COMPAT_WRITE_OLD: Whether information is written to the old schema.
  • SCHEMA_COMPAT_READ_OLD: Whether information stored in the old schema is read.
  • SCHEMA_COMPAT_WRITE_TEMP: Whether information is written to a temporary intermediate schema.
  • SCHEMA_COMPAT_READ_TEMP: Whether information is read from the temporary intermediate schema.
  • SCHEMA_COMPAT_WRITE_NEW: Whether information is written to the new schema
  • SCHEMA_COMPAT_READ_NEW: Whether information is read from the new schema

Definition at line 268 of file Defines.php.

Referenced by ActorMigrationBase\__construct().

◆ SCHEMA_COMPAT_WRITE_NEW

const SCHEMA_COMPAT_WRITE_NEW 0x100

Schema compatibility flags.

Used as flags in a bit field that indicates whether the old or new schema (or both) are read or written.

  • SCHEMA_COMPAT_WRITE_OLD: Whether information is written to the old schema.
  • SCHEMA_COMPAT_READ_OLD: Whether information stored in the old schema is read.
  • SCHEMA_COMPAT_WRITE_TEMP: Whether information is written to a temporary intermediate schema.
  • SCHEMA_COMPAT_READ_TEMP: Whether information is read from the temporary intermediate schema.
  • SCHEMA_COMPAT_WRITE_NEW: Whether information is written to the new schema
  • SCHEMA_COMPAT_READ_NEW: Whether information is read from the new schema

Definition at line 266 of file Defines.php.

Referenced by ActorMigrationBase\__construct(), CommentStore\createComment(), ReassignEdits\doReassignEdits(), ActorMigrationBase\getInsertValues(), ActorMigrationBase\getInsertValuesWithTempTable(), FindMissingActors\getTables(), and CommentStore\insertInternal().

◆ SCHEMA_COMPAT_WRITE_OLD

const SCHEMA_COMPAT_WRITE_OLD 0x01

Schema compatibility flags.

Used as flags in a bit field that indicates whether the old or new schema (or both) are read or written.

  • SCHEMA_COMPAT_WRITE_OLD: Whether information is written to the old schema.
  • SCHEMA_COMPAT_READ_OLD: Whether information stored in the old schema is read.
  • SCHEMA_COMPAT_WRITE_TEMP: Whether information is written to a temporary intermediate schema.
  • SCHEMA_COMPAT_READ_TEMP: Whether information is read from the temporary intermediate schema.
  • SCHEMA_COMPAT_WRITE_NEW: Whether information is written to the new schema
  • SCHEMA_COMPAT_READ_NEW: Whether information is read from the new schema

Definition at line 262 of file Defines.php.

Referenced by ActorMigrationBase\__construct(), ActorMigrationBase\getInsertValues(), ActorMigrationBase\getInsertValuesWithTempTable(), CommentStore\insert(), and CommentStore\insertInternal().

◆ SCHEMA_COMPAT_WRITE_OLD_AND_TEMP

const SCHEMA_COMPAT_WRITE_OLD_AND_TEMP SCHEMA_COMPAT_WRITE_OLD | SCHEMA_COMPAT_WRITE_TEMP

Schema compatibility flags.

Used as flags in a bit field that indicates whether the old or new schema (or both) are read or written.

  • SCHEMA_COMPAT_WRITE_OLD: Whether information is written to the old schema.
  • SCHEMA_COMPAT_READ_OLD: Whether information stored in the old schema is read.
  • SCHEMA_COMPAT_WRITE_TEMP: Whether information is written to a temporary intermediate schema.
  • SCHEMA_COMPAT_READ_TEMP: Whether information is read from the temporary intermediate schema.
  • SCHEMA_COMPAT_WRITE_NEW: Whether information is written to the new schema
  • SCHEMA_COMPAT_READ_NEW: Whether information is read from the new schema

Definition at line 271 of file Defines.php.

◆ SCHEMA_COMPAT_WRITE_TEMP

const SCHEMA_COMPAT_WRITE_TEMP 0x10

Schema compatibility flags.

Used as flags in a bit field that indicates whether the old or new schema (or both) are read or written.

  • SCHEMA_COMPAT_WRITE_OLD: Whether information is written to the old schema.
  • SCHEMA_COMPAT_READ_OLD: Whether information stored in the old schema is read.
  • SCHEMA_COMPAT_WRITE_TEMP: Whether information is written to a temporary intermediate schema.
  • SCHEMA_COMPAT_READ_TEMP: Whether information is read from the temporary intermediate schema.
  • SCHEMA_COMPAT_WRITE_NEW: Whether information is written to the new schema
  • SCHEMA_COMPAT_READ_NEW: Whether information is read from the new schema

Definition at line 264 of file Defines.php.

Referenced by ActorMigrationBase\__construct(), ReassignEdits\doReassignEdits(), ActorMigrationBase\getInsertValues(), ActorMigrationBase\getInsertValuesWithTempTable(), FindMissingActors\getTables(), and MergeHistory\merge().

◆ SCHEMA_COMPAT_WRITE_TEMP_AND_NEW

const SCHEMA_COMPAT_WRITE_TEMP_AND_NEW SCHEMA_COMPAT_WRITE_TEMP | SCHEMA_COMPAT_WRITE_NEW

Schema compatibility flags.

Used as flags in a bit field that indicates whether the old or new schema (or both) are read or written.

  • SCHEMA_COMPAT_WRITE_OLD: Whether information is written to the old schema.
  • SCHEMA_COMPAT_READ_OLD: Whether information stored in the old schema is read.
  • SCHEMA_COMPAT_WRITE_TEMP: Whether information is written to a temporary intermediate schema.
  • SCHEMA_COMPAT_READ_TEMP: Whether information is read from the temporary intermediate schema.
  • SCHEMA_COMPAT_WRITE_NEW: Whether information is written to the new schema
  • SCHEMA_COMPAT_READ_NEW: Whether information is read from the new schema

Definition at line 272 of file Defines.php.

◆ SFH_NO_HASH

const SFH_NO_HASH 1

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

Definition at line 170 of file Defines.php.

◆ SFH_OBJECT_ARGS

const SFH_OBJECT_ARGS 2

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

Definition at line 171 of file Defines.php.

◆ SHELL_MAX_ARG_STRLEN

const SHELL_MAX_ARG_STRLEN '100000'

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

Definition at line 244 of file Defines.php.

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

◆ XML_DUMP_SCHEMA_VERSION_11

const XML_DUMP_SCHEMA_VERSION_11 '0.11'

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

Referenced by XmlDumpWriter\writeSlot().