MediaWiki  REL1_31
defines.php
Go to the documentation of this file.
1 <?php
2 
5 
9 define( 'DBO_DEBUG', IDatabase::DBO_DEBUG );
10 define( 'DBO_NOBUFFER', IDatabase::DBO_NOBUFFER );
11 define( 'DBO_IGNORE', IDatabase::DBO_IGNORE );
12 define( 'DBO_TRX', IDatabase::DBO_TRX );
13 define( 'DBO_DEFAULT', IDatabase::DBO_DEFAULT );
14 define( 'DBO_PERSISTENT', IDatabase::DBO_PERSISTENT );
15 define( 'DBO_SYSDBA', IDatabase::DBO_SYSDBA );
16 define( 'DBO_DDLMODE', IDatabase::DBO_DDLMODE );
17 define( 'DBO_SSL', IDatabase::DBO_SSL );
18 define( 'DBO_COMPRESS', IDatabase::DBO_COMPRESS );
25 define( 'DB_REPLICA', ILoadBalancer::DB_REPLICA );
27 define( 'DB_PRIMARY', ILoadBalancer::DB_PRIMARY );
29 define( 'DB_MASTER', ILoadBalancer::DB_MASTER );
DBO_PERSISTENT
const DBO_PERSISTENT
Definition: defines.php:14
use
Apache License January AND DISTRIBUTION Definitions License shall mean the terms and conditions for use
Definition: APACHE-LICENSE-2.0.txt:10
DBO_DEBUG
const DBO_DEBUG
Definition: defines.php:9
DBO_SSL
const DBO_SSL
Definition: defines.php:17
DBO_IGNORE
const DBO_IGNORE
Definition: defines.php:11
DBO_TRX
const DBO_TRX
Definition: defines.php:12
php
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
Definition: injection.txt:37
Wikimedia\Rdbms\IDatabase
Basic database interface for live and lazy-loaded relation database handles.
Definition: IDatabase.php:38
DBO_NOBUFFER
const DBO_NOBUFFER
Definition: defines.php:10
DB_REPLICA
const DB_REPLICA
Definition: defines.php:25
DB_MASTER
const DB_MASTER
Definition: defines.php:29
DBO_COMPRESS
const DBO_COMPRESS
Definition: defines.php:18
DBO_DDLMODE
const DBO_DDLMODE
Definition: defines.php:16
DB_PRIMARY
const DB_PRIMARY
Definition: defines.php:27
DBO_SYSDBA
const DBO_SYSDBA
Definition: defines.php:15
DBO_DEFAULT
const DBO_DEFAULT
Definition: defines.php:13
Wikimedia\Rdbms\ILoadBalancer
Database cluster connection, tracking, load balancing, and transaction manager interface.
Definition: ILoadBalancer.php:78