Reduce some duplication, just implement stub in parent
authorChad Horohoe <demon@users.mediawiki.org>
Wed, 1 Sep 2010 18:10:02 +0000 (18:10 +0000)
committerChad Horohoe <demon@users.mediawiki.org>
Wed, 1 Sep 2010 18:10:02 +0000 (18:10 +0000)
includes/installer/DatabaseInstaller.php
includes/installer/OracleInstaller.php
includes/installer/PostgresInstaller.php
includes/installer/SqliteInstaller.php

index d9241e5..986d68f 100644 (file)
@@ -80,7 +80,9 @@ abstract class DatabaseInstaller {
         * If the DB type has no settings beyond those already configured with 
         * getConnectForm(), this should return false.
         */
-       public abstract function getSettingsForm();
+       public function getSettingsForm() {
+               return false;
+       }
 
        /**
         * Set variables based on the request array, assuming it was submitted via
@@ -88,7 +90,9 @@ abstract class DatabaseInstaller {
         * 
         * @return Status
         */
-       public abstract function submitSettingsForm();
+       public function submitSettingsForm() {
+               return Status::newGood();
+       }
 
        /**
         * Connect to the database using the administrative user/password currently
index f6057f5..789ccff 100644 (file)
@@ -88,15 +88,6 @@ class OracleInstaller extends DatabaseInstaller {
                return $status;
        }
 
-
-       public function getSettingsForm() {
-               // TODO
-       }
-       
-       public function submitSettingsForm() {
-               // TODO
-       }
-
        public function getConnection() {
                // TODO
        }
index c5af5bb..8e9fdb4 100644 (file)
@@ -112,14 +112,6 @@ class PostgresInstaller extends DatabaseInstaller {
                return $status;
        }
 
-       function getSettingsForm() {
-               return false;
-       }
-
-       function submitSettingsForm() {
-               return Status::newGood();
-       }
-
        function setupDatabase() {
        }
 
index e4b7526..68fc6e3 100644 (file)
@@ -122,14 +122,6 @@ class SqliteInstaller extends DatabaseInstaller {
                return parent::needsUpgrade();
        }
 
-       public function getSettingsForm() {
-               return false;
-       }
-
-       public function submitSettingsForm() {
-               return Status::newGood();
-       }
-
        public function setupDatabase() {
                $dir = $this->getVar( 'wgSQLiteDataDir' );