MediaWiki  1.23.1
SearchDatabase.php
Go to the documentation of this file.
1 <?php
33  protected $db;
34 
39  public function __construct( DatabaseBase $db = null ) {
40  if ( $db ) {
41  $this->db = $db;
42  } else {
43  $this->db = wfGetDB( DB_SLAVE );
44  }
45  }
46 }
php
skin txt MediaWiki includes four core it has been set as the default in MediaWiki since the replacing Monobook it had been been the default skin since before being replaced by Vector largely rewritten in while keeping its appearance Several legacy skins were removed in the as the burden of supporting them became too heavy to bear Those in etc for skin dependent CSS etc for skin dependent JavaScript These can also be customised on a per user by etc This feature has led to a wide variety of user styles becoming that gallery is a good place to ending in php
Definition: skin.txt:62
wfGetDB
& wfGetDB( $db, $groups=array(), $wiki=false)
Get a Database object.
Definition: GlobalFunctions.php:3650
SearchDatabase
Base search engine base class for database-backed searches.
Definition: SearchDatabase.php:29
SearchDatabase\$db
DatabaseBase $db
Slave database for reading from for results.
Definition: SearchDatabase.php:32
DatabaseBase
Database abstraction object.
Definition: Database.php:219
SearchEngine
Contain a class for special pages.
Definition: SearchEngine.php:32
DB_SLAVE
const DB_SLAVE
Definition: Defines.php:55
SearchDatabase\__construct
__construct(DatabaseBase $db=null)
Constructor.
Definition: SearchDatabase.php:38