MediaWiki  REL1_19
Defines.php File Reference

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

Go to the source code of this file.

Enumerations

enum  DB_READ
enum  DB_WRITE
enum  MW_SPECIALPAGE_VERSION
 Version constants for the benefit of extensions. More...
enum  MW_SUPPORTS_RESOURCE_MODULES
 Support for $wgResourceModules. More...
enum  PROTO_CANONICAL
enum  PROTO_CURRENT
enum  PROTO_HTTP
 Protocol constants for wfExpandUrl() More...
enum  PROTO_HTTPS
enum  PROTO_INTERNAL
enum  PROTO_RELATIVE
enum  RLH_FOR_UPDATE
 Flags for Parser::replaceLinkHolders. More...
enum  SLH_PATTERN
 Flags for Parser::setLinkHook. More...
enum  DBO_DEBUG
enum  DBO_NOBUFFER
enum  DBO_IGNORE
enum  DBO_TRX
enum  DBO_DEFAULT
enum  DBO_PERSISTENT
enum  DBO_SYSDBA
enum  DBO_DDLMODE
enum  DB_SLAVE
enum  DB_MASTER
enum  DB_LAST
enum  NS_MEDIA
enum  NS_SPECIAL
enum  NS_MAIN
enum  NS_TALK
enum  NS_USER
enum  NS_USER_TALK
enum  NS_PROJECT
enum  NS_PROJECT_TALK
enum  NS_FILE
enum  NS_FILE_TALK
enum  NS_MEDIAWIKI
enum  NS_MEDIAWIKI_TALK
enum  NS_TEMPLATE
enum  NS_TEMPLATE_TALK
enum  NS_HELP
enum  NS_HELP_TALK
enum  NS_CATEGORY
enum  NS_CATEGORY_TALK
enum  NS_IMAGE
 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...
enum  NS_IMAGE_TALK
enum  CACHE_ANYTHING
enum  CACHE_NONE
enum  CACHE_DB
enum  CACHE_MEMCACHED
enum  CACHE_ACCEL
enum  CACHE_DBA
enum  MEDIATYPE_UNKNOWN
enum  MEDIATYPE_BITMAP
enum  MEDIATYPE_DRAWING
enum  MEDIATYPE_AUDIO
enum  MEDIATYPE_VIDEO
enum  MEDIATYPE_MULTIMEDIA
enum  MEDIATYPE_OFFICE
enum  MEDIATYPE_TEXT
enum  MEDIATYPE_EXECUTABLE
enum  MEDIATYPE_ARCHIVE
enum  AV_NO_VIRUS
enum  AV_VIRUS_FOUND
enum  AV_SCAN_ABORTED
enum  AV_SCAN_FAILED
enum  ALF_PRELOAD_LINKS
enum  ALF_PRELOAD_EXISTENCE
enum  ALF_NO_LINK_LOCK
enum  ALF_NO_BLOCK_LOCK
enum  MW_DATE_DEFAULT
enum  MW_DATE_MDY
enum  MW_DATE_DMY
enum  MW_DATE_YMD
enum  MW_DATE_ISO
enum  RC_EDIT
enum  RC_NEW
enum  RC_MOVE
enum  RC_LOG
enum  RC_MOVE_OVER_REDIRECT
enum  EDIT_NEW
enum  EDIT_UPDATE
enum  EDIT_MINOR
enum  EDIT_SUPPRESS_RC
enum  EDIT_FORCE_BOT
enum  EDIT_DEFER_UPDATES
enum  EDIT_AUTOSUMMARY
enum  LIST_COMMA
enum  LIST_AND
enum  LIST_SET
enum  LIST_NAMES
enum  LIST_OR
enum  LIST_SET_PREPARED
enum  MW_SUPPORTS_EDITFILTERMERGED
 Unicode and normalisation related. More...
enum  MW_SUPPORTS_PARSERFIRSTCALLINIT
 Unicode and normalisation related. More...
enum  MW_SUPPORTS_LOCALISATIONCACHE
 Unicode and normalisation related. More...
enum  OT_HTML
enum  OT_WIKI
enum  OT_PREPROCESS
enum  OT_MSG
enum  OT_PLAIN
enum  SFH_NO_HASH
enum  SFH_OBJECT_ARGS
enum  APCOND_EDITCOUNT
enum  APCOND_AGE
enum  APCOND_EMAILCONFIRMED
enum  APCOND_INGROUPS
enum  APCOND_ISIP
enum  APCOND_IPINRANGE
enum  APCOND_AGE_FROM_EDIT
enum  APCOND_BLOCKED
enum  APCOND_ISBOT

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.

Definition in file Defines.php.


Enumeration Type Documentation

Anti-lock flags See DefaultSettings.php for a description

Definition at line 131 of file Defines.php.

Anti-lock flags See DefaultSettings.php for a description

Definition at line 130 of file Defines.php.

Anti-lock flags See DefaultSettings.php for a description

Definition at line 129 of file Defines.php.

Anti-lock flags See DefaultSettings.php for a description

Definition at line 128 of file Defines.php.

enum APCOND_AGE

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

Definition at line 233 of file Defines.php.

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

Definition at line 238 of file Defines.php.

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

Definition at line 239 of file Defines.php.

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

Definition at line 232 of file Defines.php.

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

Definition at line 234 of file Defines.php.

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

Definition at line 235 of file Defines.php.

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

Definition at line 237 of file Defines.php.

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

Definition at line 240 of file Defines.php.

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

Definition at line 236 of file Defines.php.

Antivirus result codes, for use in $wgAntivirusSetup.

Definition at line 118 of file Defines.php.

Antivirus result codes, for use in $wgAntivirusSetup.

Definition at line 120 of file Defines.php.

Antivirus result codes, for use in $wgAntivirusSetup.

Definition at line 121 of file Defines.php.

Antivirus result codes, for use in $wgAntivirusSetup.

Definition at line 119 of file Defines.php.

Cache type

Definition at line 95 of file Defines.php.

Cache type

Definition at line 91 of file Defines.php.

enum CACHE_DB

Cache type

Definition at line 93 of file Defines.php.

enum CACHE_DBA

Cache type

Definition at line 96 of file Defines.php.

Cache type

Definition at line 94 of file Defines.php.

enum CACHE_NONE

Cache type

Definition at line 92 of file Defines.php.

enum DB_LAST

Valid database indexes Operation-based indexes

Definition at line 36 of file Defines.php.

enum DB_MASTER

Valid database indexes Operation-based indexes

Definition at line 35 of file Defines.php.

enum DB_READ

Definition at line 40 of file Defines.php.

enum DB_SLAVE

Valid database indexes Operation-based indexes

Definition at line 34 of file Defines.php.

enum DB_WRITE

Definition at line 41 of file Defines.php.

Database related constants

Definition at line 27 of file Defines.php.

enum DBO_DEBUG

Database related constants

Definition at line 20 of file Defines.php.

Database related constants

Definition at line 24 of file Defines.php.

enum DBO_IGNORE

Database related constants

Definition at line 22 of file Defines.php.

Database related constants

Definition at line 21 of file Defines.php.

Database related constants

Definition at line 25 of file Defines.php.

enum DBO_SYSDBA

Database related constants

Definition at line 26 of file Defines.php.

enum DBO_TRX

Database related constants

Definition at line 23 of file Defines.php.

Article edit flags

Definition at line 169 of file Defines.php.

Article edit flags

Definition at line 168 of file Defines.php.

Article edit flags

Definition at line 167 of file Defines.php.

enum EDIT_MINOR

Article edit flags

Definition at line 165 of file Defines.php.

enum EDIT_NEW

Article edit flags

Definition at line 163 of file Defines.php.

Article edit flags

Definition at line 166 of file Defines.php.

Article edit flags

Definition at line 164 of file Defines.php.

enum LIST_AND

Flags for Database::makeList() These are also available as Database class constants

Definition at line 177 of file Defines.php.

enum LIST_COMMA

Flags for Database::makeList() These are also available as Database class constants

Definition at line 176 of file Defines.php.

enum LIST_NAMES

Flags for Database::makeList() These are also available as Database class constants

Definition at line 179 of file Defines.php.

enum LIST_OR

Flags for Database::makeList() These are also available as Database class constants

Definition at line 180 of file Defines.php.

enum LIST_SET

Flags for Database::makeList() These are also available as Database class constants

Definition at line 178 of file Defines.php.

Flags for Database::makeList() These are also available as Database class constants

Definition at line 181 of file Defines.php.

Media types. This defines constants for the value returned by File::getMediaType()

Definition at line 112 of file Defines.php.

Media types. This defines constants for the value returned by File::getMediaType()

Definition at line 106 of file Defines.php.

Media types. This defines constants for the value returned by File::getMediaType()

Definition at line 104 of file Defines.php.

Media types. This defines constants for the value returned by File::getMediaType()

Definition at line 105 of file Defines.php.

Media types. This defines constants for the value returned by File::getMediaType()

Definition at line 111 of file Defines.php.

Media types. This defines constants for the value returned by File::getMediaType()

Definition at line 108 of file Defines.php.

Media types. This defines constants for the value returned by File::getMediaType()

Definition at line 109 of file Defines.php.

Media types. This defines constants for the value returned by File::getMediaType()

Definition at line 110 of file Defines.php.

Media types. This defines constants for the value returned by File::getMediaType()

Definition at line 103 of file Defines.php.

Media types. This defines constants for the value returned by File::getMediaType()

Definition at line 107 of file Defines.php.

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

Definition at line 143 of file Defines.php.

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

Definition at line 145 of file Defines.php.

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

Definition at line 147 of file Defines.php.

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

Definition at line 144 of file Defines.php.

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

Definition at line 146 of file Defines.php.

Version constants for the benefit of extensions.

Definition at line 15 of file Defines.php.

Unicode and normalisation related.

Hook support constants

Definition at line 192 of file Defines.php.

Unicode and normalisation related.

Hook support constants

Definition at line 194 of file Defines.php.

Unicode and normalisation related.

Hook support constants

Definition at line 193 of file Defines.php.

Support for $wgResourceModules.

Definition at line 198 of file Defines.php.

Real namespaces

Number 100 and beyond are reserved for custom namespaces; DO NOT assign standard namespaces at 100 or beyond. DO NOT Change integer values as they are most probably hardcoded everywhere see bug #696 which talked about that.

Definition at line 73 of file Defines.php.

Real namespaces

Number 100 and beyond are reserved for custom namespaces; DO NOT assign standard namespaces at 100 or beyond. DO NOT Change integer values as they are most probably hardcoded everywhere see bug #696 which talked about that.

Definition at line 74 of file Defines.php.

enum NS_FILE

Real namespaces

Number 100 and beyond are reserved for custom namespaces; DO NOT assign standard namespaces at 100 or beyond. DO NOT Change integer values as they are most probably hardcoded everywhere see bug #696 which talked about that.

Definition at line 65 of file Defines.php.

Real namespaces

Number 100 and beyond are reserved for custom namespaces; DO NOT assign standard namespaces at 100 or beyond. DO NOT Change integer values as they are most probably hardcoded everywhere see bug #696 which talked about that.

Definition at line 66 of file Defines.php.

enum NS_HELP

Real namespaces

Number 100 and beyond are reserved for custom namespaces; DO NOT assign standard namespaces at 100 or beyond. DO NOT Change integer values as they are most probably hardcoded everywhere see bug #696 which talked about that.

Definition at line 71 of file Defines.php.

Real namespaces

Number 100 and beyond are reserved for custom namespaces; DO NOT assign standard namespaces at 100 or beyond. DO NOT Change integer values as they are most probably hardcoded everywhere see bug #696 which talked about that.

Definition at line 72 of file Defines.php.

enum NS_IMAGE

NS_IMAGE and NS_IMAGE_TALK are the pre-v1.14 names for NS_FILE and NS_FILE_TALK respectively, and are kept for compatibility.

When writing code that should be compatible with older MediaWiki versions, either stick to the old names or define the new constants yourself, if they're not defined already.

Definition at line 84 of file Defines.php.

Real namespaces

Number 100 and beyond are reserved for custom namespaces; DO NOT assign standard namespaces at 100 or beyond. DO NOT Change integer values as they are most probably hardcoded everywhere see bug #696 which talked about that.

Definition at line 85 of file Defines.php.

enum NS_MAIN

Real namespaces

Number 100 and beyond are reserved for custom namespaces; DO NOT assign standard namespaces at 100 or beyond. DO NOT Change integer values as they are most probably hardcoded everywhere see bug #696 which talked about that.

Definition at line 59 of file Defines.php.

enum NS_MEDIA

Virtual namespaces; don't appear in the page database

Definition at line 47 of file Defines.php.

Real namespaces

Number 100 and beyond are reserved for custom namespaces; DO NOT assign standard namespaces at 100 or beyond. DO NOT Change integer values as they are most probably hardcoded everywhere see bug #696 which talked about that.

Definition at line 67 of file Defines.php.

Real namespaces

Number 100 and beyond are reserved for custom namespaces; DO NOT assign standard namespaces at 100 or beyond. DO NOT Change integer values as they are most probably hardcoded everywhere see bug #696 which talked about that.

Definition at line 68 of file Defines.php.

enum NS_PROJECT

Real namespaces

Number 100 and beyond are reserved for custom namespaces; DO NOT assign standard namespaces at 100 or beyond. DO NOT Change integer values as they are most probably hardcoded everywhere see bug #696 which talked about that.

Definition at line 63 of file Defines.php.

Real namespaces

Number 100 and beyond are reserved for custom namespaces; DO NOT assign standard namespaces at 100 or beyond. DO NOT Change integer values as they are most probably hardcoded everywhere see bug #696 which talked about that.

Definition at line 64 of file Defines.php.

enum NS_SPECIAL

Virtual namespaces; don't appear in the page database

Definition at line 48 of file Defines.php.

enum NS_TALK

Real namespaces

Number 100 and beyond are reserved for custom namespaces; DO NOT assign standard namespaces at 100 or beyond. DO NOT Change integer values as they are most probably hardcoded everywhere see bug #696 which talked about that.

Definition at line 60 of file Defines.php.

Real namespaces

Number 100 and beyond are reserved for custom namespaces; DO NOT assign standard namespaces at 100 or beyond. DO NOT Change integer values as they are most probably hardcoded everywhere see bug #696 which talked about that.

Definition at line 69 of file Defines.php.

Real namespaces

Number 100 and beyond are reserved for custom namespaces; DO NOT assign standard namespaces at 100 or beyond. DO NOT Change integer values as they are most probably hardcoded everywhere see bug #696 which talked about that.

Definition at line 70 of file Defines.php.

enum NS_USER

Real namespaces

Number 100 and beyond are reserved for custom namespaces; DO NOT assign standard namespaces at 100 or beyond. DO NOT Change integer values as they are most probably hardcoded everywhere see bug #696 which talked about that.

Definition at line 61 of file Defines.php.

Real namespaces

Number 100 and beyond are reserved for custom namespaces; DO NOT assign standard namespaces at 100 or beyond. DO NOT Change integer values as they are most probably hardcoded everywhere see bug #696 which talked about that.

Definition at line 62 of file Defines.php.

enum OT_HTML

Allowed values for Parser::$mOutputType Parameter to Parser::startExternalParse().

Definition at line 204 of file Defines.php.

enum OT_MSG

Allowed values for Parser::$mOutputType Parameter to Parser::startExternalParse().

Definition at line 207 of file Defines.php.

enum OT_PLAIN

Allowed values for Parser::$mOutputType Parameter to Parser::startExternalParse().

Definition at line 208 of file Defines.php.

Allowed values for Parser::$mOutputType Parameter to Parser::startExternalParse().

Definition at line 206 of file Defines.php.

enum OT_WIKI

Allowed values for Parser::$mOutputType Parameter to Parser::startExternalParse().

Definition at line 205 of file Defines.php.

Definition at line 250 of file Defines.php.

Definition at line 249 of file Defines.php.

enum PROTO_HTTP

Protocol constants for wfExpandUrl()

Definition at line 246 of file Defines.php.

Definition at line 247 of file Defines.php.

Definition at line 251 of file Defines.php.

Definition at line 248 of file Defines.php.

enum RC_EDIT

RecentChange type identifiers

Definition at line 153 of file Defines.php.

enum RC_LOG

RecentChange type identifiers

Definition at line 156 of file Defines.php.

enum RC_MOVE

RecentChange type identifiers

Definition at line 155 of file Defines.php.

RecentChange type identifiers

Definition at line 157 of file Defines.php.

enum RC_NEW

RecentChange type identifiers

Definition at line 154 of file Defines.php.

Flags for Parser::replaceLinkHolders.

Definition at line 226 of file Defines.php.

Flags for Parser::setFunctionHook

Definition at line 214 of file Defines.php.

Flags for Parser::setFunctionHook

Definition at line 215 of file Defines.php.

Flags for Parser::setLinkHook.

Definition at line 221 of file Defines.php.