*
* @var array
*/
- protected $dbTypes = array(
+ protected static $dbTypes = array(
'mysql',
'postgres',
'sqlite',
/**
* Get a list of known DB types.
*/
- public function getDBTypes() {
- return $this->dbTypes;
+ public static function getDBTypes() {
+ return self::$dbTypes;
}
/**
$goodNames = array();
$allNames = array();
- foreach ( $this->dbTypes as $name ) {
+ foreach ( self::getDBTypes() as $name ) {
$db = $this->getDBInstaller( $name );
$readableName = wfMsg( 'config-type-' . $name );