GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |
GeezerVison is showing doc.wikimedia.org — MediaWiki: includes/Defines.php Source File
Toggle main menu visibility
Defines.php
Go to the documentation of this file.
1<?php
8
9require_once __DIR__ . '/libs/Mime/defines.php';
10require_once __DIR__ . '/libs/Rdbms/defines.php';
11
12use Wikimedia\Rdbms\IDatabase;
13
24
29define( 'LIST_COMMA', IDatabase::LIST_COMMA );
30define( 'LIST_AND', IDatabase::LIST_AND );
31define( 'LIST_SET', IDatabase::LIST_SET );
32define( 'LIST_NAMES', IDatabase::LIST_NAMES );
33define( 'LIST_OR', IDatabase::LIST_OR );
35
39define( 'NS_MEDIA', -2 );
40define( 'NS_SPECIAL', -1 );
42
51define( 'NS_MAIN', 0 );
52define( 'NS_TALK', 1 );
53define( 'NS_USER', 2 );
54define( 'NS_USER_TALK', 3 );
55define( 'NS_PROJECT', 4 );
56define( 'NS_PROJECT_TALK', 5 );
57define( 'NS_FILE', 6 );
58define( 'NS_FILE_TALK', 7 );
59define( 'NS_MEDIAWIKI', 8 );
60define( 'NS_MEDIAWIKI_TALK', 9 );
61define( 'NS_TEMPLATE', 10 );
62define( 'NS_TEMPLATE_TALK', 11 );
63define( 'NS_HELP', 12 );
64define( 'NS_HELP_TALK', 13 );
65define( 'NS_CATEGORY', 14 );
66define( 'NS_CATEGORY_TALK', 15 );
68
79
83define( 'AV_NO_VIRUS', 0 ); # scan ok, no virus found
84define( 'AV_VIRUS_FOUND', 1 ); # virus found!
85define( 'AV_SCAN_ABORTED', -1 ); # scan aborted, the file is probably immune
88
89
93define( 'MW_DATE_DEFAULT', 'default' );
94define( 'MW_DATE_MDY', 'mdy' );
95define( 'MW_DATE_DMY', 'dmy' );
96define( 'MW_DATE_YMD', 'ymd' );
97define( 'MW_DATE_ISO', 'ISO 8601' );
99
106define( 'RC_EXTERNAL', 5 );
107define( 'RC_CATEGORIZE', 6 );
109
115
117define( 'EDIT_UPDATE', 2 );
118
120define( 'EDIT_MINOR', 4 );
121
123define( 'EDIT_SILENT', 8 );
124
127
129define( 'EDIT_FORCE_BOT', 16 );
130
132define( 'EDIT_DEFER_UPDATES', 32 );
133
135define( 'EDIT_AUTOSUMMARY', 64 );
136
138define( 'EDIT_INTERNAL', 128 );
139
141define( 'EDIT_IMPLICIT', 256 );
143
147define( 'MW_SUPPORTS_PARSERFIRSTCALLINIT', 1 );
148define( 'MW_SUPPORTS_LOCALISATIONCACHE', 1 );
149define( 'MW_SUPPORTS_CONTENTHANDLER', 1 );
150define( 'MW_EDITFILTERMERGED_SUPPORTS_API', 1 );
152
154define( 'MW_SUPPORTS_RESOURCE_MODULES', 1 );
155
160define( 'MW_HAS_SPECIAL_INTERWIKI', 1 );
161
173define( 'OT_PREPROCESS', 3 );
176
183define( 'SFH_NO_HASH', 1 );
184define( 'SFH_OBJECT_ARGS', 2 );
186
190define( 'APCOND_EDITCOUNT', 1 );
191define( 'APCOND_AGE', 2 );
192define( 'APCOND_EMAILCONFIRMED', 3 );
193define( 'APCOND_INGROUPS', 4 );
194define( 'APCOND_ISIP', 5 );
195define( 'APCOND_IPINRANGE', 6 );
196define( 'APCOND_AGE_FROM_EDIT', 7 );
197define( 'APCOND_BLOCKED', 8 );
198define( 'APCOND_ISBOT', 9 );
200
207define( 'CUDCOND_AFTER', 'registered-after' );
208define( 'CUDCOND_ANON', 'anonymous-user' );
209define( 'CUDCOND_NAMED', 'named-user' );
210define( 'CUDCOND_USERGROUP', 'usergroup' );
212
220define( 'PROTO_FALLBACK', null );
221// Legacy alias for PROTO_FALLBACK from when the current request's protocol was always the fallback
223define( 'PROTO_CANONICAL', 1 );
224define( 'PROTO_INTERNAL', 2 );
226
235define( 'CONTENT_MODEL_WIKITEXT', 'wikitext' );
236define( 'CONTENT_MODEL_JAVASCRIPT', 'javascript' );
237define( 'CONTENT_MODEL_CSS', 'css' );
238define( 'CONTENT_MODEL_TEXT', 'text' );
239define( 'CONTENT_MODEL_JSON', 'json' );
241define( 'CONTENT_MODEL_VUE', 'vue' );
242define( 'CONTENT_MODEL_UNKNOWN', 'unknown' );
244
253define( 'CONTENT_FORMAT_WIKITEXT', 'text/x-wiki' );
255define( 'CONTENT_FORMAT_JAVASCRIPT', 'text/javascript' );
257define( 'CONTENT_FORMAT_CSS', 'text/css' );
259define( 'CONTENT_FORMAT_VUE', 'application/vue+xml' );
261define( 'CONTENT_FORMAT_TEXT', 'text/plain' );
263define( 'CONTENT_FORMAT_HTML', 'text/html' );
265define( 'CONTENT_FORMAT_SERIALIZED', 'application/vnd.php.serialized' );
267define( 'CONTENT_FORMAT_JSON', 'application/json' );
269define( 'CONTENT_FORMAT_XML', 'application/xml' );
271
275define( 'SHELL_MAX_ARG_STRLEN', '100000' );
277
293define( 'SCHEMA_COMPAT_WRITE_OLD', 0x01 );
294define( 'SCHEMA_COMPAT_READ_OLD', 0x02 );
295define( 'SCHEMA_COMPAT_WRITE_TEMP', 0x10 );
296define( 'SCHEMA_COMPAT_READ_TEMP', 0x20 );
297define( 'SCHEMA_COMPAT_WRITE_NEW', 0x100 );
298define( 'SCHEMA_COMPAT_READ_NEW', 0x200 );
299define( 'SCHEMA_COMPAT_WRITE_MASK',
301define( 'SCHEMA_COMPAT_READ_MASK',
304define( 'SCHEMA_COMPAT_WRITE_OLD_AND_TEMP', SCHEMA_COMPAT_WRITE_OLD | SCHEMA_COMPAT_WRITE_TEMP );
305define( 'SCHEMA_COMPAT_WRITE_TEMP_AND_NEW', SCHEMA_COMPAT_WRITE_TEMP | SCHEMA_COMPAT_WRITE_NEW );
311
338define( 'MIGRATION_WRITE_BOTH', 0x10000000 | SCHEMA_COMPAT_READ_BOTH | SCHEMA_COMPAT_WRITE_BOTH );
342
350define( 'XML_DUMP_SCHEMA_VERSION_10', '0.10' );
351define( 'XML_DUMP_SCHEMA_VERSION_11', '0.11' );
const CONTENT_FORMAT_JSON For future use with the API, and for use by extensions. Definition Defines.php:267 const EDIT_INTERNAL Signal that the page retrieve/save cycle happened entirely in this request. Definition Defines.php:138 const EDIT_UPDATE Article is assumed to be pre-existing, fail if it doesn't exist. Definition Defines.php:117 const MW_HAS_SPECIAL_INTERWIKI Indicate that the Interwiki extension should not be loaded (it is now in core). Definition Defines.php:160 const EDIT_IMPLICIT The edit is a side effect and does not represent an active user contribution. Definition Defines.php:141 const CONTENT_FORMAT_SERIALIZED For future use with the API and for extensions. Definition Defines.php:265 const CONTENT_FORMAT_XML For future use with the API, and for use by extensions. Definition Defines.php:269 const EDIT_AUTOSUMMARY Fill in blank summaries with generated text where possible. Definition Defines.php:135
| |
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |