More parameter documentation!!
authorSam Reed <reedy@users.mediawiki.org>
Sat, 28 May 2011 14:52:55 +0000 (14:52 +0000)
committerSam Reed <reedy@users.mediawiki.org>
Sat, 28 May 2011 14:52:55 +0000 (14:52 +0000)
includes/EditPage.php
includes/Linker.php
includes/User.php
includes/db/Database.php
includes/db/DatabasePostgres.php
includes/filerepo/OldLocalFile.php
includes/installer/Installer.php
includes/installer/WebInstaller.php
includes/installer/WebInstallerPage.php
includes/specials/SpecialUndelete.php

index f69df43..5a81f9b 100644 (file)
@@ -1111,7 +1111,7 @@ class EditPage {
                                $hasmatch = preg_match( "/^ *([=]{1,6})(.*?)(\\1) *\\n/i", $this->textbox1, $matches );
                                # we can't deal with anchors, includes, html etc in the header for now,
                                # headline would need to be parsed to improve this
-                               if ( $hasmatch and strlen( $matches[2] ) > 0 ) {
+                               if ( $hasmatch && strlen( $matches[2] ) > 0 ) {
                                        $sectionanchor = $wgParser->guessLegacySectionNameFromWikiText( $matches[2] );
                                }
                        }
index 7d30406..092fff6 100644 (file)
@@ -1067,6 +1067,9 @@ class Linker {
                return $comment;
        }
 
+       /**
+        * @var Title
+        */
        static $autocommentTitle;
        static $autocommentLocal;
 
index 20946f5..5637a06 100644 (file)
@@ -1066,7 +1066,9 @@ class User {
        }
 
        /**
-        * Load the data for this user object from another user object. 
+        * Load the data for this user object from another user object.
+        *
+        * @param $user User
         */
        protected function loadFromUserObject( $user ) {
                $user->load();
index c181a11..b26970e 100644 (file)
@@ -662,7 +662,7 @@ abstract class DatabaseBase implements DatabaseType {
         *     comment (you can use __METHOD__ or add some extra info)
         * @param  $tempIgnore Boolean:   Whether to avoid throwing an exception on errors...
         *     maybe best to catch the exception instead?
-        * @return boolean or ResultWrapper. true for a successful write query, ResultWrapper object for a successful read query,
+        * @return boolean|ResultWrapper. true for a successful write query, ResultWrapper object for a successful read query,
         *     or false on failure if $tempIgnore set
         * @throws DBQueryError Thrown when the database returns an error of any kind
         */
index ce2fba8..94c0b80 100644 (file)
@@ -929,6 +929,10 @@ SQL;
                return $sql;
        }
 
+       /**
+        * @param $b
+        * @return Blob
+        */
        function encodeBlob( $b ) {
                return new Blob( pg_escape_bytea( $this->mConn, $b ) );
        }
@@ -944,6 +948,10 @@ SQL;
                return pg_escape_string( $this->mConn, $s );
        }
 
+       /**
+        * @param $s null|bool|Blob
+        * @return int|string
+        */
        function addQuotes( $s ) {
                if ( is_null( $s ) ) {
                        return 'NULL';
index d921a6b..ba07e4f 100644 (file)
@@ -218,6 +218,8 @@ class OldLocalFile extends LocalFile {
         * @param $srcPath string File system path of the source file
         * @param $archiveName string Full archive name of the file, in the form 
         *      $timestamp!$filename, where $filename must match $this->getName()
+        *
+        * @return FileRepoStatus
         */
        function uploadOld( $srcPath, $archiveName, $timestamp, $comment, $user, $flags = 0 ) {
                $this->lock();
index f0ea4f6..25449ce 100644 (file)
@@ -1173,6 +1173,8 @@ abstract class Installer {
 
        /**
         * ParserOptions are constructed before we determined the language, so fix it
+        *
+        * @param $lang Language
         */
        public function setParserLanguage( $lang ) {
                $this->parserOptions->setTargetLanguage( $lang );
index 2274c9d..ebea68b 100644 (file)
@@ -953,6 +953,8 @@ class WebInstaller extends Installer {
 
        /**
         * Output an error or warning box using a Status object.
+        *
+        * @param $status Status
         */
        public function showStatusBox( $status ) {
                if( !$status->isGood() ) {
index d450d92..ac11459 100644 (file)
@@ -924,6 +924,9 @@ class WebInstaller_Options extends WebInstallerPage {
                $this->endForm();
        }
 
+       /**
+        * @return string
+        */
        public function getCCPartnerUrl() {
                global $wgServer;
                $exitUrl = $wgServer . $this->parent->getUrl( array(
@@ -1112,6 +1115,10 @@ class WebInstaller_Install extends WebInstallerPage {
                }
        }
 
+       /**
+        * @param $step
+        * @param $status Status
+        */
        public function endStage( $step, $status ) {
                if ( $step == 'extension-tables' ) {
                        $this->endLiveBox();
index a4d9b99..b9dc747 100644 (file)
@@ -570,9 +570,14 @@ class PageArchive {
  * @ingroup SpecialPage
  */
 class SpecialUndelete extends SpecialPage {
-       var $mAction, $mTarget, $mTimestamp, $mRestore, $mInvert, $mTargetObj, $mFile;
+       var $mAction, $mTarget, $mTimestamp, $mRestore, $mInvert, $mFile;
        var $mTargetTimestamp, $mAllowed, $mCanView, $mComment, $mToken, $mRequest;
 
+       /**
+        * @var Title
+        */
+       var $mTargetObj;
+
        function __construct( $request = null ) {
                parent::__construct( 'Undelete', 'deletedhistory' );
 
@@ -734,7 +739,12 @@ class SpecialUndelete extends SpecialPage {
                );
        }
 
-       // Generic list of deleted pages
+       /**
+        * Generic list of deleted pages
+        *
+        * @param $result ResultWrapper
+        * @return bool
+        */
        private function showList( $result ) {
                global $wgLang, $wgUser, $wgOut;