Movatterモバイル変換


[0]ホーム

URL:


MediaWiki master
Defines.php
Go to the documentation of this file.
1<?php
9require_once __DIR__ .'/libs/Mime/defines.php';
10require_once __DIR__ .'/libs/Rdbms/defines.php';
11
12useWikimedia\Rdbms\IDatabase;
13
23define('MW_VERSION','1.46.0-alpha' );
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 );
39define('NS_MEDIA', -2 );
40define('NS_SPECIAL', -1 );
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 );
72define('CACHE_ANYTHING', -1 );// Use anything, as long as it works
73define('CACHE_NONE', 0 );// Do not cache
74define('CACHE_DB', 1 );// Store cache objects in the DB
75define('CACHE_MEMCACHED','memcached-php' );// Backwards-compatability alias for Memcached
76define('CACHE_ACCEL', 3 );// APC or APCu
77define('CACHE_HASH','hash' );// A HashBagOStuff, mostly useful for testing. Not configurable
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
86define('AV_SCAN_FAILED',false ); # scan failed (scanner not found or error in scanner)
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' );
103define( 'RC_EDIT', 0 );
104define( 'RC_NEW', 1 );
105define( 'RC_LOG', 3 );
106define( 'RC_EXTERNAL', 5 );
107define( 'RC_CATEGORIZE', 6 );
114define( 'EDIT_NEW', 1 );
115
117define( 'EDIT_UPDATE', 2 );
118
120define( 'EDIT_MINOR', 4 );
121
123define( 'EDIT_SILENT', 8 );
124
126define( 'EDIT_SUPPRESS_RC',EDIT_SILENT );
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 );
147define( 'MW_SUPPORTS_PARSERFIRSTCALLINIT', 1 );
148define( 'MW_SUPPORTS_LOCALISATIONCACHE', 1 );
149define( 'MW_SUPPORTS_CONTENTHANDLER', 1 );
150define( 'MW_EDITFILTERMERGED_SUPPORTS_API', 1 );
154define( 'MW_SUPPORTS_RESOURCE_MODULES', 1 );
155
160define( 'MW_HAS_SPECIAL_INTERWIKI', 1 );
161
171define( 'OT_HTML', 1 );
172define( 'OT_WIKI', 2 );
173define( 'OT_PREPROCESS', 3 );
174define( 'OT_PLAIN', 4 );
183define( 'SFH_NO_HASH', 1 );
184define( 'SFH_OBJECT_ARGS', 2 );
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 );
207define( 'CUDCOND_AFTER', 'registered-after' );
208define( 'CUDCOND_ANON', 'anonymous-user' );
209define( 'CUDCOND_NAMED', 'named-user' );
210define( 'CUDCOND_USERGROUP', 'usergroup' );
217define( 'PROTO_HTTP', 'http://' );
218define( 'PROTO_HTTPS', 'https://' );
219define( 'PROTO_RELATIVE', '//' );
220define( 'PROTO_FALLBACK', null );
221// Legacy alias for PROTO_FALLBACK from when the current request's protocol was always the fallback
222define( 'PROTO_CURRENT',PROTO_FALLBACK );
223define( 'PROTO_CANONICAL', 1 );
224define( 'PROTO_INTERNAL', 2 );
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' );
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' );
275define( 'SHELL_MAX_ARG_STRLEN', '100000' );
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',
300SCHEMA_COMPAT_WRITE_OLD |SCHEMA_COMPAT_WRITE_TEMP |SCHEMA_COMPAT_WRITE_NEW );
301define( 'SCHEMA_COMPAT_READ_MASK',
302SCHEMA_COMPAT_READ_OLD |SCHEMA_COMPAT_READ_TEMP |SCHEMA_COMPAT_READ_NEW );
303define( 'SCHEMA_COMPAT_WRITE_BOTH',SCHEMA_COMPAT_WRITE_OLD |SCHEMA_COMPAT_WRITE_NEW );
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 );
306define( 'SCHEMA_COMPAT_READ_BOTH',SCHEMA_COMPAT_READ_OLD |SCHEMA_COMPAT_READ_NEW );
307define( 'SCHEMA_COMPAT_OLD',SCHEMA_COMPAT_WRITE_OLD |SCHEMA_COMPAT_READ_OLD );
308define( 'SCHEMA_COMPAT_TEMP',SCHEMA_COMPAT_WRITE_TEMP |SCHEMA_COMPAT_READ_TEMP );
309define( 'SCHEMA_COMPAT_NEW',SCHEMA_COMPAT_WRITE_NEW |SCHEMA_COMPAT_READ_NEW );
337define( 'MIGRATION_OLD', 0x00000000 |SCHEMA_COMPAT_OLD );
338define( 'MIGRATION_WRITE_BOTH', 0x10000000 |SCHEMA_COMPAT_READ_BOTH |SCHEMA_COMPAT_WRITE_BOTH );
339define( 'MIGRATION_WRITE_NEW', 0x20000000 |SCHEMA_COMPAT_READ_BOTH |SCHEMA_COMPAT_WRITE_NEW );
340define( 'MIGRATION_NEW', 0x30000000 |SCHEMA_COMPAT_NEW );
350define( 'XML_DUMP_SCHEMA_VERSION_10', '0.10' );
351define( 'XML_DUMP_SCHEMA_VERSION_11', '0.11' );
SCHEMA_COMPAT_WRITE_BOTH
const SCHEMA_COMPAT_WRITE_BOTH
DefinitionDefines.php:301
APCOND_BLOCKED
const APCOND_BLOCKED
DefinitionDefines.php:197
CUDCOND_NAMED
const CUDCOND_NAMED
DefinitionDefines.php:209
CONTENT_FORMAT_JAVASCRIPT
const CONTENT_FORMAT_JAVASCRIPT
For JS pages.
DefinitionDefines.php:255
SCHEMA_COMPAT_OLD
const SCHEMA_COMPAT_OLD
DefinitionDefines.php:305
OT_WIKI
const OT_WIKI
DefinitionDefines.php:172
SFH_NO_HASH
const SFH_NO_HASH
DefinitionDefines.php:183
CONTENT_FORMAT_HTML
const CONTENT_FORMAT_HTML
For future use, e.g.
DefinitionDefines.php:263
SCHEMA_COMPAT_WRITE_TEMP
const SCHEMA_COMPAT_WRITE_TEMP
DefinitionDefines.php:295
CONTENT_FORMAT_JSON
const CONTENT_FORMAT_JSON
For future use with the API, and for use by extensions.
DefinitionDefines.php:267
SCHEMA_COMPAT_READ_NEW
const SCHEMA_COMPAT_READ_NEW
DefinitionDefines.php:298
PROTO_CANONICAL
const PROTO_CANONICAL
DefinitionDefines.php:223
EDIT_FORCE_BOT
const EDIT_FORCE_BOT
Mark the edit a "bot" edit regardless of user rights.
DefinitionDefines.php:129
APCOND_AGE
const APCOND_AGE
DefinitionDefines.php:191
CONTENT_MODEL_VUE
const CONTENT_MODEL_VUE
DefinitionDefines.php:241
APCOND_EMAILCONFIRMED
const APCOND_EMAILCONFIRMED
DefinitionDefines.php:192
SCHEMA_COMPAT_READ_BOTH
const SCHEMA_COMPAT_READ_BOTH
DefinitionDefines.php:304
SFH_OBJECT_ARGS
const SFH_OBJECT_ARGS
DefinitionDefines.php:184
SCHEMA_COMPAT_WRITE_TEMP_AND_NEW
const SCHEMA_COMPAT_WRITE_TEMP_AND_NEW
DefinitionDefines.php:303
EDIT_DEFER_UPDATES
const EDIT_DEFER_UPDATES
DefinitionDefines.php:132
EDIT_INTERNAL
const EDIT_INTERNAL
Signal that the page retrieve/save cycle happened entirely in this request.
DefinitionDefines.php:138
EDIT_UPDATE
const EDIT_UPDATE
Article is assumed to be pre-existing, fail if it doesn't exist.
DefinitionDefines.php:117
PROTO_HTTPS
const PROTO_HTTPS
DefinitionDefines.php:218
SCHEMA_COMPAT_WRITE_OLD
const SCHEMA_COMPAT_WRITE_OLD
DefinitionDefines.php:293
APCOND_IPINRANGE
const APCOND_IPINRANGE
DefinitionDefines.php:195
MW_SUPPORTS_CONTENTHANDLER
const MW_SUPPORTS_CONTENTHANDLER
DefinitionDefines.php:149
CONTENT_MODEL_CSS
const CONTENT_MODEL_CSS
DefinitionDefines.php:237
CUDCOND_AFTER
const CUDCOND_AFTER
DefinitionDefines.php:207
APCOND_INGROUPS
const APCOND_INGROUPS
DefinitionDefines.php:193
RC_NEW
const RC_NEW
DefinitionDefines.php:104
PROTO_CURRENT
const PROTO_CURRENT
DefinitionDefines.php:222
MW_EDITFILTERMERGED_SUPPORTS_API
const MW_EDITFILTERMERGED_SUPPORTS_API
DefinitionDefines.php:150
PROTO_INTERNAL
const PROTO_INTERNAL
DefinitionDefines.php:224
CONTENT_FORMAT_TEXT
const CONTENT_FORMAT_TEXT
For future use, e.g.
DefinitionDefines.php:261
APCOND_ISBOT
const APCOND_ISBOT
DefinitionDefines.php:198
APCOND_AGE_FROM_EDIT
const APCOND_AGE_FROM_EDIT
DefinitionDefines.php:196
EDIT_SUPPRESS_RC
const EDIT_SUPPRESS_RC
DefinitionDefines.php:126
MW_DATE_MDY
const MW_DATE_MDY
DefinitionDefines.php:94
CONTENT_FORMAT_CSS
const CONTENT_FORMAT_CSS
For CSS pages.
DefinitionDefines.php:257
SCHEMA_COMPAT_WRITE_OLD_AND_TEMP
const SCHEMA_COMPAT_WRITE_OLD_AND_TEMP
DefinitionDefines.php:302
XML_DUMP_SCHEMA_VERSION_11
const XML_DUMP_SCHEMA_VERSION_11
DefinitionDefines.php:349
SCHEMA_COMPAT_READ_TEMP
const SCHEMA_COMPAT_READ_TEMP
DefinitionDefines.php:296
OT_PLAIN
const OT_PLAIN
DefinitionDefines.php:174
MW_DATE_DMY
const MW_DATE_DMY
DefinitionDefines.php:95
PROTO_FALLBACK
const PROTO_FALLBACK
DefinitionDefines.php:220
MW_SUPPORTS_LOCALISATIONCACHE
const MW_SUPPORTS_LOCALISATIONCACHE
DefinitionDefines.php:148
OT_PREPROCESS
const OT_PREPROCESS
DefinitionDefines.php:173
APCOND_ISIP
const APCOND_ISIP
DefinitionDefines.php:194
MW_HAS_SPECIAL_INTERWIKI
const MW_HAS_SPECIAL_INTERWIKI
Indicate that the Interwiki extension should not be loaded (it is now in core).
DefinitionDefines.php:160
CONTENT_MODEL_WIKITEXT
const CONTENT_MODEL_WIKITEXT
DefinitionDefines.php:235
MIGRATION_WRITE_NEW
const MIGRATION_WRITE_NEW
DefinitionDefines.php:337
SCHEMA_COMPAT_READ_OLD
const SCHEMA_COMPAT_READ_OLD
DefinitionDefines.php:294
XML_DUMP_SCHEMA_VERSION_10
const XML_DUMP_SCHEMA_VERSION_10
DefinitionDefines.php:348
CONTENT_MODEL_JSON
const CONTENT_MODEL_JSON
DefinitionDefines.php:239
MIGRATION_NEW
const MIGRATION_NEW
DefinitionDefines.php:338
RC_LOG
const RC_LOG
DefinitionDefines.php:105
RC_EXTERNAL
const RC_EXTERNAL
DefinitionDefines.php:106
MW_DATE_YMD
const MW_DATE_YMD
DefinitionDefines.php:96
CONTENT_FORMAT_WIKITEXT
const CONTENT_FORMAT_WIKITEXT
Wikitext.
DefinitionDefines.php:253
PROTO_HTTP
const PROTO_HTTP
DefinitionDefines.php:217
EDIT_IMPLICIT
const EDIT_IMPLICIT
The edit is a side effect and does not represent an active user contribution.
DefinitionDefines.php:141
OT_HTML
const OT_HTML
DefinitionDefines.php:171
MW_SUPPORTS_RESOURCE_MODULES
const MW_SUPPORTS_RESOURCE_MODULES
Support for $wgResourceModules.
DefinitionDefines.php:154
CONTENT_MODEL_TEXT
const CONTENT_MODEL_TEXT
DefinitionDefines.php:238
SCHEMA_COMPAT_WRITE_NEW
const SCHEMA_COMPAT_WRITE_NEW
DefinitionDefines.php:297
SHELL_MAX_ARG_STRLEN
const SHELL_MAX_ARG_STRLEN
DefinitionDefines.php:275
SCHEMA_COMPAT_WRITE_MASK
const SCHEMA_COMPAT_WRITE_MASK
DefinitionDefines.php:299
APCOND_EDITCOUNT
const APCOND_EDITCOUNT
DefinitionDefines.php:190
MW_DATE_ISO
const MW_DATE_ISO
DefinitionDefines.php:97
PROTO_RELATIVE
const PROTO_RELATIVE
DefinitionDefines.php:219
MW_DATE_DEFAULT
const MW_DATE_DEFAULT
DefinitionDefines.php:93
SCHEMA_COMPAT_NEW
const SCHEMA_COMPAT_NEW
DefinitionDefines.php:307
CONTENT_FORMAT_SERIALIZED
const CONTENT_FORMAT_SERIALIZED
For future use with the API and for extensions.
DefinitionDefines.php:265
MIGRATION_WRITE_BOTH
const MIGRATION_WRITE_BOTH
DefinitionDefines.php:336
CUDCOND_USERGROUP
const CUDCOND_USERGROUP
DefinitionDefines.php:210
SCHEMA_COMPAT_TEMP
const SCHEMA_COMPAT_TEMP
DefinitionDefines.php:306
RC_EDIT
const RC_EDIT
DefinitionDefines.php:103
MIGRATION_OLD
const MIGRATION_OLD
DefinitionDefines.php:335
CONTENT_MODEL_UNKNOWN
const CONTENT_MODEL_UNKNOWN
DefinitionDefines.php:242
MW_SUPPORTS_PARSERFIRSTCALLINIT
const MW_SUPPORTS_PARSERFIRSTCALLINIT
DefinitionDefines.php:147
EDIT_SILENT
const EDIT_SILENT
Do not notify other users (e.g.
DefinitionDefines.php:123
EDIT_MINOR
const EDIT_MINOR
Mark this edit minor, if the user is allowed to do so.
DefinitionDefines.php:120
CONTENT_FORMAT_XML
const CONTENT_FORMAT_XML
For future use with the API, and for use by extensions.
DefinitionDefines.php:269
CONTENT_FORMAT_VUE
const CONTENT_FORMAT_VUE
For Vue pages.
DefinitionDefines.php:259
SCHEMA_COMPAT_READ_MASK
const SCHEMA_COMPAT_READ_MASK
DefinitionDefines.php:300
CONTENT_MODEL_JAVASCRIPT
const CONTENT_MODEL_JAVASCRIPT
DefinitionDefines.php:236
EDIT_AUTOSUMMARY
const EDIT_AUTOSUMMARY
Fill in blank summaries with generated text where possible.
DefinitionDefines.php:135
CUDCOND_ANON
const CUDCOND_ANON
DefinitionDefines.php:208
EDIT_NEW
const EDIT_NEW
Article is assumed to be non-existent, fail if it exists.
DefinitionDefines.php:114
RC_CATEGORIZE
const RC_CATEGORIZE
DefinitionDefines.php:107
Wikimedia\Rdbms\IDatabase
Interface to a relational database.
DefinitionIDatabase.php:31

[8]ページ先頭

©2009-2025 Movatter.jp