Doc and style improvements
authorJeroen De Dauw <jeroendedauw@users.mediawiki.org>
Tue, 20 Jul 2010 11:35:38 +0000 (11:35 +0000)
committerJeroen De Dauw <jeroendedauw@users.mediawiki.org>
Tue, 20 Jul 2010 11:35:38 +0000 (11:35 +0000)
includes/installer/Update.php
includes/installer/Updaters.php

index ebe9830..9e1f1a4 100644 (file)
@@ -1,16 +1,21 @@
 <?php
+
 /*
  * Class for handling database updates. Roughly based off of updaters.inc, with
  * a few improvements :)
  */
-
 class Update {
 
-       // Array of updates to perform on the database
+       /**
+        * Array of updates to perform on the database
+        * 
+        * @var array
+        */
        protected $updates = array();
 
-       // Things we'll need
-       protected $db, $updater;
+       protected $db;
+       
+       protected $updater;
 
        public function __construct( $db ) {
                $this->db = $db;
@@ -144,4 +149,5 @@ class Update {
                        );
                }
        }
-}
+       
+}
\ No newline at end of file
index 8db3ddd..c21dc67 100644 (file)
@@ -1,9 +1,11 @@
 <?php
+
 /**
  * All DBs supported by MediaWiki need to implement this. Base interface for
  * Updaters, which is replacing updaters.inc
  */
 interface Updaters {
+       
        /**
         * Get an array of updates to perform on the database. Should return a
         * mutli-dimensional array. The main key is the MediaWiki version (1.12,
@@ -13,10 +15,11 @@ interface Updaters {
         * @return Array
         */
        public function getUpdates();
+       
 }
 
 /**
- * Mysql implementation
+ * Mysql implementation.
  */
 class MysqlUpdater implements Updaters {
 
@@ -171,12 +174,14 @@ class MysqlUpdater implements Updaters {
                        ),
                );
        }
+       
 }
 
 /**
- * Sqlite
+ * Sqlite implementation.
  */
 class SqliteUpdater implements Updaters {
+       
        public function getUpdates() {
                return array(
                        '1.14' => array(
@@ -211,13 +216,16 @@ class SqliteUpdater implements Updaters {
                        ),
                );
        }
+       
 }
 
 /**
- * Oracle
+ * Oracle implementation.
  */
 class OracleUpdater implements Updaters {
+       
        public function getUpdates() {
                return array();
        }
-}
+       
+}
\ No newline at end of file