MediaWiki  1.23.12
overrides.php
Go to the documentation of this file.
1 <?php
27 /*
28 
29 Example of modifications:
30 
31  public static function getLocalSettingsGenerator( Installer $installer ) {
32  return new MyLocalSettingsGenerator( $installer );
33  }
34 
35 Then add the following to the bottom of this file:
36 
37 class MyLocalSettingsGenerator extends LocalSettingsGenerator {
38  function getText() {
39  // Modify an existing setting
40  $this->values['wgResourceLoaderMaxQueryLength'] = 512;
41  // add a new setting
42  $ls = parent::getText();
43  return $ls . "\n\$wgUseTex = true;\n";
44  }
45 }
46 */
47 
57  public static function getLocalSettingsGenerator( Installer $installer ) {
58  return new LocalSettingsGenerator( $installer );
59  }
60 
66  public static function getWebInstaller( WebRequest $request ) {
67  return new WebInstaller( $request );
68  }
69 
77  public static function getCliInstaller( $siteName, $admin = null, array $options = array() ) {
78  return new CliInstaller( $siteName, $admin, $options );
79  }
80 }
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
WebInstaller
Class for the core installer web interface.
Definition: WebInstaller.php:30
InstallerOverrides
Definition: overrides.php:51
InstallerOverrides\getCliInstaller
static getCliInstaller( $siteName, $admin=null, array $options=array())
Instantiates and returns an instance of CliInstaller or its descendant classes.
Definition: overrides.php:77
array
the array() calling protocol came about after MediaWiki 1.4rc1.
List of Api Query prop modules.
InstallerOverrides\getLocalSettingsGenerator
static getLocalSettingsGenerator(Installer $installer)
Instantiates and returns an instance of LocalSettingsGenerator or its descendant classes.
Definition: overrides.php:57
$options
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
Definition: hooks.txt:1530
InstallerOverrides\getWebInstaller
static getWebInstaller(WebRequest $request)
Instantiates and returns an instance of WebInstaller or its descendant classes.
Definition: overrides.php:66
LocalSettingsGenerator
Class for generating LocalSettings.php file.
Definition: LocalSettingsGenerator.php:30
WebRequest
The WebRequest class encapsulates getting at data passed in the URL or via a POSTed form,...
Definition: WebRequest.php:38
Installer
Base installer class.
Definition: Installer.php:39