Go to the documentation of this file.
5 use InvalidArgumentException;
37 $this->params =
$conn;
39 throw new InvalidArgumentException(
"Missing lazy connection arguments." );
44 if ( $this->conn ===
null ) {
46 $this->conn = $this->lb->getConnection( $db, $groups, $wiki,
$flags );
49 return call_user_func_array( [ $this->conn,
$name ], $arguments );
53 return $this->
__call( __FUNCTION__, func_get_args() );
57 return $this->
__call( __FUNCTION__, func_get_args() );
61 return $this->
__call( __FUNCTION__, func_get_args() );
65 return $this->
__call( __FUNCTION__, func_get_args() );
69 return $this->
__call( __FUNCTION__, func_get_args() );
73 return $this->
__call( __FUNCTION__, func_get_args() );
77 return $this->
__call( __FUNCTION__, func_get_args() );
81 return $this->
__call( __FUNCTION__, func_get_args() );
85 return $this->
__call( __FUNCTION__, func_get_args() );
89 return $this->
__call( __FUNCTION__, func_get_args() );
93 return $this->
__call( __FUNCTION__, func_get_args() );
97 return $this->
__call( __FUNCTION__, func_get_args() );
101 return $this->
__call( __FUNCTION__, func_get_args() );
105 return $this->
__call( __FUNCTION__, func_get_args() );
109 return $this->
__call( __FUNCTION__, func_get_args() );
113 return $this->
__call( __FUNCTION__, func_get_args() );
117 return $this->
__call( __FUNCTION__, func_get_args() );
121 return $this->
__call( __FUNCTION__, func_get_args() );
125 return $this->
__call( __FUNCTION__, func_get_args() );
129 return $this->
__call( __FUNCTION__, func_get_args() );
133 return $this->
__call( __FUNCTION__, func_get_args() );
136 public function setFlag( $flag, $remember = self::REMEMBER_NOTHING ) {
137 return $this->
__call( __FUNCTION__, func_get_args() );
140 public function clearFlag( $flag, $remember = self::REMEMBER_NOTHING ) {
141 return $this->
__call( __FUNCTION__, func_get_args() );
145 return $this->
__call( __FUNCTION__, func_get_args() );
149 return $this->
__call( __FUNCTION__, func_get_args() );
153 return $this->
__call( __FUNCTION__, func_get_args() );
157 if ( $this->conn ===
null ) {
163 return $this->
__call( __FUNCTION__, func_get_args() );
171 return $this->
__call( __FUNCTION__, func_get_args() );
174 public function open( $server,
$user, $password, $dbName ) {
175 return $this->
__call( __FUNCTION__, func_get_args() );
179 return $this->
__call( __FUNCTION__, func_get_args() );
183 return $this->
__call( __FUNCTION__, func_get_args() );
187 return $this->
__call( __FUNCTION__, func_get_args() );
191 return $this->
__call( __FUNCTION__, func_get_args() );
195 return $this->
__call( __FUNCTION__, func_get_args() );
199 return $this->
__call( __FUNCTION__, func_get_args() );
203 return $this->
__call( __FUNCTION__, func_get_args() );
207 return $this->
__call( __FUNCTION__, func_get_args() );
211 return $this->
__call( __FUNCTION__, func_get_args() );
215 return $this->
__call( __FUNCTION__, func_get_args() );
219 return $this->
__call( __FUNCTION__, func_get_args() );
223 return $this->
__call( __FUNCTION__, func_get_args() );
227 return $this->
__call( __FUNCTION__, func_get_args() );
231 return $this->
__call( __FUNCTION__, func_get_args() );
235 return $this->
__call( __FUNCTION__, func_get_args() );
238 public function query( $sql,
$fname = __METHOD__, $tempIgnore =
false ) {
239 return $this->
__call( __FUNCTION__, func_get_args() );
243 return $this->
__call( __FUNCTION__, func_get_args() );
247 return $this->
__call( __FUNCTION__, func_get_args() );
251 $table, $var, $cond =
'',
$fname = __METHOD__,
$options = [], $join_conds = []
253 return $this->
__call( __FUNCTION__, func_get_args() );
257 $table, $var, $cond =
'',
$fname = __METHOD__,
$options = [], $join_conds = []
259 return $this->
__call( __FUNCTION__, func_get_args() );
266 return $this->
__call( __FUNCTION__, func_get_args() );
273 return $this->
__call( __FUNCTION__, func_get_args() );
280 return $this->
__call( __FUNCTION__, func_get_args() );
286 return $this->
__call( __FUNCTION__, func_get_args() );
292 return $this->
__call( __FUNCTION__, func_get_args() );
296 return $this->
__call( __FUNCTION__, func_get_args() );
300 return $this->
__call( __FUNCTION__, func_get_args() );
304 return $this->
__call( __FUNCTION__, func_get_args() );
308 return $this->
__call( __FUNCTION__, func_get_args() );
312 return $this->
__call( __FUNCTION__, func_get_args() );
316 return $this->
__call( __FUNCTION__, func_get_args() );
320 return $this->
__call( __FUNCTION__, func_get_args() );
324 return $this->
__call( __FUNCTION__, func_get_args() );
328 return $this->
__call( __FUNCTION__, func_get_args() );
332 return $this->
__call( __FUNCTION__, func_get_args() );
335 public function bitAnd( $fieldLeft, $fieldRight ) {
336 return $this->
__call( __FUNCTION__, func_get_args() );
339 public function bitOr( $fieldLeft, $fieldRight ) {
340 return $this->
__call( __FUNCTION__, func_get_args() );
344 return $this->
__call( __FUNCTION__, func_get_args() );
348 $delim, $table, $field, $conds =
'', $join_conds = []
350 return $this->
__call( __FUNCTION__, func_get_args() );
354 return $this->
__call( __FUNCTION__, func_get_args() );
358 return $this->
__call( __FUNCTION__, func_get_args() );
362 return $this->
__call( __FUNCTION__, func_get_args() );
366 return $this->
__call( __FUNCTION__, func_get_args() );
370 return $this->
__call( __FUNCTION__, func_get_args() );
374 return $this->
__call( __FUNCTION__, func_get_args() );
378 return $this->
__call( __FUNCTION__, func_get_args() );
382 return $this->
__call( __FUNCTION__, func_get_args() );
386 return $this->
__call( __FUNCTION__, func_get_args() );
390 return $this->
__call( __FUNCTION__, func_get_args() );
394 return $this->
__call( __FUNCTION__, func_get_args() );
400 return $this->
__call( __FUNCTION__, func_get_args() );
404 $delTable, $joinTable, $delVar, $joinVar, $conds,
$fname = __METHOD__
406 return $this->
__call( __FUNCTION__, func_get_args() );
409 public function delete( $table, $conds,
$fname = __METHOD__ ) {
410 return $this->
__call( __FUNCTION__, func_get_args() );
414 $destTable, $srcTable, $varMap, $conds,
415 $fname = __METHOD__, $insertOptions = [], $selectOptions = [], $selectJoinConds = []
417 return $this->
__call( __FUNCTION__, func_get_args() );
421 return $this->
__call( __FUNCTION__, func_get_args() );
425 return $this->
__call( __FUNCTION__, func_get_args() );
429 $table,
$vars,
array $permute_conds, $extra_conds =
'',
$fname = __METHOD__,
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() );
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() );
507 public function begin(
$fname = __METHOD__, $mode = IDatabase::TRANSACTION_EXPLICIT ) {
508 return $this->
__call( __FUNCTION__, func_get_args() );
512 return $this->
__call( __FUNCTION__, func_get_args() );
516 return $this->
__call( __FUNCTION__, func_get_args() );
520 return $this->
__call( __FUNCTION__, func_get_args() );
524 return $this->
__call( __FUNCTION__, func_get_args() );
528 return $this->
__call( __FUNCTION__, func_get_args() );
532 return $this->
__call( __FUNCTION__, func_get_args() );
535 public function ping( &$rtt =
null ) {
536 return func_num_args()
537 ? $this->
__call( __FUNCTION__, [ &$rtt ] )
538 : $this->
__call( __FUNCTION__, [] );
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() );
558 return $this->
__call( __FUNCTION__, func_get_args() );
562 return $this->
__call( __FUNCTION__, func_get_args() );
566 return $this->
__call( __FUNCTION__, func_get_args() );
570 return $this->
__call( __FUNCTION__, func_get_args() );
573 public function lock( $lockName, $method, $timeout = 5 ) {
574 return $this->
__call( __FUNCTION__, func_get_args() );
577 public function unlock( $lockName, $method ) {
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() );
598 return $this->
__call( __FUNCTION__, func_get_args() );
602 return $this->
__call( __FUNCTION__, func_get_args() );
606 return $this->
__call( __FUNCTION__, func_get_args() );
610 return $this->
__call( __FUNCTION__, func_get_args() );
618 $this->lb->reuseConnection( $this->conn );
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
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
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
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
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 also a ContextSource after deleting those rows but within the same transaction $rows
null means default in associative array with keys and values unescaped Should be merged with default with a value of false meaning to suppress the attribute in associative array with keys and values unescaped & $options
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.
it s the revision text itself In either if gzip is the revision text is gzipped $flags
the array() calling protocol came about after MediaWiki 1.4rc1.