Documentation and explicit variable definitions
authorSam Reed <reedy@users.mediawiki.org>
Mon, 7 Mar 2011 14:45:11 +0000 (14:45 +0000)
committerSam Reed <reedy@users.mediawiki.org>
Mon, 7 Mar 2011 14:45:11 +0000 (14:45 +0000)
Followup r80069, swap private to protected

includes/HTMLCacheUpdate.php
includes/HTMLFileCache.php
includes/User.php
includes/api/ApiQueryAllimages.php
includes/specials/SpecialUserlogin.php

index 594b85c..d571d94 100644 (file)
  */
 class HTMLCacheUpdate
 {
-       public $mTitle, $mTable, $mPrefix, $mStart, $mEnd;
+       /**
+        * @var Title
+        */
+       public $mTitle;
+
+       public $mTable, $mPrefix, $mStart, $mEnd;
        public $mRowsPerJob, $mRowsPerQuery;
 
        function __construct( $titleTo, $table, $start = false, $end = false ) {
index 26cb147..20224b0 100644 (file)
  * @ingroup Cache
  */
 class HTMLFileCache {
-       var $mTitle, $mFileCache, $mType;
+
+       /**
+        * @var Title
+        */
+       var $mTitle;
+       var $mFileCache, $mType;
 
        public function __construct( &$title, $type = 'view' ) {
                $this->mTitle = $title;
index 4ddc841..892de83 100644 (file)
@@ -173,10 +173,20 @@ class User {
        /**
         * Lazy-initialized variables, invalidated with clearInstanceCache
         */
-       var $mNewtalk, $mDatePreference, $mBlockedby, $mHash, $mSkin, $mRights,
-               $mBlockreason, $mBlock, $mEffectiveGroups, $mBlockedGlobally,
+       var $mNewtalk, $mDatePreference, $mBlockedby, $mHash, $mRights,
+               $mBlockreason, $mEffectiveGroups, $mBlockedGlobally,
                $mLocked, $mHideName, $mOptions;
 
+       /**
+        * @var Skin
+        */
+       var $mSkin;
+
+       /**
+        * @var Block
+        */
+       var $mBlock;
+
        static $idCacheByName = array();
 
        /**
@@ -3774,8 +3784,4 @@ class User {
 
                return $ret;
        }
-
-
-
-
 }
index e68bc91..89cc9db 100644 (file)
@@ -38,7 +38,7 @@ if ( !defined( 'MEDIAWIKI' ) ) {
  */
 class ApiQueryAllimages extends ApiQueryGeneratorBase {
 
-       private $mRepo;
+       protected $mRepo;
 
        public function __construct( $query, $moduleName ) {
                parent::__construct( $query, $moduleName, 'ai' );
index a82e25d..461817a 100644 (file)
@@ -47,10 +47,17 @@ class LoginForm extends SpecialPage {
        var $mAction, $mCreateaccount, $mCreateaccountMail, $mMailmypassword;
        var $mLoginattempt, $mRemember, $mEmail, $mDomain, $mLanguage;
        var $mSkipCookieCheck, $mReturnToQuery, $mToken, $mStickHTTPS;
+       var $mType, $mReason, $mRealName;
        var $mAbortLoginErrorMsg = 'login-abort-generic';
 
+       /**
+        * @var ExternalUser
+        */
        private $mExtUser = null;
 
+       /**
+        * @param WebRequest $request
+        */
        public function __construct( $request = null ) {
                parent::__construct( 'Userlogin' );
 
@@ -261,7 +268,8 @@ class LoginForm extends SpecialPage {
                // create a local account and login as any domain user). We only need
                // to check this for domains that aren't local.
                if( 'local' != $this->mDomain && $this->mDomain != '' ) {
-                       if( !$wgAuth->canCreateAccounts() && ( !$wgAuth->userExists( $this->mUsername ) || !$wgAuth->authenticate( $this->mUsername, $this->mPassword ) ) ) {
+                       if( !$wgAuth->canCreateAccounts() && ( !$wgAuth->userExists( $this->mUsername )
+                               || !$wgAuth->authenticate( $this->mUsername, $this->mPassword ) ) ) {
                                $this->mainLoginForm( wfMsg( 'wrongpassword' ) );
                                return false;
                        }