|
MediaWiki master
|
A few constants that might be needed during LocalSettings.php. More...
Go to the source code of this file.
Variables | |
| const | MW_HAS_SPECIAL_INTERWIKI 1 |
| Indicate that the Interwiki extension should not be loaded (it is now in core). | |
| const | MW_SUPPORTS_RESOURCE_MODULES 1 |
| Support for $wgResourceModules. | |
| const | MW_VERSION '1.46.0-alpha' |
| 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_HASH 'hash' |
| const | CACHE_MEMCACHED 'memcached-php' |
| 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 |
| Fill in blank summaries with generated text where possible. | |
| const | EDIT_DEFER_UPDATES 32 |
| const | EDIT_FORCE_BOT 16 |
| Mark the edit a "bot" edit regardless of user rights. | |
| const | EDIT_IMPLICIT 256 |
| The edit is a side effect and does not represent an active user contribution. | |
| const | EDIT_INTERNAL 128 |
| Signal that the page retrieve/save cycle happened entirely in this request. | |
| const | EDIT_MINOR 4 |
| Mark this edit minor, if the user is allowed to do so. | |
| const | EDIT_NEW 1 |
| Article is assumed to be non-existent, fail if it exists. | |
| const | EDIT_SILENT 8 |
| Do not notify other users (e.g. | |
| const | EDIT_SUPPRESS_RC EDIT_SILENT |
| const | EDIT_UPDATE 2 |
| Article is assumed to be pre-existing, fail if it doesn't exist. | |
| 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_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 | CUDCOND_AFTER 'registered-after' |
| const | CUDCOND_ANON 'anonymous-user' |
| const | CUDCOND_NAMED 'named-user' |
| const | CUDCOND_USERGROUP 'usergroup' |
| const | PROTO_CANONICAL 1 |
| const | PROTO_CURRENT PROTO_FALLBACK |
| const | PROTO_FALLBACK 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_VUE 'vue' |
| 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_VUE 'application/vue+xml' |
| For Vue pages. | |
| 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' |
A few constants that might be needed during LocalSettings.php.
Definition in file Defines.php.
| const APCOND_AGE 2 |
Autopromote conditions
Definition at line 191 of file Defines.php.
| const APCOND_AGE_FROM_EDIT 7 |
Autopromote conditions
Definition at line 196 of file Defines.php.
| const APCOND_BLOCKED 8 |
Autopromote conditions
Definition at line 197 of file Defines.php.
| const APCOND_EDITCOUNT 1 |
Autopromote conditions
Definition at line 190 of file Defines.php.
| const APCOND_EMAILCONFIRMED 3 |
Autopromote conditions
Definition at line 192 of file Defines.php.
| const APCOND_INGROUPS 4 |
Autopromote conditions
Definition at line 193 of file Defines.php.
| const APCOND_IPINRANGE 6 |
Autopromote conditions
Definition at line 195 of file Defines.php.
| const APCOND_ISBOT 9 |
Autopromote conditions
Definition at line 198 of file Defines.php.
| const APCOND_ISIP 5 |
Autopromote conditions
Definition at line 194 of file Defines.php.
| const AV_NO_VIRUS 0 |
Antivirus result codes, for use in $wgAntivirusSetup.
Definition at line 83 of file Defines.php.
Referenced by MediaWiki\Upload\UploadVerification\detectVirus().
| const AV_SCAN_ABORTED -1 |
Antivirus result codes, for use in $wgAntivirusSetup.
Definition at line 85 of file Defines.php.
Referenced by MediaWiki\Upload\UploadVerification\detectVirus().
| const AV_SCAN_FAILED false |
Antivirus result codes, for use in $wgAntivirusSetup.
Definition at line 86 of file Defines.php.
Referenced by MediaWiki\Upload\UploadVerification\detectVirus().
| const AV_VIRUS_FOUND 1 |
Antivirus result codes, for use in $wgAntivirusSetup.
Definition at line 84 of file Defines.php.
| const CACHE_ACCEL 3 |
Cache type
Definition at line 76 of file Defines.php.
Referenced by ObjectCacheFactory\getAnythingId().
| const CACHE_ANYTHING -1 |
Cache type
Definition at line 72 of file Defines.php.
Referenced by MediaWiki\Html\TemplateParser\__construct(), ObjectCacheFactory\getAnythingId(), MediaWiki\Specials\SpecialVersion\getCreditsForExtension(), MediaWiki\Installer\Installer\getInstallerConfig(), ObjectCacheFactory\isDatabaseId(), and ObjectCache\newAnything().
| const CACHE_DB 1 |
Cache type
Definition at line 74 of file Defines.php.
Referenced by ObjectCacheFactory\getAnythingId(), and MediaWiki\Installer\Installer\getInstallerConfig().
| const CACHE_HASH 'hash' |
Cache type
Definition at line 77 of file Defines.php.
Referenced by MediaWiki\ResourceLoader\FileModule\compileLessString().
| const CACHE_MEMCACHED 'memcached-php' |
Cache type
Definition at line 75 of file Defines.php.
Referenced by Mcc\execute(), and MediaWiki\Installer\Installer\getInstallerConfig().
| const CACHE_NONE 0 |
Cache type
Definition at line 73 of file Defines.php.
Referenced by ObjectCacheFactory\getAnythingId(), MediaWiki\Installer\Installer\getInstallerConfig(), ObjectCacheFactory\getLocalServerInstance(), and MediaWiki\Installer\Installer\overrideConfig().
| const CONTENT_FORMAT_CSS 'text/css' |
For CSS pages.
Definition at line 257 of file Defines.php.
Referenced by MediaWiki\Content\CssContentHandler\__construct(), and MediaWiki\ResourceLoader\WikiModule\getContent().
| const CONTENT_FORMAT_HTML 'text/html' |
| const CONTENT_FORMAT_JAVASCRIPT 'text/javascript' |
For JS pages.
Definition at line 255 of file Defines.php.
Referenced by MediaWiki\Content\JavaScriptContentHandler\__construct(), and MediaWiki\ResourceLoader\WikiModule\getContent().
| const CONTENT_FORMAT_JSON 'application/json' |
For future use with the API, and for use by extensions.
Definition at line 267 of file Defines.php.
Referenced by MediaWiki\Content\JsonContentHandler\__construct(), and MediaWiki\ResourceLoader\WikiModule\getContent().
| const CONTENT_FORMAT_SERIALIZED 'application/vnd.php.serialized' |
For future use with the API and for extensions.
Definition at line 265 of file Defines.php.
| const CONTENT_FORMAT_TEXT 'text/plain' |
| const CONTENT_FORMAT_VUE 'application/vue+xml' |
For Vue pages.
Definition at line 259 of file Defines.php.
Referenced by MediaWiki\Content\VueContentHandler\__construct(), and MediaWiki\ResourceLoader\WikiModule\getContent().
| 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 253 of file Defines.php.
Referenced by MediaWiki\Content\WikitextContentHandler\__construct().
| const CONTENT_FORMAT_XML 'application/xml' |
For future use with the API, and for use by extensions.
Definition at line 269 of file Defines.php.
| 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 237 of file Defines.php.
Referenced by MediaWiki\Revision\MainSlotRoleHandler\getDefaultModel(), MediaWiki\EditPage\EditPage\getPreviewText(), MediaWiki\ResourceLoader\WikiModule\invalidateModuleCache(), MediaWiki\Title\Title\isSiteCssConfigPage(), and MediaWiki\Title\Title\isUserCssConfigPage().
| 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 236 of file Defines.php.
Referenced by MediaWiki\Revision\MainSlotRoleHandler\getDefaultModel(), MediaWiki\EditPage\EditPage\getPreviewText(), MediaWiki\ResourceLoader\WikiModule\invalidateModuleCache(), MediaWiki\Title\Title\isSiteJsConfigPage(), and MediaWiki\Title\Title\isUserJsConfigPage().
| 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 239 of file Defines.php.
Referenced by MediaWiki\Revision\MainSlotRoleHandler\getDefaultModel(), MediaWiki\EditPage\EditPage\getPreviewText(), MediaWiki\Title\Title\isSiteJsonConfigPage(), and MediaWiki\Title\Title\isUserJsonConfigPage().
| 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 238 of file Defines.php.
Referenced by TextSlotDiffRenderer\diff(), DifferenceEngine\generateTextDiffBody(), and MediaWiki\Revision\MainSlotRoleHandler\getDefaultModel().
| 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 242 of file Defines.php.
Referenced by MediaWiki\Revision\FallbackSlotRoleHandler\__construct().
| const CONTENT_MODEL_VUE 'vue' |
Definition at line 241 of file Defines.php.
Referenced by MediaWiki\Revision\MainSlotRoleHandler\getDefaultModel(), MediaWiki\EditPage\EditPage\getPreviewText(), MediaWiki\ResourceLoader\WikiModule\invalidateModuleCache(), MediaWiki\Title\Title\isSiteJsConfigPage(), and MediaWiki\Title\Title\isUserJsConfigPage().
| 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 235 of file Defines.php.
Referenced by MediaWiki\Content\WikitextContent\__construct(), MediaWiki\Revision\MainSlotRoleHandler\__construct(), DifferenceEngineSlotDiffRenderer\__construct(), MediaWiki\Api\ApiParse\execute(), MediaWiki\Api\ApiParse\getAllowedParams(), MediaWiki\Revision\MainSlotRoleHandler\getDefaultModel(), MediaWiki\Content\TextContent\getWikitextForTransclusion(), MediaWiki\Title\Title\isWikitextPage(), CompareParsers\processRevision(), and MediaWiki\Maintenance\TextPassDumper\startElement().
| const CUDCOND_AFTER 'registered-after' |
Conditional user defaults conditions
Strings are used to make the values easier to use in extension.json
Definition at line 207 of file Defines.php.
| const CUDCOND_ANON 'anonymous-user' |
Conditional user defaults conditions
Strings are used to make the values easier to use in extension.json
Definition at line 208 of file Defines.php.
| const CUDCOND_NAMED 'named-user' |
Conditional user defaults conditions
Strings are used to make the values easier to use in extension.json
Definition at line 209 of file Defines.php.
| const CUDCOND_USERGROUP 'usergroup' |
Conditional user defaults conditions
Strings are used to make the values easier to use in extension.json
Definition at line 210 of file Defines.php.
| const EDIT_AUTOSUMMARY 64 |
Fill in blank summaries with generated text where possible.
Definition at line 135 of file Defines.php.
Referenced by EditCLI\execute(), and MediaWiki\Actions\McrUndoAction\onSubmit().
| const EDIT_DEFER_UPDATES 32 |
Definition at line 132 of file Defines.php.
| const EDIT_FORCE_BOT 16 |
Mark the edit a "bot" edit regardless of user rights.
Definition at line 129 of file Defines.php.
Referenced by MediaWiki\Content\ContentModelChange\doContentModelChange(), EditCLI\execute(), and MediaWiki\Page\RollbackPage\rollback().
| const EDIT_IMPLICIT 256 |
The edit is a side effect and does not represent an active user contribution.
Definition at line 141 of file Defines.php.
Referenced by MediaWiki\Storage\PageUpdater\saveDummyRevision().
| const EDIT_INTERNAL 128 |
Signal that the page retrieve/save cycle happened entirely in this request.
Definition at line 138 of file Defines.php.
Referenced by MediaWiki\Content\ContentModelChange\doContentModelChange(), MediaWiki\Storage\PageEditStash\parseAndCache(), MediaWiki\Page\RollbackPage\rollback(), MediaWiki\JobQueue\Jobs\DoubleRedirectJob\run(), and MediaWiki\Storage\PageUpdater\saveDummyRevision().
| const EDIT_MINOR 4 |
Mark this edit minor, if the user is allowed to do so.
Definition at line 120 of file Defines.php.
Referenced by EditCLI\execute(), ImportReporter\reportPage(), MediaWiki\Page\RollbackPage\rollback(), MediaWiki\JobQueue\Jobs\DoubleRedirectJob\run(), and MediaWiki\Storage\PageUpdater\saveRevision().
| const EDIT_NEW 1 |
Article is assumed to be non-existent, fail if it exists.
Article edit flags
Definition at line 114 of file Defines.php.
Referenced by MediaWiki\Page\WikiPage\checkFlags(), MediaWiki\Content\ContentModelChange\doContentModelChange(), and MediaWiki\Storage\PageUpdater\saveRevision().
| const EDIT_SILENT 8 |
Do not notify other users (e.g.
via RecentChanges or watchlist)
Definition at line 123 of file Defines.php.
Referenced by ImportReporter\reportPage().
| const EDIT_SUPPRESS_RC EDIT_SILENT |
Definition at line 126 of file Defines.php.
Referenced by EditCLI\execute(), and MediaWiki\JobQueue\Jobs\DoubleRedirectJob\run().
| const EDIT_UPDATE 2 |
Article is assumed to be pre-existing, fail if it doesn't exist.
Definition at line 117 of file Defines.php.
Referenced by MediaWiki\Page\WikiPage\checkFlags(), MediaWiki\Content\ContentModelChange\doContentModelChange(), MediaWiki\Actions\McrUndoAction\onSubmit(), MediaWiki\Page\RollbackPage\rollback(), MediaWiki\JobQueue\Jobs\DoubleRedirectJob\run(), MediaWiki\Storage\PageUpdater\saveDummyRevision(), and MediaWiki\Storage\PageUpdater\saveRevision().
| const LIST_AND IDatabase::LIST_AND |
Obsolete IDatabase::makeList() constants These are also available as Database class constants
Definition at line 30 of file Defines.php.
| const LIST_COMMA IDatabase::LIST_COMMA |
Obsolete IDatabase::makeList() constants These are also available as Database class constants
Definition at line 29 of file Defines.php.
| const LIST_NAMES IDatabase::LIST_NAMES |
Obsolete IDatabase::makeList() constants These are also available as Database class constants
Definition at line 32 of file Defines.php.
| const LIST_OR IDatabase::LIST_OR |
Obsolete IDatabase::makeList() constants These are also available as Database class constants
Definition at line 33 of file Defines.php.
Referenced by MediaWiki\Logging\LogEventsList\getBlockLogWarningBox(), and MediaWiki\Block\DatabaseBlockStore\newListFromIPs().
| const LIST_SET IDatabase::LIST_SET |
Obsolete IDatabase::makeList() constants These are also available as Database class constants
Definition at line 31 of file Defines.php.
| 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.
Do not use these constants to query the feature flag. If you wish to check if your code should perform a particular kind of read or write operation, use the appropriate SCHEMA_COMPAT_XXX flag. It is generally an error to use MIGRATION_XXX constants in a bitwise operation.
Definition at line 338 of file Defines.php.
| 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.
Do not use these constants to query the feature flag. If you wish to check if your code should perform a particular kind of read or write operation, use the appropriate SCHEMA_COMPAT_XXX flag. It is generally an error to use MIGRATION_XXX constants in a bitwise operation.
Definition at line 335 of file Defines.php.
| 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.
Do not use these constants to query the feature flag. If you wish to check if your code should perform a particular kind of read or write operation, use the appropriate SCHEMA_COMPAT_XXX flag. It is generally an error to use MIGRATION_XXX constants in a bitwise operation.
Definition at line 336 of file Defines.php.
| 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.
Do not use these constants to query the feature flag. If you wish to check if your code should perform a particular kind of read or write operation, use the appropriate SCHEMA_COMPAT_XXX flag. It is generally an error to use MIGRATION_XXX constants in a bitwise operation.
Definition at line 337 of file Defines.php.
| const MW_DATE_DEFAULT 'default' |
Date format selectors; used in user preference storage and by Language::date() and co.
Definition at line 93 of file Defines.php.
| const MW_DATE_DMY 'dmy' |
Date format selectors; used in user preference storage and by Language::date() and co.
Definition at line 95 of file Defines.php.
| const MW_DATE_ISO 'ISO 8601' |
Date format selectors; used in user preference storage and by Language::date() and co.
Definition at line 97 of file Defines.php.
| const MW_DATE_MDY 'mdy' |
Date format selectors; used in user preference storage and by Language::date() and co.
Definition at line 94 of file Defines.php.
| const MW_DATE_YMD 'ymd' |
Date format selectors; used in user preference storage and by Language::date() and co.
Definition at line 96 of file Defines.php.
| const MW_EDITFILTERMERGED_SUPPORTS_API 1 |
Hook support constants
Definition at line 150 of file Defines.php.
| const MW_HAS_SPECIAL_INTERWIKI 1 |
Indicate that the Interwiki extension should not be loaded (it is now in core).
Definition at line 160 of file Defines.php.
| const MW_SUPPORTS_CONTENTHANDLER 1 |
Hook support constants
Definition at line 149 of file Defines.php.
| const MW_SUPPORTS_LOCALISATIONCACHE 1 |
Hook support constants
Definition at line 148 of file Defines.php.
| const MW_SUPPORTS_PARSERFIRSTCALLINIT 1 |
Hook support constants
Definition at line 147 of file Defines.php.
| const MW_SUPPORTS_RESOURCE_MODULES 1 |
Support for $wgResourceModules.
Definition at line 154 of file Defines.php.
| const MW_VERSION '1.46.0-alpha' |
The running version of MediaWiki.
This replaces the $wgVersion global found in earlier versions. When updating the XX part of 1.XX.YY, please remember to also bump the stand-alone duplicate of this in PHPVersionCheck.
Definition at line 23 of file Defines.php.
Referenced by MediaWiki\Installer\Pingback\__construct(), MediaWiki\Logger\Monolog\WikiProcessor\__invoke(), MediaWiki\Installer\WebInstallerUpgrade\execute(), DumpMessages\execute(), UpdateMediaWiki\execute(), MediaWiki\Maintenance\Version\execute(), MediaWiki\Debug\MWDebug\getDebugInfo(), MediaWiki\Installer\WebInstallerReleaseNotes\getFileName(), MediaWiki\Installer\WebInstaller\getFingerprint(), MediaWiki\Output\OutputPage\getHeadLinksArray(), MediaWiki\Http\HttpRequestFactory\getUserAgent(), MediaWiki\Specials\SpecialVersion\getVersion(), MediaWiki\Specials\SpecialVersion\getVersionLinked(), MediaWiki\Feed\AtomFeed\outHeader(), MediaWiki\Feed\RSSFeed\outHeader(), and MediaWiki\Installer\WebInstallerOutput\outputTitle().
| 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 65 of file Defines.php.
Referenced by DumpNamespaceFilter\__construct(), MediaWiki\Pager\CategoryPager\__construct(), MediaWiki\Specials\SpecialUncategorizedCategories\__construct(), MediaWiki\Output\OutputPage\addCategoryLinks(), MediaWiki\Output\OutputPage\addCategoryLinksToLBAndGetResult(), MediaWiki\Skin\Skin\buildNavUrls(), MediaWiki\Parser\Parsoid\Config\SiteConfig\categoryRegexp(), MediaWiki\Category\CategoryViewer\doCategoryQuery(), MediaWiki\Deferred\LinksUpdate\LinksDeletionUpdate\doIncrementalUpdate(), MediaWiki\Parser\LinkHolderArray\doVariants(), MediaWiki\Api\ApiQueryCategoryInfo\execute(), RefreshLinks\execute(), MediaWiki\Api\ApiQueryCategoryList\executeQuery(), MediaWiki\Specials\SpecialMostLinkedCategories\formatResult(), MediaWiki\Specials\SpecialUncategorizedCategories\formatResult(), MediaWiki\Specials\SpecialUnusedCategories\formatResult(), MediaWiki\Pager\CategoryPager\formatRow(), MediaWiki\Search\SearchWidgets\FullSearchResultWidget\generateSizeHtml(), MediaWiki\Pager\CategoryPager\getBody(), MediaWiki\Page\WikiPage\getCategories(), MediaWiki\Skin\Skin\getCategories(), DumpCategoriesAsRdf\getCategoryIterator(), MediaWiki\Skin\Skin\getCategoryLinks(), MediaWiki\Title\NamespaceInfo\getCategoryLinkType(), CategoryChangesAsRdf\getChangedCatsIterator(), CategoryChangesAsRdf\getDeletedCatsIterator(), MediaWiki\Page\WikiFilePage\getForeignCategories(), MediaWiki\Specials\SpecialRandomInCategory\getFormFields(), MediaWiki\Page\WikiPage\getHiddenCategories(), MediaWiki\Category\Category\getMembers(), MediaWiki\Specials\SpecialRandomInCategory\getMinAndMaxForCat(), CategoryChangesAsRdf\getMovedCatsIterator(), CategoryChangesAsRdf\getNewCatsIterator(), MediaWiki\Specials\SpecialWantedFiles\getPageHeader(), MediaWiki\Specials\SpecialExport\getPagesFromCategory(), MediaWiki\Title\Title\getParentCategories(), MediaWiki\Specials\SpecialRandomInCategory\getQueryBuilder(), MediaWiki\Specials\SpecialMostLinkedCategories\getQueryInfo(), MediaWiki\Specials\SpecialUnusedCategories\getQueryInfo(), MediaWiki\Specials\SpecialWantedCategories\getQueryInfo(), CategoryChangesAsRdf\getRestoredCatsIterator(), MediaWiki\Pager\CategoryPager\getStartForm(), CategoryChangesAsRdf\handleCategorization(), CategoryChangesAsRdf\handleMoves(), MediaWiki\Category\CategoriesRdf\labelToUrl(), MediaWiki\Content\WikitextContentHandler\makeRedirectContent(), MediaWiki\Specials\SpecialRecentChangesLinked\modifyQuery(), MediaWiki\Category\Category\newFromName(), MediaWiki\JobQueue\Jobs\CategoryMembershipChangeJob\notifyUpdatesForRevision(), MediaWiki\Page\WikiPage\onArticleCreate(), MediaWiki\Specials\SpecialRandomInCategory\onSubmit(), MediaWiki\Parser\CoreParserFunctions\pagesincategory(), MediaWiki\Category\Category\refreshCounts(), MediaWiki\Category\Category\refreshCountsIfSmall(), MediaWiki\Title\Title\touchLinks(), MediaWiki\Page\CategoryPage\view(), MediaWiki\Category\CategoriesRdf\writeCategoryData(), and MediaWiki\Category\CategoriesRdf\writeCategoryLinkData().
| 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 66 of file Defines.php.
Referenced by DumpNamespaceFilter\__construct(), MediaWiki\EditPage\TextConflictHelper\incrementConflictStats(), and MediaWiki\EditPage\TextConflictHelper\incrementResolvedStats().
| 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 57 of file Defines.php.
Referenced by DumpNamespaceFilter\__construct(), MediaWiki\FileRepo\FileRepo\__construct(), MediaWiki\Api\ApiQueryAllLinks\__construct(), MediaWiki\Parser\ParserOutput\addExistenceDependency(), MediaWiki\Specials\SpecialWhatLinksHere\alterForm(), MediaWiki\Actions\RevertAction\checkCanExecute(), FindOrphanedFiles\checkFiles(), MediaWiki\FileRepo\LocalRepo\checkRedirect(), MediaWiki\Specials\SpecialRedirect\dispatchFile(), MediaWiki\Pager\ImageListPager\doBatchLookups(), MediaWiki\Category\CategoryViewer\doCategoryQuery(), MediaWiki\Specials\SpecialFileDuplicateSearch\execute(), MediaWiki\Specials\SpecialUndelete\execute(), MediaWiki\Api\ApiDelete\execute(), MediaWiki\Api\ApiMove\execute(), MediaWiki\Api\ApiQueryFilearchive\execute(), MediaWiki\Api\ApiQueryImageInfo\execute(), MediaWiki\FileRepo\AuthenticatedFileEntryPoint\execute(), DeleteBatch\execute(), FindMissingFiles\execute(), ImportImages\execute(), UppercaseTitlesForUnicodeTransition\execute(), MediaWiki\FileRepo\ForeignAPIRepo\findBySha1(), MediaWiki\FileRepo\FileRepo\findFile(), MediaWiki\FileRepo\LocalRepo\findFiles(), MediaWiki\Page\WikiFilePage\followRedirect(), MediaWiki\Pager\NewFilesPager\formatRow(), MediaWiki\Pager\ImageListPager\formatValue(), MediaWiki\Search\SearchWidgets\FullSearchResultWidget\generateFileHtml(), MediaWiki\Title\NamespaceInfo\getCategoryLinkType(), MediaWiki\Content\FileContentHandler\getDataForSearchIndex(), MediaWiki\Content\WikitextContentHandler\getDataForSearchIndex(), MediaWiki\Skin\Skin\getDefaultModules(), MediaWiki\Title\Title\getDeletedEditsCount(), MediaWiki\FileRepo\File\ForeignDBFile\getDescriptionShortUrl(), MediaWiki\FileRepo\File\ForeignDBFile\getDescriptionText(), UploadBase\getExistsWarning(), MediaWiki\FileRepo\FileRepo\getNameFromTitle(), MediaWiki\Search\TitleMatcher\getNearMatchInternal(), MediaWiki\Pager\NewFilesPager\getQueryInfo(), MediaWiki\Specials\SpecialListDuplicatedFiles\getQueryInfo(), MediaWiki\Specials\SpecialMIMESearch\getQueryInfo(), MediaWiki\Specials\SpecialMostImages\getQueryInfo(), MediaWiki\Specials\SpecialUncategorizedImages\getQueryInfo(), MediaWiki\Specials\SpecialUnusedImages\getQueryInfo(), MediaWiki\Specials\SpecialWantedFiles\getQueryInfo(), MediaWiki\FileRepo\File\File\getRedirectedTitle(), MediaWiki\Specials\SpecialSearch\getSearchProfiles(), UploadBase\getTitle(), MediaWiki\Specials\SpecialUpload\getUploadForm(), MediaWiki\Specials\SpecialUpload\getWatchCheck(), MediaWiki\Title\Title\hasDeletedEdits(), SearchHighlighter\highlightText(), MediaWiki\Page\ImagePage\imageLinks(), RevisionSearchResult\initFromTitle(), MediaWiki\Title\Title\isAlwaysKnown(), MediaWiki\Title\NamespaceInfo\isCapitalized(), MediaWiki\Page\MovePage\isValidFileMove(), MediaWiki\Page\MovePage\isValidMove(), MediaWiki\Page\MovePage\isValidMoveTarget(), MediaWiki\Page\PageArchive\listFiles(), MediaWiki\FileRepo\File\ArchivedFile\load(), MediaWiki\FileRepo\File\ArchivedFile\loadFromRow(), MediaWiki\Linker\Linker\makeBrokenImageLinkObj(), MediaWiki\Linker\Linker\makeThumbLink2(), MediaWiki\Specials\SpecialRecentChangesLinked\modifyQuery(), MediaWiki\FileRepo\File\ArchivedFile\newFromRow(), MediaWiki\Page\Article\newFromTitle(), MediaWiki\FileRepo\File\File\normalizeTitle(), MediaWiki\SpecialPage\ImageQueryPage\outputResults(), MediaWiki\Actions\ActionEntryPoint\parseTitle(), MediaWiki\Specials\SpecialFileDuplicateSearch\prefixSearchSubpages(), MediaWiki\Specials\SpecialFilepath\prefixSearchSubpages(), TitleCleanup\processRow(), CleanupImages\processRow(), PurgeChangedFiles\purgeFromLogType(), MediaWiki\Deferred\LinksUpdate\LinksUpdate\queueRecursiveJobs(), MediaWiki\Category\Category\refreshCounts(), MediaWiki\Search\SearchWidgets\FullSearchResultWidget\render(), MediaWiki\Parser\Parser\renderImageGallery(), PrefixSearch\searchBackend(), MediaWiki\Preferences\DefaultPreferencesFactory\searchPreferences(), MediaWiki\Page\Article\showPatrolFooter(), MediaWiki\Specials\SpecialSearch\showResults(), MediaWiki\Specials\SpecialUpload\showUploadStatus(), MediaWiki\Specials\SpecialUpload\showUploadWarning(), MediaWiki\Search\SearchWidgets\SearchFormWidget\startsWithImage(), MediaWiki\FileRepo\ThumbnailEntryPoint\streamThumb(), MediaWiki\Gallery\TraditionalImageGallery\toHTML(), MediaWiki\Specials\SpecialRevisionDelete\tryShowFile(), MediaWiki\Page\RedirectStore\updateRedirectTarget(), MediaWiki\Parser\CoreParserFunctions\urlFunction(), MediaWiki\Api\ApiFileRevert\validateParameters(), MediaWiki\Page\ImagePage\view(), and XmlDumpWriter\writeUploads().
| 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 58 of file Defines.php.
Referenced by DumpNamespaceFilter\__construct().
| 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 63 of file Defines.php.
Referenced by DumpNamespaceFilter\__construct().
| 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 64 of file Defines.php.
Referenced by DumpNamespaceFilter\__construct().
| 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 51 of file Defines.php.
Referenced by DumpNamespaceFilter\__construct(), MediaWiki\Title\TitleValue\assertValidSpec(), MediaWiki\Api\buildCommonApiParams(), MediaWiki\Title\NamespaceInfo\canHaveTalkPage(), MediaWiki\Language\LanguageConverter\convertNamespace(), PrefixSearch\defaultSearchBackend(), MediaWiki\SpecialPage\ContributionsSpecialPage\execute(), MediaWiki\Specials\SpecialExport\execute(), MediaWiki\Specials\SpecialWithoutInterwiki\execute(), UppercaseTitlesForUnicodeTransition\execute(), GrepPages\findPages(), MediaWiki\Language\LanguageConverter\findVariantLink(), MediaWiki\Api\ApiQueryAllPages\getAllowedParams(), MediaWiki\Api\ApiQueryDeletedrevs\getAllowedParams(), MediaWiki\Title\NamespaceInfo\getCanonicalNamespaces(), MediaWiki\Title\NamespaceInfo\getContentNamespaces(), MediaWiki\Category\CategoriesRdf\getDumpURI(), MediaWiki\Linker\Linker\getInvalidTitleDescription(), MediaWiki\Skin\Skin\getLanguages(), EditWatchlistNormalHTMLForm\getLegend(), MediaWiki\Logging\BlockLogFormatter\getMessageParameters(), MediaWiki\Title\Title\getNsText(), MediaWiki\Specials\SpecialWantedFiles\getPageHeader(), MediaWiki\Title\NamespaceInfo\getSubject(), MediaWiki\User\ExternalUserNames\getUserLinkTitle(), MediaWiki\Specials\SpecialSearch\goResult(), MediaWiki\Title\NamespaceInfo\hasTalkNamespace(), MediaWiki\EditPage\TextConflictHelper\incrementConflictStats(), MediaWiki\EditPage\TextConflictHelper\incrementResolvedStats(), MediaWiki\Title\Title\isAlwaysKnown(), MediaWiki\Title\NamespaceInfo\isContent(), MediaWiki\Title\NamespaceInfo\isMovable(), MediaWiki\Title\NamespaceInfo\isTalk(), MediaWiki\Title\NamespaceInfo\isWatchable(), MediaWiki\Actions\ActionEntryPoint\maybeDoHttpsRedirect(), MediaWiki\Html\Html\namespaceSelectorOptions(), MediaWiki\Title\Title\newFromTextThrow(), MediaWiki\Title\Title\newMainPage(), SearchEngine\parseNamespacePrefixes(), BenchmarkTitleValue\parseTitleValue(), SearchExactMatchRescorer\rescore(), SearchEngineConfig\searchableNamespaces(), MediaWiki\Preferences\DefaultPreferencesFactory\searchPreferences(), MediaWiki\Specials\SpecialRandomPage\setNamespace(), WikiImporter\setTargetRootPage(), MediaWiki\Specials\SpecialPrefixIndex\showPrefixChunk(), and MediaWiki\Title\TitleParser\splitTitleString().
| const NS_MEDIA -2 |
Virtual namespaces; don't appear in the page database
Definition at line 39 of file Defines.php.
Referenced by MediaWiki\Parser\ParserOutput\addExistenceDependency(), MediaWiki\Api\ApiQueryLogEvents\getAllowedParams(), MediaWiki\Api\ApiQueryAllLinks\getAllowedParams(), MediaWiki\Api\ApiQueryLinks\getAllowedParams(), MediaWiki\Api\ApiQueryRecentChanges\getAllowedParams(), MediaWiki\Search\TitleMatcher\getNearMatchInternal(), MediaWiki\Specials\SpecialMediaStatistics\getQueryInfo(), MediaWiki\Title\Title\isAlwaysKnown(), MediaWiki\Title\NamespaceInfo\isCapitalized(), MediaWiki\FileRepo\File\File\normalizeTitle(), MediaWiki\Actions\ActionEntryPoint\parseTitle(), PrefixSearch\searchBackend(), and MediaWiki\Parser\CoreParserFunctions\urlFunction().
| 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 59 of file Defines.php.
Referenced by DumpNamespaceFilter\__construct(), MediaWiki\Pager\AllMessagesTablePager\__construct(), MediaWiki\Api\ApiFormatXml\addXslt(), MediaWiki\Page\WikiPage\doPurge(), MediaWiki\Api\ApiEditPage\execute(), DeleteDefaultMessages\execute(), DeleteEqualMessages\execute(), ImportSiteScripts\execute(), NukeNS\execute(), MediaWiki\Pager\AllMessagesTablePager\formatValue(), MediaWiki\Pager\AllMessagesTablePager\getCustomisedStatuses(), MediaWiki\Revision\MainSlotRoleHandler\getDefaultModel(), MediaWiki\Search\TitleMatcher\getNearMatchInternal(), MediaWiki\Content\ContentHandler\getPageLanguage(), MediaWiki\Content\ContentHandler\getPageViewLanguage(), MediaWiki\Specials\SpecialUnwatchedPages\getQueryInfo(), MediaWiki\Specials\SpecialWantedPages\getQueryInfo(), MediaWiki\Message\Message\getTitle(), MediaWiki\Title\Title\hasSourceText(), MediaWiki\Title\Title\isAlwaysKnown(), MediaWiki\Title\Title\isConversionTable(), MediaWiki\Title\Title\isRawHtmlMessage(), MediaWiki\Title\Title\isSiteCssConfigPage(), MediaWiki\Title\Title\isSiteJsConfigPage(), MediaWiki\Title\Title\isSiteJsonConfigPage(), MediaWiki\ChangeTags\ChangeTags\isTagNameValid(), MediaWiki\Actions\RawAction\onView(), MessageCache\refreshAndReplaceInternal(), MediaWiki\EditPage\EditPage\setHeaders(), MediaWiki\EditPage\EditPage\showDiff(), MediaWiki\Page\Article\showMissingArticle(), MediaWiki\Parser\Parser\statelessFetchTemplate(), and MediaWiki\Language\LanguageConverter\updateConversionTable().
| 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 60 of file Defines.php.
Referenced by DumpNamespaceFilter\__construct(), DeleteEqualMessages\execute(), MediaWiki\Pager\AllMessagesTablePager\formatValue(), and MediaWiki\Pager\AllMessagesTablePager\getCustomisedStatuses().
| 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 55 of file Defines.php.
Referenced by DumpNamespaceFilter\__construct(), MediaWiki\Specials\SpecialListGroupRights\execute(), MediaWiki\Specials\SpecialPasswordPolicies\execute(), MediaWiki\Language\Language\getNamespaces(), MediaWiki\Installer\WebInstallerName\submit(), and wfInstallerMain().
| 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 56 of file Defines.php.
Referenced by DumpNamespaceFilter\__construct(), MediaWiki\Language\Language\getNamespaceAliases(), and MediaWiki\Language\Language\getNamespaces().
| const NS_SPECIAL -1 |
Virtual namespaces; don't appear in the page database
Definition at line 40 of file Defines.php.
Referenced by MediaWiki\JobQueue\Job\__construct(), MediaWiki\JobQueue\JobSpecification\__construct(), MediaWiki\Parser\Parser\__construct(), MediaWiki\Parser\ParserOutput\addExistenceDependency(), MediaWiki\Output\OutputPage\buildBacklinkSubtitle(), SearchEngine\completionSearchBackend(), TrivialLanguageConverter\convertSplitTitle(), PrefixSearch\defaultSearchBackend(), MediaWiki\Parser\LinkHolderArray\doVariants(), MediaWiki\Api\ApiEntryPoint\execute(), MediaWiki\Title\Title\fixSpecialName(), MediaWiki\Search\SearchWidgets\InterwikiSearchResultSetWidget\footerHtml(), MediaWiki\Title\TitleFormatter\formatTitle(), MediaWiki\Api\ApiQueryLogEvents\getAllowedParams(), MediaWiki\Api\ApiQueryAllLinks\getAllowedParams(), MediaWiki\Api\ApiQueryLinks\getAllowedParams(), MediaWiki\Api\ApiQueryRecentChanges\getAllowedParams(), MediaWiki\Skin\Skin\getDefaultModules(), MediaWiki\Api\ApiErrorFormatter\getDummyTitle(), MediaWiki\Status\StatusFormatter\getHTML(), MediaWiki\Output\OutputPage\getJSVars(), MediaWiki\RCFeed\IRCColourfulRCFeedFormatter\getLine(), MediaWiki\JobQueue\JobQueueRedis\getNewJobFields(), MediaWiki\SpecialPage\SpecialPage\getSafeTitleFor(), MediaWiki\Parser\Parsoid\Config\SiteConfig\getSpecialNSAliases(), DifferenceEngine\getTitle(), MediaWiki\RecentChanges\RecentChange\getTitle(), MediaWiki\SpecialPage\SpecialPage\getTitleValueFor(), MediaWiki\Search\SearchWidgets\InterwikiSearchResultSetWidget\headerHtml(), MediaWiki\JobQueue\JobQueueDB\insertFields(), MediaWiki\Title\Title\isAlwaysKnown(), MediaWiki\Title\Title\isSpecialPage(), MediaWiki\Linker\LinkRenderer\makeBrokenLink(), MediaWiki\Title\Title\makeName(), MediaWiki\Linker\LinkRenderer\normalizeTarget(), MessageCache\parse(), MediaWiki\Api\ApiPageSet\populateGeneratorData(), MediaWiki\Logging\PatrolLog\record(), MediaWiki\Parser\LinkHolderArray\replaceInternal(), PrefixSearch\searchBackend(), MediaWiki\Parser\Parser\setPage(), MediaWiki\Parser\CoreParserFunctions\special(), PrefixSearch\specialSearch(), and MediaWiki\Title\TitleParser\splitTitleString().
| 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 52 of file Defines.php.
Referenced by DumpNamespaceFilter\__construct(), and MediaWiki\Title\TitleParser\splitTitleString().
| 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 61 of file Defines.php.
Referenced by DumpNamespaceFilter\__construct(), MediaWiki\Api\ApiQueryAllLinks\__construct(), MediaWiki\Specials\SpecialUncategorizedTemplates\__construct(), MediaWiki\Parser\Parser\braceSubstitution(), MediaWiki\Specials\SpecialUnusedTemplates\formatResult(), MediaWiki\Specials\SpecialUnusedTemplates\getQueryInfo(), and MediaWiki\Specials\SpecialWantedTemplates\getQueryInfo().
| 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 62 of file Defines.php.
Referenced by DumpNamespaceFilter\__construct().
| 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 53 of file Defines.php.
Referenced by DumpNamespaceFilter\__construct(), MediaWiki\Pager\ImageListPager\__construct(), MediaWiki\Pager\UsersPager\__construct(), MediaWiki\Pager\ActiveUsersPager\__construct(), MediaWiki\Pager\HistoryPager\doBatchLookups(), MediaWiki\Pager\NewFilesPager\doBatchLookups(), MediaWiki\Cache\UserCache\doQuery(), MediaWiki\SpecialPage\ContributionsSpecialPage\execute(), MediaWiki\Specials\SpecialRenameUser\execute(), MediaWiki\SpecialPage\ChangesListSpecialPage\execute(), MediaWiki\Api\ApiBlock\execute(), MediaWiki\Api\ApiQueryAllUsers\execute(), MediaWiki\Api\ApiUnblock\execute(), MediaWiki\Api\ApiUserrights\execute(), RenameUsersMatchingPattern\execute(), LanguageConverterSpecific\findVariantLink(), MediaWiki\Specials\SpecialNewPages\form(), MediaWiki\Specials\SpecialMIMESearch\formatResult(), MediaWiki\Pager\NewFilesPager\formatRow(), MediaWiki\Parser\CoreParserFunctions\gender(), MediaWiki\Preferences\DefaultPreferencesFactory\generateSkinOptions(), MediaWiki\Logging\LogEventsList\getBlockLogWarningBox(), MediaWiki\Page\ImageHistoryPseudoPager\getBody(), MediaWiki\User\UserNameUtils\getCanonical(), MediaWiki\Revision\MainSlotRoleHandler\getDefaultModel(), MediaWiki\Specials\SpecialUnblock\getFields(), MediaWiki\Logging\RenameuserLogFormatter\getMessageParameters(), MediaWiki\Search\TitleMatcher\getNearMatchInternal(), MediaWiki\ResourceLoader\UserModule\getPages(), MediaWiki\ResourceLoader\UserStylesModule\getPages(), MediaWiki\Logging\RenameuserLogFormatter\getPreloadTitles(), MediaWiki\Pager\ActiveUsersPager\getQueryInfo(), MediaWiki\Pager\NewPagesPager\getQueryInfo(), MediaWiki\Specials\SpecialWantedPages\getQueryInfo(), MediaWiki\Specials\Redirects\SpecialMypage\getRedirect(), MediaWiki\Skin\Skin\getRelevantUser(), MediaWiki\Page\Article\getRobotPolicy(), MediaWiki\User\ExternalUserNames\getUserLinkTitle(), MediaWiki\User\User\getUserPage(), MediaWiki\Title\NamespaceInfo\hasGenderDistinction(), MediaWiki\Title\Title\isUserCssConfigPage(), MediaWiki\Title\Title\isUserJsConfigPage(), MediaWiki\Title\Title\isUserJsonConfigPage(), MediaWiki\RenameUser\RenameUser\moveUserPages(), MediaWiki\Language\Language\needsGenderDistinction(), MediaWiki\Pager\BlockListPager\preprocessResults(), MediaWiki\Specials\SpecialUserRights\saveUserGroups(), MediaWiki\Page\Article\showMissingArticle(), MediaWiki\Preferences\DefaultPreferencesFactory\skinPreferences(), MediaWiki\Title\TitleParser\splitTitleString(), and MediaWiki\RecentChanges\RecentChangesUpdateJob\updateActiveUsers().
| 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 54 of file Defines.php.
Referenced by DumpNamespaceFilter\__construct(), MediaWiki\Block\BlockUser\__construct(), MediaWiki\RecentChanges\RecentChangeNotifier\actuallyNotifyOnPageChange(), MediaWiki\Block\AbstractBlock\appliesToUsertalk(), MediaWiki\Watchlist\WatchlistManager\clearTitleUserNotifications(), MediaWiki\Pager\HistoryPager\doBatchLookups(), MediaWiki\Cache\UserCache\doQuery(), MediaWiki\SpecialPage\ChangesListSpecialPage\execute(), LanguageConverterSpecific\findVariantLink(), MediaWiki\Page\ImageHistoryPseudoPager\getBody(), MediaWiki\Specials\SpecialWantedPages\getQueryInfo(), MediaWiki\Specials\Redirects\SpecialMytalk\getRedirect(), MediaWiki\Page\Article\getRobotPolicy(), MediaWiki\Title\NamespaceInfo\hasGenderDistinction(), MediaWiki\Language\Language\needsGenderDistinction(), MediaWiki\Page\WikiPage\onArticleDelete(), MediaWiki\Pager\BlockListPager\preprocessResults(), MediaWiki\Page\Article\showMissingArticle(), MediaWiki\Page\Article\showViewFooter(), MediaWiki\Title\TitleParser\splitTitleString(), and MediaWiki\Linker\Linker\userTalkLink().
| const OT_HTML 1 |
Allowed values for Parser::$mOutputType Parameter to Parser::startExternalParse(). Use of Parser consts is preferred:
Definition at line 171 of file Defines.php.
| const OT_PLAIN 4 |
Allowed values for Parser::$mOutputType Parameter to Parser::startExternalParse(). Use of Parser consts is preferred:
Definition at line 174 of file Defines.php.
| const OT_PREPROCESS 3 |
Allowed values for Parser::$mOutputType Parameter to Parser::startExternalParse(). Use of Parser consts is preferred:
Definition at line 173 of file Defines.php.
| const OT_WIKI 2 |
Allowed values for Parser::$mOutputType Parameter to Parser::startExternalParse(). Use of Parser consts is preferred:
Definition at line 172 of file Defines.php.
| const PROTO_CANONICAL 1 |
Protocol constants for UrlUtils::expand() PROTO_FALLBACK is
Definition at line 223 of file Defines.php.
Referenced by DumpCategoriesAsRdf\addDumpHeader(), MediaWiki\Api\ApiEntryPoint\execute(), MediaWiki\Api\ApiQueryExternalLinks\execute(), MediaWiki\Title\Title\getCanonicalURL(), MediaWiki\FileRepo\File\File\getCanonicalUrl(), GenerateSitemap\main(), MediaWiki\Mail\UserMailer\sendInternal(), and MediaWiki\FileRepo\File\File\transform().
| const PROTO_CURRENT PROTO_FALLBACK |
Protocol constants for UrlUtils::expand() PROTO_FALLBACK is
Definition at line 222 of file Defines.php.
Referenced by MediaWiki\Specials\SpecialUserLogin\beforeExecute(), MediaWiki\Specials\SpecialRedirect\dispatchUser(), MediaWiki\Specials\SpecialApiHelp\execute(), MediaWiki\Api\ApiQueryIWLinks\execute(), MediaWiki\Api\ApiQueryLangLinks\execute(), MediaWiki\Search\SearchWidgets\InterwikiSearchResultSetWidget\generateIconFromFavicon(), MediaWiki\Actions\RevertAction\getFormFields(), MediaWiki\Api\ApiQueryImageInfo\getInfo(), MediaWiki\Api\ApiPageSet\getInterwikiTitlesAsResult(), MediaWiki\Api\ApiRsd\getRsdApiList(), MediaWiki\Feed\FeedItem\getUniqueIdUnescaped(), MediaWiki\Actions\RevertAction\onSuccess(), MediaWiki\Feed\AtomFeed\outHeader(), MediaWiki\Feed\RSSFeed\outHeader(), MediaWiki\Feed\AtomFeed\outItem(), MediaWiki\Feed\RSSFeed\outItem(), MediaWiki\Output\OutputPage\output(), and SearchSuggestion\setSuggestedTitle().
| const PROTO_FALLBACK null |
Protocol constants for UrlUtils::expand() PROTO_FALLBACK is
Definition at line 220 of file Defines.php.
| const PROTO_HTTP 'http://' |
Protocol constants for UrlUtils::expand() PROTO_FALLBACK is
Definition at line 217 of file Defines.php.
Referenced by MWHttpRequest\__construct(), MediaWiki\Utils\UrlUtils\__construct(), MediaWiki\Linker\LinkRendererFactory\createFromLegacyOptions(), MediaWiki\Request\WebRequest\getFullRequestURL(), MediaWiki\Title\Title\getInternalURL(), MediaWiki\FileRepo\ForeignAPIRepo\httpGet(), and LoginHelper\showReturnToPage().
| const PROTO_HTTPS 'https://' |
Protocol constants for UrlUtils::expand() PROTO_FALLBACK is
Definition at line 218 of file Defines.php.
Referenced by MediaWiki\SpecialPage\SpecialPage\checkLoginSecurityLevel(), MediaWiki\Linker\LinkRendererFactory\createFromLegacyOptions(), MediaWiki\SpecialPage\LoginSignupSpecialPage\execute(), MediaWiki\Specials\SpecialLinkAccounts\execute(), MediaWiki\Specials\SpecialUnlinkAccounts\execute(), MediaWiki\Request\WebRequest\getFullRequestURL(), MediaWiki\SpecialPage\AuthManagerSpecialPage\handleReauthBeforeExecute(), MediaWiki\SpecialPage\AuthManagerSpecialPage\handleReturnBeforeExecute(), MediaWiki\SpecialPage\AuthManagerSpecialPage\performAuthenticationStep(), MediaWiki\MediaWikiEntryPoint\shouldDoHttpRedirect(), and LoginHelper\showReturnToPage().
| const PROTO_INTERNAL 2 |
Protocol constants for UrlUtils::expand() PROTO_FALLBACK is
Definition at line 224 of file Defines.php.
Referenced by MediaWiki\Request\WebRequest\matchURLForCDN().
| const PROTO_RELATIVE '//' |
Protocol constants for UrlUtils::expand() PROTO_FALLBACK is
Definition at line 219 of file Defines.php.
Referenced by MediaWiki\Linker\Linker\expandLocalLinks(), MediaWiki\Parser\CoreParserFunctions\filepath(), MediaWiki\Specials\SpecialVersion\getEntryPointInfo(), MediaWiki\FileRepo\File\File\getFullUrl(), MediaWiki\Output\OutputPage\getHeadLinksArray(), MediaWiki\Content\CssContentHandler\makeRedirectContent(), MediaWiki\Content\JavaScriptContentHandler\makeRedirectContent(), MediaWiki\Output\OutputPage\showPermissionStatus(), and LoginHelper\showReturnToPage().
| const RC_CATEGORIZE 6 |
RecentChange type identifiers
Definition at line 107 of file Defines.php.
| const RC_EDIT 0 |
RecentChange type identifiers
Definition at line 103 of file Defines.php.
| const RC_EXTERNAL 5 |
RecentChange type identifiers
Definition at line 106 of file Defines.php.
| const RC_LOG 3 |
RecentChange type identifiers
Definition at line 105 of file Defines.php.
| const RC_NEW 1 |
RecentChange type identifiers
Definition at line 104 of file Defines.php.
| const SCHEMA_COMPAT_NEW SCHEMA_COMPAT_WRITE_NEW | 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.
Definition at line 307 of file Defines.php.
Referenced by MediaWiki\User\ActorMigration\__construct().
| const SCHEMA_COMPAT_OLD SCHEMA_COMPAT_WRITE_OLD | SCHEMA_COMPAT_READ_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.
Definition at line 305 of file Defines.php.
| 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.
Definition at line 304 of file Defines.php.
| const SCHEMA_COMPAT_READ_MASK SCHEMA_COMPAT_READ_OLD | SCHEMA_COMPAT_READ_TEMP | 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.
Definition at line 300 of file Defines.php.
Referenced by MediaWiki\User\ActorMigrationBase\__construct().
| 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.
Definition at line 298 of file Defines.php.
Referenced by MediaWiki\User\ActorMigrationBase\__construct(), MediaWiki\User\ActorMigrationBase\getWhere(), MediaWiki\User\ActorMigrationBase\isAnon(), and MediaWiki\User\ActorMigrationBase\isNotAnon().
| 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.
Definition at line 294 of file Defines.php.
Referenced by MediaWiki\User\ActorMigrationBase\__construct(), CleanupImages\__construct(), MediaWiki\FileRepo\File\FileSelectQueryBuilder\__construct(), TitleCleanup\fileExists(), MediaWiki\Pager\ImageListPager\formatValue(), MediaWiki\FileRepo\FileBackendDBRepoWrapper\getBackendPaths(), MediaWiki\User\ActorMigrationBase\getJoin(), MediaWiki\Specials\SpecialMediaStatistics\getOrderFields(), MediaWiki\Pager\ImageListPager\getQueryInfo(), MediaWiki\Pager\NewFilesPager\getQueryInfo(), MediaWiki\Specials\SpecialListDuplicatedFiles\getQueryInfo(), MediaWiki\Specials\SpecialMediaStatistics\getQueryInfo(), MediaWiki\Specials\SpecialUnusedImages\getQueryInfo(), MediaWiki\Specials\SpecialWantedFiles\getQueryInfo(), CleanupImages\processRow(), MediaWiki\Pager\ImageListPager\reallyDoQuery(), and MediaWiki\Page\Article\showPatrolFooter().
| 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.
Definition at line 296 of file Defines.php.
| const SCHEMA_COMPAT_TEMP SCHEMA_COMPAT_WRITE_TEMP | SCHEMA_COMPAT_READ_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.
Definition at line 306 of file Defines.php.
| 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.
Definition at line 301 of file Defines.php.
| const SCHEMA_COMPAT_WRITE_MASK SCHEMA_COMPAT_WRITE_OLD | 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.
Definition at line 299 of file Defines.php.
Referenced by MediaWiki\User\ActorMigrationBase\__construct().
| 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.
Definition at line 297 of file Defines.php.
Referenced by MediaWiki\User\ActorMigrationBase\__construct(), MediaWiki\Deferred\LinksUpdate\GenericPageLinksTable\deleteLink(), MediaWiki\FileRepo\File\LocalFileMoveBatch\doDBUpdates(), MediaWiki\FileRepo\File\LocalFileRestoreBatch\execute(), MediaWiki\User\ActorMigrationBase\getInsertValues(), MediaWiki\Deferred\LinksUpdate\GenericPageLinksTable\insertLink(), MediaWiki\FileRepo\File\OldLocalFile\recordOldUpload(), MediaWiki\FileRepo\File\LocalFile\reserializeMetadata(), MediaWiki\FileRepo\File\LocalFile\upgradeRow(), and MediaWiki\FileRepo\File\OldLocalFile\upgradeRow().
| 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.
Definition at line 293 of file Defines.php.
Referenced by MediaWiki\User\ActorMigrationBase\__construct(), MediaWiki\Deferred\LinksUpdate\GenericPageLinksTable\deleteLink(), MediaWiki\Deferred\LinksUpdate\GenericPageLinksTable\getExistingFields(), MediaWiki\User\ActorMigrationBase\getInsertValues(), and MediaWiki\Deferred\LinksUpdate\GenericPageLinksTable\insertLink().
| 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.
Definition at line 302 of file Defines.php.
| 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.
Definition at line 295 of file Defines.php.
| 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.
Definition at line 303 of file Defines.php.
| const SFH_NO_HASH 1 |
Flags for Parser::setFunctionHook Use of Parser consts is preferred:
Definition at line 183 of file Defines.php.
| const SFH_OBJECT_ARGS 2 |
Flags for Parser::setFunctionHook Use of Parser consts is preferred:
Definition at line 184 of file Defines.php.
| const SHELL_MAX_ARG_STRLEN '100000' |
Max string length for shell invocations; based on binfmts.h
Definition at line 275 of file Defines.php.
| 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 348 of file Defines.php.
| 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 349 of file Defines.php.