Few bits of documentation
authorSam Reed <reedy@users.mediawiki.org>
Tue, 22 Nov 2011 16:31:33 +0000 (16:31 +0000)
committerSam Reed <reedy@users.mediawiki.org>
Tue, 22 Nov 2011 16:31:33 +0000 (16:31 +0000)
includes/installer/Installer.php
includes/installer/WebInstaller.php

index d8afba1..35d4ddf 100644 (file)
@@ -296,11 +296,13 @@ abstract class Installer {
         * The parameters are like parameters to wfMsg().
         * The messages will be in wikitext format, which will be converted to an
         * output format such as HTML or text before being sent to the user.
+        * @param $msg
         */
        public abstract function showMessage( $msg /*, ... */ );
 
        /**
         * Same as showMessage(), but for displaying errors
+        * @param $msg
         */
        public abstract function showError( $msg /*, ... */ );
 
@@ -621,6 +623,7 @@ abstract class Installer {
 
        /**
         * Environment check for DB types.
+        * @return bool
         */
        protected function envCheckDB() {
                global $wgLang;
@@ -865,6 +868,7 @@ abstract class Installer {
 
        /**
         * Environment check for setting $IP and $wgScriptPath.
+        * @return bool
         */
        protected function envCheckPath() {
                global $IP;
@@ -890,6 +894,7 @@ abstract class Installer {
 
        /**
         * TODO: document
+        * @return bool
         */
        protected function envCheckShellLocale() {
                $os = php_uname( 's' );
@@ -1475,6 +1480,9 @@ abstract class Installer {
                return $status;
        }
 
+       /**
+        * @param $s Status
+        */
        private function subscribeToMediaWikiAnnounce( Status $s ) {
                $params = array(
                        'email'    => $this->getVar( '_AdminEmail' ),
index 21d2340..c708a0d 100644 (file)
@@ -1068,6 +1068,9 @@ WebInstaller extends Installer {
                return Html::rawElement( 'div', array( 'class' => 'config-download-link' ), $anchor );
        }
 
+       /**
+        * @return bool
+        */
        public function envCheckPath( ) {
                // PHP_SELF isn't available sometimes, such as when PHP is CGI but
                // cgi.fix_pathinfo is disabled. In that case, fall back to SCRIPT_NAME
@@ -1085,9 +1088,6 @@ WebInstaller extends Installer {
                        $this->showError( 'config-no-uri' );
                        return false;
                }
-
-
                return parent::envCheckPath();
        }
-
 }