23require_once __DIR__ .
'/libs/mime/defines.php';
24require_once __DIR__ .
'/libs/rdbms/defines.php';
39define(
'MW_VERSION',
'1.33.4' );
45define(
'DB_SLAVE', -1 );
51define(
'LIST_COMMA', IDatabase::LIST_COMMA );
52define(
'LIST_AND', IDatabase::LIST_AND );
53define(
'LIST_SET', IDatabase::LIST_SET );
54define(
'LIST_NAMES', IDatabase::LIST_NAMES );
55define(
'LIST_OR', IDatabase::LIST_OR );
61define(
'NS_MEDIA', -2 );
62define(
'NS_SPECIAL', -1 );
73define(
'NS_MAIN', 0 );
74define(
'NS_TALK', 1 );
75define(
'NS_USER', 2 );
76define(
'NS_USER_TALK', 3 );
77define(
'NS_PROJECT', 4 );
78define(
'NS_PROJECT_TALK', 5 );
79define(
'NS_FILE', 6 );
80define(
'NS_FILE_TALK', 7 );
81define(
'NS_MEDIAWIKI', 8 );
82define(
'NS_MEDIAWIKI_TALK', 9 );
83define(
'NS_TEMPLATE', 10 );
84define(
'NS_TEMPLATE_TALK', 11 );
85define(
'NS_HELP', 12 );
86define(
'NS_HELP_TALK', 13 );
87define(
'NS_CATEGORY', 14 );
88define(
'NS_CATEGORY_TALK', 15 );
110define(
'CACHE_ANYTHING', -1 );
111define(
'CACHE_NONE', 0 );
112define(
'CACHE_DB', 1 );
113define(
'CACHE_MEMCACHED', 2 );
114define(
'CACHE_ACCEL', 3 );
120define(
'AV_NO_VIRUS', 0 ); # scan ok, no virus found
121define(
'AV_VIRUS_FOUND', 1 ); # virus found!
122define(
'AV_SCAN_ABORTED', -1 ); # scan aborted, the
file is probably immune
123define(
'AV_SCAN_FAILED',
false ); # scan failed (scanner not found or error in scanner)
Apache License January http
Apache License January AND DISTRIBUTION Definitions License shall mean the terms and conditions for use
const MW_SUPPORTS_RESOURCE_MODULES
Support for $wgResourceModules.
const SCHEMA_COMPAT_WRITE_BOTH
const CONTENT_FORMAT_JAVASCRIPT
const CONTENT_FORMAT_HTML
const CONTENT_FORMAT_JSON
const SCHEMA_COMPAT_READ_NEW
const ALF_PRELOAD_EXISTENCE
const APCOND_EMAILCONFIRMED
const SCHEMA_COMPAT_READ_BOTH
const SCHEMA_COMPAT_WRITE_OLD
const MW_SUPPORTS_CONTENTHANDLER
const MW_EDITFILTERMERGED_SUPPORTS_API
const CONTENT_FORMAT_TEXT
const APCOND_AGE_FROM_EDIT
const MW_SUPPORTS_LOCALISATIONCACHE
const CONTENT_MODEL_WIKITEXT
const MIGRATION_WRITE_NEW
const SCHEMA_COMPAT_READ_OLD
const XML_DUMP_SCHEMA_VERSION_10
const CONTENT_FORMAT_WIKITEXT
const SCHEMA_COMPAT_WRITE_NEW
const SHELL_MAX_ARG_STRLEN
const CONTENT_FORMAT_SERIALIZED
const MIGRATION_WRITE_BOTH
const MW_SUPPORTS_PARSERFIRSTCALLINIT
const CONTENT_MODEL_JAVASCRIPT
this hook is for auditing only or null if authentication failed before getting that far or null if we can t even determine that When $user is not null
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
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
This document provides an overview of the usage of PageUpdater and that is