MediaWiki REL1_31
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 ALF_NO_BLOCK_LOCK 8
 
const ALF_NO_LINK_LOCK 4
 
const ALF_PRELOAD_EXISTENCE 2
 
const ALF_PRELOAD_LINKS 1
 
const APCOND_AGE 2
 
const APCOND_AGE_FROM_EDIT 7
 
const APCOND_BLOCKED 8
 
const APCOND_EDITCOUNT 1
 
const APCOND_EMAILCONFIRMED 3
 
const APCOND_INGROUPS 4
 
const APCOND_IPINRANGE 6
 
const APCOND_ISBOT 9
 
const APCOND_ISIP 5
 
const AV_NO_VIRUS 0
 
const AV_SCAN_ABORTED -1
 
const AV_SCAN_FAILED false
 
const AV_VIRUS_FOUND 1
 
const CACHE_ACCEL 3
 
const CACHE_ANYTHING -1
 
const CACHE_DB 1
 
const CACHE_MEMCACHED 2
 
const CACHE_NONE 0
 
const CONTENT_FORMAT_CSS 'text/css'
 
const CONTENT_FORMAT_HTML 'text/html'
 
const CONTENT_FORMAT_JAVASCRIPT 'text/javascript'
 
const CONTENT_FORMAT_JSON 'application/json'
 
const CONTENT_FORMAT_SERIALIZED 'application/vnd.php.serialized'
 
const CONTENT_FORMAT_TEXT 'text/plain'
 
const CONTENT_FORMAT_WIKITEXT 'text/x-wiki'
 
const CONTENT_FORMAT_XML 'application/xml'
 
const CONTENT_MODEL_CSS 'css'
 
const CONTENT_MODEL_JAVASCRIPT 'javascript'
 
const CONTENT_MODEL_JSON 'json'
 
const CONTENT_MODEL_TEXT 'text'
 
const CONTENT_MODEL_WIKITEXT 'wikitext'
 
const DB_SLAVE -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 LIST_AND IDatabase::LIST_AND
 
const LIST_COMMA IDatabase::LIST_COMMA
 
const LIST_NAMES IDatabase::LIST_NAMES
 
const LIST_OR IDatabase::LIST_OR
 
const LIST_SET IDatabase::LIST_SET
 
const MIGRATION_NEW 3
 
const MIGRATION_OLD 0
 
const MIGRATION_WRITE_BOTH 1
 
const MIGRATION_WRITE_NEW 2
 
const MW_DATE_DEFAULT 'default'
 
const MW_DATE_DMY 'dmy'
 
const MW_DATE_ISO 'ISO 8601'
 
const MW_DATE_MDY 'mdy'
 
const MW_DATE_YMD 'ymd'
 
const MW_EDITFILTERMERGED_SUPPORTS_API 1
 
const MW_SUPPORTS_CONTENTHANDLER 1
 
const MW_SUPPORTS_LOCALISATIONCACHE 1
 
const MW_SUPPORTS_PARSERFIRSTCALLINIT 1
 
const MW_SUPPORTS_RESOURCE_MODULES 1
 Support for $wgResourceModules.
 
const MW_VERSION '1.31.16'
 The running version of MediaWiki.
 
const NS_CATEGORY 14
 
const NS_CATEGORY_TALK 15
 
const NS_FILE 6
 
const NS_FILE_TALK 7
 
const NS_HELP 12
 
const NS_HELP_TALK 13
 
const NS_IMAGE NS_FILE
 NS_IMAGE and NS_IMAGE_TALK are the pre-v1.14 names for NS_FILE and NS_FILE_TALK respectively, and are kept for compatibility.
 
const NS_IMAGE_TALK NS_FILE_TALK
 
const NS_MAIN 0
 
const NS_MEDIA -2
 
const NS_MEDIAWIKI 8
 
const NS_MEDIAWIKI_TALK 9
 
const NS_PROJECT 4
 
const NS_PROJECT_TALK 5
 
const NS_SPECIAL -1
 
const NS_TALK 1
 
const NS_TEMPLATE 10
 
const NS_TEMPLATE_TALK 11
 
const NS_USER 2
 
const NS_USER_TALK 3
 
const OT_HTML 1
 
const OT_MSG 3
 
const OT_PLAIN 4
 
const OT_PREPROCESS 3
 
const OT_WIKI 2
 
const PROTO_CANONICAL 1
 
const PROTO_CURRENT null
 
const PROTO_HTTP 'http://'
 
const PROTO_HTTPS 'https://'
 
const PROTO_INTERNAL 2
 
const PROTO_RELATIVE '//'
 
const RC_CATEGORIZE 6
 
const RC_EDIT 0
 
const RC_EXTERNAL 5
 
const RC_LOG 3
 
const RC_NEW 1
 
const SFH_NO_HASH 1
 
const SFH_OBJECT_ARGS 2
 
const SHELL_MAX_ARG_STRLEN '100000'
 

Detailed Description

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

◆ DB_SLAVE

const DB_SLAVE -1
Deprecated:
since 1.28

Definition at line 46 of file Defines.php.

◆ MW_SUPPORTS_RESOURCE_MODULES

const MW_SUPPORTS_RESOURCE_MODULES 1

Support for $wgResourceModules.

Definition at line 182 of file Defines.php.

◆ MW_VERSION

const MW_VERSION '1.31.16'

The running version of MediaWiki.

This replaces the the $wgVersion global found in earlier versions.

Since
1.31.7

Definition at line 40 of file Defines.php.

Referenced by MediaWikiVersionFetcherTest\testReturnsResult().