MediaWiki REL1_35
Defines.php
Go to the documentation of this file.
1<?php
23require_once __DIR__ . '/libs/mime/defines.php';
24require_once __DIR__ . '/libs/rdbms/defines.php';
25
27
40define( 'MW_VERSION', '1.35.14' );
41
42# Obsolete aliases
43
48define( 'LIST_COMMA', IDatabase::LIST_COMMA );
49define( 'LIST_AND', IDatabase::LIST_AND );
50define( 'LIST_SET', IDatabase::LIST_SET );
51define( 'LIST_NAMES', IDatabase::LIST_NAMES );
52define( 'LIST_OR', IDatabase::LIST_OR );
58define( 'NS_MEDIA', -2 );
59define( 'NS_SPECIAL', -1 );
70define( 'NS_MAIN', 0 );
71define( 'NS_TALK', 1 );
72define( 'NS_USER', 2 );
73define( 'NS_USER_TALK', 3 );
74define( 'NS_PROJECT', 4 );
75define( 'NS_PROJECT_TALK', 5 );
76define( 'NS_FILE', 6 );
77define( 'NS_FILE_TALK', 7 );
78define( 'NS_MEDIAWIKI', 8 );
79define( 'NS_MEDIAWIKI_TALK', 9 );
80define( 'NS_TEMPLATE', 10 );
81define( 'NS_TEMPLATE_TALK', 11 );
82define( 'NS_HELP', 12 );
83define( 'NS_HELP_TALK', 13 );
84define( 'NS_CATEGORY', 14 );
85define( 'NS_CATEGORY_TALK', 15 );
91define( 'CACHE_ANYTHING', -1 ); // Use anything, as long as it works
92define( 'CACHE_NONE', 0 ); // Do not cache
93define( 'CACHE_DB', 1 ); // Store cache objects in the DB
94define( 'CACHE_MEMCACHED', 2 ); // MemCached, must specify servers in $wgMemCacheServers
95define( 'CACHE_ACCEL', 3 ); // APC or WinCache
101define( 'AV_NO_VIRUS', 0 ); # scan ok, no virus found
102define( 'AV_VIRUS_FOUND', 1 ); # virus found!
103define( 'AV_SCAN_ABORTED', -1 ); # scan aborted, the file is probably immune
104define( 'AV_SCAN_FAILED', false ); # scan failed (scanner not found or error in scanner)
112define( 'ALF_PRELOAD_LINKS', 1 ); // unused
113define( 'ALF_PRELOAD_EXISTENCE', 2 ); // unused
114define( 'ALF_NO_LINK_LOCK', 4 ); // unused
115define( 'ALF_NO_BLOCK_LOCK', 8 ); // unused
122define( 'MW_DATE_DEFAULT', 'default' );
123define( 'MW_DATE_MDY', 'mdy' );
124define( 'MW_DATE_DMY', 'dmy' );
125define( 'MW_DATE_YMD', 'ymd' );
126define( 'MW_DATE_ISO', 'ISO 8601' );
132define( 'RC_EDIT', 0 );
133define( 'RC_NEW', 1 );
134define( 'RC_LOG', 3 );
135define( 'RC_EXTERNAL', 5 );
136define( 'RC_CATEGORIZE', 6 );
142define( 'EDIT_NEW', 1 );
143define( 'EDIT_UPDATE', 2 );
144define( 'EDIT_MINOR', 4 );
145define( 'EDIT_SUPPRESS_RC', 8 );
146define( 'EDIT_FORCE_BOT', 16 );
147define( 'EDIT_DEFER_UPDATES', 32 ); // Unused since 1.27
148define( 'EDIT_AUTOSUMMARY', 64 );
149define( 'EDIT_INTERNAL', 128 );
163
174define( 'OT_HTML', 1 );
175define( 'OT_WIKI', 2 );
176define( 'OT_PREPROCESS', 3 );
177define( 'OT_MSG', 3 ); // b/c alias for OT_PREPROCESS
178define( 'OT_PLAIN', 4 );
187define( 'SFH_NO_HASH', 1 );
188define( 'SFH_OBJECT_ARGS', 2 );
195define( 'APCOND_EDITCOUNT', 1 );
196define( 'APCOND_AGE', 2 );
198define( 'APCOND_INGROUPS', 4 );
199define( 'APCOND_ISIP', 5 );
200define( 'APCOND_IPINRANGE', 6 );
201define( 'APCOND_AGE_FROM_EDIT', 7 );
202define( 'APCOND_BLOCKED', 8 );
203define( 'APCOND_ISBOT', 9 );
209define( 'PROTO_HTTP', 'http://' );
210define( 'PROTO_HTTPS', 'https://' );
211define( 'PROTO_RELATIVE', '//' );
212define( 'PROTO_CURRENT', null );
213define( 'PROTO_CANONICAL', 1 );
214define( 'PROTO_INTERNAL', 2 );
225define( 'CONTENT_MODEL_WIKITEXT', 'wikitext' );
226define( 'CONTENT_MODEL_JAVASCRIPT', 'javascript' );
227define( 'CONTENT_MODEL_CSS', 'css' );
228define( 'CONTENT_MODEL_TEXT', 'text' );
229define( 'CONTENT_MODEL_JSON', 'json' );
239// wikitext
240define( 'CONTENT_FORMAT_WIKITEXT', 'text/x-wiki' );
241// for js pages
242define( 'CONTENT_FORMAT_JAVASCRIPT', 'text/javascript' );
243// for css pages
244define( 'CONTENT_FORMAT_CSS', 'text/css' );
245// for future use, e.g. with some plain-html messages.
246define( 'CONTENT_FORMAT_TEXT', 'text/plain' );
247// for future use, e.g. with some plain-html messages.
248define( 'CONTENT_FORMAT_HTML', 'text/html' );
249// for future use with the api and for extensions
250define( 'CONTENT_FORMAT_SERIALIZED', 'application/vnd.php.serialized' );
251// for future use with the api, and for use by extensions
252define( 'CONTENT_FORMAT_JSON', 'application/json' );
253// for future use with the api, and for use by extensions
254define( 'CONTENT_FORMAT_XML', 'application/xml' );
260define( 'SHELL_MAX_ARG_STRLEN', '100000' );
274define( 'SCHEMA_COMPAT_WRITE_OLD', 0x01 );
275define( 'SCHEMA_COMPAT_READ_OLD', 0x02 );
276define( 'SCHEMA_COMPAT_WRITE_NEW', 0x10 );
277define( 'SCHEMA_COMPAT_READ_NEW', 0x20 );
305define( 'MIGRATION_OLD', 0x00000000 | SCHEMA_COMPAT_OLD );
308define( 'MIGRATION_NEW', 0x30000000 | SCHEMA_COMPAT_NEW );
318define( 'XML_DUMP_SCHEMA_VERSION_10', '0.10' );
319define( 'XML_DUMP_SCHEMA_VERSION_11', '0.11' );
const MW_SUPPORTS_RESOURCE_MODULES
Support for $wgResourceModules.
Definition Defines.php:162
const SCHEMA_COMPAT_WRITE_BOTH
Definition Defines.php:278
const APCOND_BLOCKED
Definition Defines.php:202
const CONTENT_FORMAT_JAVASCRIPT
Definition Defines.php:242
const SCHEMA_COMPAT_OLD
Definition Defines.php:280
const OT_WIKI
Definition Defines.php:175
const SFH_NO_HASH
Definition Defines.php:187
const ALF_PRELOAD_LINKS
Definition Defines.php:112
const CONTENT_FORMAT_HTML
Definition Defines.php:248
const CONTENT_FORMAT_JSON
Definition Defines.php:252
const SCHEMA_COMPAT_READ_NEW
Definition Defines.php:277
const PROTO_CANONICAL
Definition Defines.php:213
const EDIT_FORCE_BOT
Definition Defines.php:146
const APCOND_AGE
Definition Defines.php:196
const ALF_NO_BLOCK_LOCK
Definition Defines.php:115
const ALF_PRELOAD_EXISTENCE
Definition Defines.php:113
const APCOND_EMAILCONFIRMED
Definition Defines.php:197
const SCHEMA_COMPAT_READ_BOTH
Definition Defines.php:279
const SFH_OBJECT_ARGS
Definition Defines.php:188
const EDIT_DEFER_UPDATES
Definition Defines.php:147
const EDIT_INTERNAL
Definition Defines.php:149
const EDIT_UPDATE
Definition Defines.php:143
const PROTO_HTTPS
Definition Defines.php:210
const SCHEMA_COMPAT_WRITE_OLD
Definition Defines.php:274
const APCOND_IPINRANGE
Definition Defines.php:200
const MW_SUPPORTS_CONTENTHANDLER
Definition Defines.php:157
const CONTENT_MODEL_CSS
Definition Defines.php:227
const APCOND_INGROUPS
Definition Defines.php:198
const RC_NEW
Definition Defines.php:133
const PROTO_CURRENT
Definition Defines.php:212
const MW_EDITFILTERMERGED_SUPPORTS_API
Definition Defines.php:158
const PROTO_INTERNAL
Definition Defines.php:214
const CONTENT_FORMAT_TEXT
Definition Defines.php:246
const APCOND_ISBOT
Definition Defines.php:203
const APCOND_AGE_FROM_EDIT
Definition Defines.php:201
const EDIT_SUPPRESS_RC
Definition Defines.php:145
const MW_DATE_MDY
Definition Defines.php:123
const CONTENT_FORMAT_CSS
Definition Defines.php:244
const XML_DUMP_SCHEMA_VERSION_11
Definition Defines.php:319
const OT_PLAIN
Definition Defines.php:178
const MW_DATE_DMY
Definition Defines.php:124
const MW_SUPPORTS_LOCALISATIONCACHE
Definition Defines.php:156
const OT_PREPROCESS
Definition Defines.php:176
const APCOND_ISIP
Definition Defines.php:199
const CONTENT_MODEL_WIKITEXT
Definition Defines.php:225
const MIGRATION_WRITE_NEW
Definition Defines.php:307
const SCHEMA_COMPAT_READ_OLD
Definition Defines.php:275
const XML_DUMP_SCHEMA_VERSION_10
Definition Defines.php:318
const CONTENT_MODEL_JSON
Definition Defines.php:229
const MIGRATION_NEW
Definition Defines.php:308
const RC_LOG
Definition Defines.php:134
const RC_EXTERNAL
Definition Defines.php:135
const MW_DATE_YMD
Definition Defines.php:125
const CONTENT_FORMAT_WIKITEXT
Definition Defines.php:240
const PROTO_HTTP
Definition Defines.php:209
const OT_HTML
Definition Defines.php:174
const CONTENT_MODEL_TEXT
Definition Defines.php:228
const SCHEMA_COMPAT_WRITE_NEW
Definition Defines.php:276
const SHELL_MAX_ARG_STRLEN
Definition Defines.php:260
const APCOND_EDITCOUNT
Definition Defines.php:195
const MW_DATE_ISO
Definition Defines.php:126
const PROTO_RELATIVE
Definition Defines.php:211
const MW_DATE_DEFAULT
Definition Defines.php:122
const SCHEMA_COMPAT_NEW
Definition Defines.php:281
const CONTENT_FORMAT_SERIALIZED
Definition Defines.php:250
const MIGRATION_WRITE_BOTH
Definition Defines.php:306
const RC_EDIT
Definition Defines.php:132
const MIGRATION_OLD
Definition Defines.php:305
const MW_SUPPORTS_PARSERFIRSTCALLINIT
Definition Defines.php:155
const EDIT_MINOR
Definition Defines.php:144
const CONTENT_FORMAT_XML
Definition Defines.php:254
const CONTENT_MODEL_JAVASCRIPT
Definition Defines.php:226
const EDIT_AUTOSUMMARY
Definition Defines.php:148
const ALF_NO_LINK_LOCK
Definition Defines.php:114
const OT_MSG
Definition Defines.php:177
const EDIT_NEW
Definition Defines.php:142
const RC_CATEGORIZE
Definition Defines.php:136
Basic database interface for live and lazy-loaded relation database handles.
Definition IDatabase.php:38