MediaWiki  1.23.2
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_TEXT 'text'
 
const CONTENT_MODEL_WIKITEXT 'wikitext'
 
const DB_LAST -3
 
const DB_MASTER -2
 
const DB_READ -1
 
const DB_SLAVE -1
 
const DB_WRITE -2
 
const DBO_COMPRESS 512
 
const DBO_DDLMODE 128
 
const DBO_DEBUG 1
 
const DBO_DEFAULT 16
 
const DBO_IGNORE 4
 
const DBO_NOBUFFER 2
 
const DBO_PERSISTENT 32
 
const DBO_SSL 256
 
const DBO_SYSDBA 64
 
const DBO_TRX 8
 
const EDIT_AUTOSUMMARY 64
 
const EDIT_DEFER_UPDATES 32
 
const EDIT_FORCE_BOT 16
 
const EDIT_MINOR 4
 
const EDIT_NEW 1
 
const EDIT_SUPPRESS_RC 8
 
const EDIT_UPDATE 2
 
const LIST_AND 1
 
const LIST_COMMA 0
 
const LIST_NAMES 3
 
const LIST_OR 4
 
const LIST_SET 2
 
const MEDIATYPE_ARCHIVE 'ARCHIVE'
 
const MEDIATYPE_AUDIO 'AUDIO'
 
const MEDIATYPE_BITMAP 'BITMAP'
 
const MEDIATYPE_DRAWING 'DRAWING'
 
const MEDIATYPE_EXECUTABLE 'EXECUTABLE'
 
const MEDIATYPE_MULTIMEDIA 'MULTIMEDIA'
 
const MEDIATYPE_OFFICE 'OFFICE'
 
const MEDIATYPE_TEXT 'TEXT'
 
const MEDIATYPE_UNKNOWN 'UNKNOWN'
 
const MEDIATYPE_VIDEO 'VIDEO'
 
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_SPECIALPAGE_VERSION 2
 Version constants for the benefit of extensions. More...
 
const MW_SUPPORTS_CONTENTHANDLER 1
 
const MW_SUPPORTS_EDITFILTERMERGED 1
 Unicode and normalisation related. More...
 
const MW_SUPPORTS_LOCALISATIONCACHE 1
 
const MW_SUPPORTS_PARSERFIRSTCALLINIT 1
 
const MW_SUPPORTS_RESOURCE_MODULES 1
 Support for $wgResourceModules. More...
 
const NS_CATEGORY 14
 
const NS_CATEGORY_TALK 15
 
const NS_FILE 6
 
const NS_FILE_TALK 7
 
const NS_HELP 12
 
const NS_HELP_TALK 13
 
const NS_IMAGE NS_FILE
 NS_IMAGE and NS_IMAGE_TALK are the pre-v1.14 names for NS_FILE and NS_FILE_TALK respectively, and are kept for compatibility. More...
 
const NS_IMAGE_TALK NS_FILE_TALK
 
const NS_MAIN 0
 
const NS_MEDIA -2
 
const NS_MEDIAWIKI 8
 
const NS_MEDIAWIKI_TALK 9
 
const NS_PROJECT 4
 
const NS_PROJECT_TALK 5
 
const NS_SPECIAL -1
 
const NS_TALK 1
 
const NS_TEMPLATE 10
 
const NS_TEMPLATE_TALK 11
 
const NS_USER 2
 
const NS_USER_TALK 3
 
const OT_HTML 1
 
const OT_MSG 3
 
const OT_PLAIN 4
 
const OT_PREPROCESS 3
 
const OT_WIKI 2
 
const PROTO_CANONICAL 1
 
const PROTO_CURRENT null
 
const PROTO_HTTP 'http://'
 
const PROTO_HTTPS 'https://'
 
const PROTO_INTERNAL 2
 
const PROTO_RELATIVE '//'
 
const RC_EDIT 0
 
const RC_EXTERNAL 5
 
const RC_LOG 3
 
const RC_MOVE 2
 
const RC_MOVE_OVER_REDIRECT 4
 
const RC_NEW 1
 
const RLH_FOR_UPDATE 1
 Flags for Parser::replaceLinkHolders. More...
 
const SFH_NO_HASH 1
 
const SFH_OBJECT_ARGS 2
 

Detailed Description

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

Note: these constants must all be resolvable at compile time by HipHop, since this file will not be executed during request startup for a compiled MediaWiki.

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_LAST

const DB_LAST -3

Definition at line 62 of file Defines.php.

Referenced by LoadBalancer\getConnection().

◆ DB_READ

const DB_READ -1

Definition at line 60 of file Defines.php.

◆ DB_WRITE

const DB_WRITE -2

Definition at line 61 of file Defines.php.

◆ MW_SPECIALPAGE_VERSION

const MW_SPECIALPAGE_VERSION 2

Version constants for the benefit of extensions.

Definition at line 34 of file Defines.php.

◆ MW_SUPPORTS_RESOURCE_MODULES

const MW_SUPPORTS_RESOURCE_MODULES 1

Support for $wgResourceModules.

Definition at line 224 of file Defines.php.

◆ RLH_FOR_UPDATE

const RLH_FOR_UPDATE 1

Flags for Parser::replaceLinkHolders.

Definition at line 247 of file Defines.php.