MediaWiki REL1_31
SqlDataUpdate.php
Go to the documentation of this file.
1<?php
25
29abstract class SqlDataUpdate extends DataUpdate {
31 protected $mDb;
33 protected $mOptions = [];
34
35 public function __construct() {
36 parent::__construct();
37
38 $this->mDb = wfGetLB()->getLazyConnectionRef( DB_MASTER );
39 }
40}
wfGetLB( $wiki=false)
Get a load balancer object.
Abstract base class for update jobs that do something with some secondary data extracted from article...
array $mOptions
SELECT options to be used (array)
IDatabase $mDb
Database connection reference.
Basic database interface for live and lazy-loaded relation database handles.
Definition IDatabase.php:38
const DB_MASTER
Definition defines.php:29