Go to the documentation of this file.
23 require_once __DIR__ .
'/libs/mime/defines.php';
24 require_once __DIR__ .
'/libs/rdbms/defines.php';
36 define(
'DB_SLAVE', -1 );
52 define(
'NS_MEDIA', -2 );
53 define(
'NS_SPECIAL', -1 );
64 define(
'NS_MAIN', 0 );
65 define(
'NS_TALK', 1 );
66 define(
'NS_USER', 2 );
67 define(
'NS_USER_TALK', 3 );
68 define(
'NS_PROJECT', 4 );
69 define(
'NS_PROJECT_TALK', 5 );
70 define(
'NS_FILE', 6 );
71 define(
'NS_FILE_TALK', 7 );
72 define(
'NS_MEDIAWIKI', 8 );
73 define(
'NS_MEDIAWIKI_TALK', 9 );
74 define(
'NS_TEMPLATE', 10 );
75 define(
'NS_TEMPLATE_TALK', 11 );
76 define(
'NS_HELP', 12 );
77 define(
'NS_HELP_TALK', 13 );
78 define(
'NS_CATEGORY', 14 );
79 define(
'NS_CATEGORY_TALK', 15 );
101 define(
'CACHE_ANYTHING', -1 );
102 define(
'CACHE_NONE', 0 );
103 define(
'CACHE_DB', 1 );
104 define(
'CACHE_MEMCACHED', 2 );
105 define(
'CACHE_ACCEL', 3 );
111 define(
'AV_NO_VIRUS', 0 ); # scan ok, no virus found
112 define(
'AV_VIRUS_FOUND', 1 ); # virus found!
113 define(
'AV_SCAN_ABORTED', -1 ); # scan aborted, the
file is probably immune
114 define(
'AV_SCAN_FAILED',
false ); # scan failed (scanner
not found
or error in scanner)
const MW_SUPPORTS_PARSERFIRSTCALLINIT
Using a hook running we can avoid having all this option specific stuff in our mainline code Using the function We ve cleaned up the code here by removing clumps of infrequently used code and moving them off somewhere else It s much easier for someone working with this code to see what s _really_ going and make changes or fix bugs In we can take all the code that deals with the little used title reversing we can concentrate it all in an extension file
const SCHEMA_COMPAT_READ_NEW
const CONTENT_FORMAT_HTML
Prior to maintenance scripts were a hodgepodge of code that had no cohesion or formal method of action Beginning maintenance scripts have been cleaned up to use a unified class Directory structure How to run a script How to write your own DIRECTORY STRUCTURE The maintenance directory of a MediaWiki installation contains several all of which have unique purposes HOW TO RUN A SCRIPT Ridiculously just call php someScript php that s in the top level maintenance directory if not default wiki
const ALF_PRELOAD_EXISTENCE
const MIGRATION_WRITE_BOTH
const CONTENT_MODEL_WIKITEXT
Apache License January http
This document is intended to provide useful advice for parties seeking to redistribute MediaWiki to end users It s targeted particularly at maintainers for Linux since it s been observed that distribution packages of MediaWiki often break We ve consistently had to recommend that users seeking support use official tarballs instead of their distribution s and this often solves whatever problem the user is having It would be nice if this could such and we might be restricted by PHP settings such as safe mode or open_basedir We cannot assume that the software even has read access anywhere useful Many shared hosts run all users web applications under the same so they can t rely on Unix and must forbid reads to even standard directories like tmp lest users read each others files We cannot assume that the user has the ability to install or run any programs not written as web accessible PHP scripts Since anything that works on cheap shared hosting will work if you have shell or root access MediaWiki s design is based around catering to the lowest common denominator Although we support higher end setups as the way many things work by default is tailored toward shared hosting These defaults are unconventional from the point of view of and they certainly aren t ideal for someone who s installing MediaWiki as MediaWiki does not conform to normal Unix filesystem layout Hopefully we ll offer direct support for standard layouts in the but for now *any change to the location of files is unsupported *Moving things and leaving symlinks will *probably *not break but it is *strongly *advised not to try any more intrusive changes to get MediaWiki to conform more closely to your filesystem hierarchy Any such attempt will almost certainly result in unnecessary bugs The standard recommended location to install relative to the web is it should be possible to enable the appropriate rewrite rules by default
This document provides an overview of the usage of PageUpdater and that is
injection txt This is an overview of how MediaWiki makes use of dependency injection The design described here grew from the discussion of RFC T384 The term dependency this means that anything an object needs to operate should be injected from the the object itself should only know narrow no concrete implementation of the logic it relies on The requirement to inject everything typically results in an architecture that based on two main types of and essentially stateless service objects that use other service objects to operate on the value objects As of the beginning MediaWiki is only starting to use the DI approach Much of the code still relies on global state or direct resulting in a highly cyclical dependency which acts as the top level factory for services in MediaWiki which can be used to gain access to default instances of various services MediaWikiServices however also allows new services to be defined and default services to be redefined Services are defined or redefined by providing a callback the instantiator that will return a new instance of the service When it will create an instance of MediaWikiServices and populate it with the services defined in the files listed by thereby bootstrapping the DI framework Per $wgServiceWiringFiles lists includes ServiceWiring php
const MW_EDITFILTERMERGED_SUPPORTS_API
const MIGRATION_WRITE_NEW
scripts txt MediaWiki primary scripts are in the root directory of the software Users should only use these scripts to access the wiki There are also some php that aren t primary scripts but helper files and won t work if they are accessed directly by the web Primary see https
const APCOND_AGE_FROM_EDIT
const CONTENT_FORMAT_JSON
null for the wiki Added in
const CONTENT_FORMAT_SERIALIZED
const SHELL_MAX_ARG_STRLEN
as see the revision history and available at free of to any person obtaining a copy of this software and associated documentation to deal in the Software without including without limitation the rights to use
const CONTENT_FORMAT_TEXT
const CONTENT_FORMAT_WIKITEXT
const MW_SUPPORTS_CONTENTHANDLER
const SCHEMA_COMPAT_WRITE_OLD
const SCHEMA_COMPAT_WRITE_NEW
This list may contain false positives That usually means there is additional text with links below the first Each row contains links to the first and second as well as the first line of the second redirect text
const MW_SUPPORTS_RESOURCE_MODULES
Support for $wgResourceModules.
const SCHEMA_COMPAT_WRITE_BOTH
do that in ParserLimitReportFormat instead use this to modify the parameters of the image all existing parser cache entries will be invalid To avoid you ll need to handle that somehow(e.g. with the RejectParserCacheValue hook) because MediaWiki won 't do it for you. & $defaults error
const CONTENT_MODEL_JAVASCRIPT
const CONTENT_FORMAT_JAVASCRIPT
const MW_SUPPORTS_LOCALISATIONCACHE
const SCHEMA_COMPAT_READ_BOTH
const SCHEMA_COMPAT_READ_OLD
const APCOND_EMAILCONFIRMED