Go to the documentation of this file.
5 use InvalidArgumentException;
36 $this->params =
$conn;
38 throw new InvalidArgumentException(
"Missing lazy connection arguments." );
43 if ( $this->conn ===
null ) {
45 $this->conn = $this->lb->getConnection( $db, $groups, $wiki );
48 return call_user_func_array( [ $this->conn,
$name ], $arguments );
52 return $this->
__call( __FUNCTION__, func_get_args() );
56 return $this->
__call( __FUNCTION__, func_get_args() );
60 return $this->
__call( __FUNCTION__, func_get_args() );
64 return $this->
__call( __FUNCTION__, func_get_args() );
68 return $this->
__call( __FUNCTION__, func_get_args() );
72 return $this->
__call( __FUNCTION__, func_get_args() );
76 return $this->
__call( __FUNCTION__, func_get_args() );
80 return $this->
__call( __FUNCTION__, func_get_args() );
84 return $this->
__call( __FUNCTION__, func_get_args() );
88 return $this->
__call( __FUNCTION__, func_get_args() );
92 return $this->
__call( __FUNCTION__, func_get_args() );
96 return $this->
__call( __FUNCTION__, func_get_args() );
100 return $this->
__call( __FUNCTION__, func_get_args() );
104 return $this->
__call( __FUNCTION__, func_get_args() );
108 return $this->
__call( __FUNCTION__, func_get_args() );
112 return $this->
__call( __FUNCTION__, func_get_args() );
116 return $this->
__call( __FUNCTION__, func_get_args() );
120 return $this->
__call( __FUNCTION__, func_get_args() );
124 return $this->
__call( __FUNCTION__, func_get_args() );
128 return $this->
__call( __FUNCTION__, func_get_args() );
131 public function setFlag( $flag, $remember = self::REMEMBER_NOTHING ) {
132 return $this->
__call( __FUNCTION__, func_get_args() );
135 public function clearFlag( $flag, $remember = self::REMEMBER_NOTHING ) {
136 return $this->
__call( __FUNCTION__, func_get_args() );
140 return $this->
__call( __FUNCTION__, func_get_args() );
144 return $this->
__call( __FUNCTION__, func_get_args() );
148 return $this->
__call( __FUNCTION__, func_get_args() );
152 if ( $this->conn ===
null ) {
158 return $this->
__call( __FUNCTION__, func_get_args() );
166 return $this->
__call( __FUNCTION__, func_get_args() );
169 public function open( $server,
$user, $password, $dbName ) {
170 return $this->
__call( __FUNCTION__, func_get_args() );
174 return $this->
__call( __FUNCTION__, func_get_args() );
178 return $this->
__call( __FUNCTION__, func_get_args() );
182 return $this->
__call( __FUNCTION__, func_get_args() );
186 return $this->
__call( __FUNCTION__, func_get_args() );
190 return $this->
__call( __FUNCTION__, func_get_args() );
194 return $this->
__call( __FUNCTION__, func_get_args() );
198 return $this->
__call( __FUNCTION__, func_get_args() );
202 return $this->
__call( __FUNCTION__, func_get_args() );
206 return $this->
__call( __FUNCTION__, func_get_args() );
210 return $this->
__call( __FUNCTION__, func_get_args() );
214 return $this->
__call( __FUNCTION__, func_get_args() );
218 return $this->
__call( __FUNCTION__, func_get_args() );
222 return $this->
__call( __FUNCTION__, func_get_args() );
226 return $this->
__call( __FUNCTION__, func_get_args() );
230 return $this->
__call( __FUNCTION__, func_get_args() );
233 public function query( $sql,
$fname = __METHOD__, $tempIgnore =
false ) {
234 return $this->
__call( __FUNCTION__, func_get_args() );
238 return $this->
__call( __FUNCTION__, func_get_args() );
242 return $this->
__call( __FUNCTION__, func_get_args() );
248 return $this->
__call( __FUNCTION__, func_get_args() );
254 return $this->
__call( __FUNCTION__, func_get_args() );
261 return $this->
__call( __FUNCTION__, func_get_args() );
268 return $this->
__call( __FUNCTION__, func_get_args() );
275 return $this->
__call( __FUNCTION__, func_get_args() );
281 return $this->
__call( __FUNCTION__, func_get_args() );
287 return $this->
__call( __FUNCTION__, func_get_args() );
291 return $this->
__call( __FUNCTION__, func_get_args() );
295 return $this->
__call( __FUNCTION__, func_get_args() );
299 return $this->
__call( __FUNCTION__, func_get_args() );
303 return $this->
__call( __FUNCTION__, func_get_args() );
307 return $this->
__call( __FUNCTION__, func_get_args() );
311 return $this->
__call( __FUNCTION__, func_get_args() );
315 return $this->
__call( __FUNCTION__, func_get_args() );
319 return $this->
__call( __FUNCTION__, func_get_args() );
323 return $this->
__call( __FUNCTION__, func_get_args() );
327 return $this->
__call( __FUNCTION__, func_get_args() );
330 public function bitAnd( $fieldLeft, $fieldRight ) {
331 return $this->
__call( __FUNCTION__, func_get_args() );
334 public function bitOr( $fieldLeft, $fieldRight ) {
335 return $this->
__call( __FUNCTION__, func_get_args() );
339 return $this->
__call( __FUNCTION__, func_get_args() );
343 $delim, $table, $field, $conds =
'', $join_conds = []
345 return $this->
__call( __FUNCTION__, func_get_args() );
349 return $this->
__call( __FUNCTION__, func_get_args() );
353 return $this->
__call( __FUNCTION__, func_get_args() );
357 return $this->
__call( __FUNCTION__, func_get_args() );
361 return $this->
__call( __FUNCTION__, func_get_args() );
365 return $this->
__call( __FUNCTION__, func_get_args() );
369 return $this->
__call( __FUNCTION__, func_get_args() );
373 return $this->
__call( __FUNCTION__, func_get_args() );
377 return $this->
__call( __FUNCTION__, func_get_args() );
381 return $this->
__call( __FUNCTION__, func_get_args() );
384 public function replace( $table, $uniqueIndexes, $rows,
$fname = __METHOD__ ) {
385 return $this->
__call( __FUNCTION__, func_get_args() );
391 return $this->
__call( __FUNCTION__, func_get_args() );
395 $delTable, $joinTable, $delVar, $joinVar, $conds,
$fname = __METHOD__
397 return $this->
__call( __FUNCTION__, func_get_args() );
400 public function delete( $table, $conds,
$fname = __METHOD__ ) {
401 return $this->
__call( __FUNCTION__, func_get_args() );
405 $destTable, $srcTable, $varMap, $conds,
406 $fname = __METHOD__, $insertOptions = [], $selectOptions = []
408 return $this->
__call( __FUNCTION__, func_get_args() );
412 return $this->
__call( __FUNCTION__, func_get_args() );
416 return $this->
__call( __FUNCTION__, func_get_args() );
420 return $this->
__call( __FUNCTION__, func_get_args() );
424 return $this->
__call( __FUNCTION__, func_get_args() );
428 return $this->
__call( __FUNCTION__, func_get_args() );
432 return $this->
__call( __FUNCTION__, func_get_args() );
436 return $this->
__call( __FUNCTION__, func_get_args() );
440 return $this->
__call( __FUNCTION__, func_get_args() );
444 return $this->
__call( __FUNCTION__, func_get_args() );
448 return $this->
__call( __FUNCTION__, func_get_args() );
452 return $this->
__call( __FUNCTION__, func_get_args() );
456 return $this->
__call( __FUNCTION__, func_get_args() );
460 return $this->
__call( __FUNCTION__, func_get_args() );
464 return $this->
__call( __FUNCTION__, func_get_args() );
468 return $this->
__call( __FUNCTION__, func_get_args() );
472 return $this->
__call( __FUNCTION__, func_get_args() );
476 return $this->
__call( __FUNCTION__, func_get_args() );
480 return $this->
__call( __FUNCTION__, func_get_args() );
484 return $this->
__call( __FUNCTION__, func_get_args() );
488 return $this->
__call( __FUNCTION__, func_get_args() );
491 public function begin(
$fname = __METHOD__, $mode = IDatabase::TRANSACTION_EXPLICIT ) {
492 return $this->
__call( __FUNCTION__, func_get_args() );
496 return $this->
__call( __FUNCTION__, func_get_args() );
500 return $this->
__call( __FUNCTION__, func_get_args() );
504 return $this->
__call( __FUNCTION__, func_get_args() );
508 return $this->
__call( __FUNCTION__, func_get_args() );
512 return $this->
__call( __FUNCTION__, func_get_args() );
516 return $this->
__call( __FUNCTION__, func_get_args() );
519 public function ping( &$rtt =
null ) {
520 return func_num_args()
521 ? $this->
__call( __FUNCTION__, [ &$rtt ] )
522 : $this->
__call( __FUNCTION__, [] );
526 return $this->
__call( __FUNCTION__, func_get_args() );
530 return $this->
__call( __FUNCTION__, func_get_args() );
534 return $this->
__call( __FUNCTION__, func_get_args() );
538 return $this->
__call( __FUNCTION__, func_get_args() );
542 return $this->
__call( __FUNCTION__, func_get_args() );
546 return $this->
__call( __FUNCTION__, func_get_args() );
550 return $this->
__call( __FUNCTION__, func_get_args() );
554 return $this->
__call( __FUNCTION__, func_get_args() );
557 public function lock( $lockName, $method, $timeout = 5 ) {
558 return $this->
__call( __FUNCTION__, func_get_args() );
561 public function unlock( $lockName, $method ) {
562 return $this->
__call( __FUNCTION__, func_get_args() );
566 return $this->
__call( __FUNCTION__, func_get_args() );
570 return $this->
__call( __FUNCTION__, func_get_args() );
574 return $this->
__call( __FUNCTION__, func_get_args() );
578 return $this->
__call( __FUNCTION__, func_get_args() );
582 return $this->
__call( __FUNCTION__, func_get_args() );
586 return $this->
__call( __FUNCTION__, func_get_args() );
590 return $this->
__call( __FUNCTION__, func_get_args() );
594 return $this->
__call( __FUNCTION__, func_get_args() );
602 $this->lb->reuseConnection( $this->conn );
this hook is for auditing only RecentChangesLinked and Watchlist RecentChangesLinked and Watchlist Do not use this to implement individual filters if they are compatible with the ChangesListFilter and ChangesListFilterGroup structure use sub classes of those in conjunction with the ChangesListSpecialPageStructuredFilters hook This hook can be used to implement filters that do not implement that or custom behavior that is not an individual filter e g Watchlist & $tables
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
please add to it if you re going to add events to the MediaWiki code where normally authentication against an external auth plugin would be creating a account $user
if(!defined( 'MEDIAWIKI')) $fname
This file is not a valid entry point, perform no further processing unless MEDIAWIKI is defined.
Allows to change the fields on the form that will be generated $name
do that in ParserLimitReportFormat instead use this to modify the parameters of the image and a DIV can begin in one section and end in another Make sure your code can handle that case gracefully See the EditSectionClearerLink extension for an example zero but section is usually empty its values are the globals values before the output is cached my talk my contributions etc etc otherwise the built in rate limiting checks are if enabled allows for interception of redirect as a string mapping parameter names to values & $type
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
static configuration should be added through ResourceLoaderGetConfigVars instead & $vars
deferred txt A few of the database updates required by various functions here can be deferred until after the result page is displayed to the user For updating the view updating the linked to tables after a etc PHP does not yet have any way to tell the server to actually return and disconnect while still running these but it might have such a feature in the future We handle these by creating a deferred update object and putting those objects on a global list
you have access to all of the normal MediaWiki so you can get a DB use the etc For full docs on the Maintenance class
Class to handle database/prefix specification for IDatabase domains.
this hook is for auditing only RecentChangesLinked and Watchlist RecentChangesLinked and Watchlist Do not use this to implement individual filters if they are compatible with the ChangesListFilter and ChangesListFilterGroup structure use sub classes of those in conjunction with the ChangesListSpecialPageStructuredFilters hook This hook can be used to implement filters that do not implement that or custom behavior that is not an individual filter e g Watchlist and Watchlist you will want to construct new ChangesListBooleanFilter or ChangesListStringOptionsFilter objects When constructing you specify which group they belong to You can reuse existing or create your you must register them with $special registerFilterGroup removed from all revisions and log entries to which it was applied This gives extensions a chance to take it off their books as the deletion has already been partly carried out by this point or something similar the user will be unable to create the tag set and then return false from the hook function Ensure you consume the ChangeTagAfterDelete hook to carry out custom deletion actions as context called by AbstractContent::getParserOutput May be used to override the normal model specific rendering of page content as context as context $options
the array() calling protocol came about after MediaWiki 1.4rc1.