And also remove a couple of unused properties.
Change-Id: I66ed64627dc475dc85da9d858a19317435d05532
/**
* Load basic request parameters for this Special page.
- * @param string $subPage
*/
- private function loadRequestParameters( $subPage ) {
+ private function loadRequestParameters() {
if ( $this->mLoadedRequest ) {
return;
}
$request = $this->getRequest();
$this->mPosted = $request->wasPosted();
- $this->mIsReturn = $subPage === 'return';
$this->mAction = $request->getVal( 'action' );
$this->mFromHTTP = $request->getBool( 'fromhttp', false )
|| $request->getBool( 'wpFromhttp', false );
protected function load( $subPage ) {
global $wgSecureLogin;
- $this->loadRequestParameters( $subPage );
+ $this->loadRequestParameters();
if ( $this->mLoaded ) {
return;
}
protected function beforeExecute( $subPage ) {
// finish initializing the class before processing the request - T135924
- $this->loadRequestParameters( $subPage );
+ $this->loadRequestParameters();
return parent::beforeExecute( $subPage );
}
class SpecialLinkSearch extends QueryPage {
/** @var array|bool */
private $mungedQuery = false;
+ /** @var string|null */
+ private $mQuery;
+ /** @var int|null */
+ private $mNs;
+ /** @var string|null */
+ private $mProt;
function setParams( $params ) {
$this->mQuery = $params['query'];
* @ingroup SpecialPage
*/
class SpecialUndelete extends SpecialPage {
- private $mAction;
- private $mTarget;
- private $mTimestamp;
- private $mRestore;
- private $mRevdel;
- private $mInvert;
- private $mFilename;
- private $mTargetTimestamp;
- private $mAllowed;
- private $mCanView;
- private $mComment;
- private $mToken;
+ private $mAction;
+ private $mTarget;
+ private $mTimestamp;
+ private $mRestore;
+ private $mRevdel;
+ private $mInvert;
+ private $mFilename;
+ private $mTargetTimestamp;
+ private $mAllowed;
+ private $mCanView;
+ private $mComment;
+ private $mToken;
+ /** @var bool|null */
+ private $mPreview;
+ /** @var bool|null */
+ private $mDiff;
+ /** @var bool|null */
+ private $mDiffOnly;
+ /** @var bool|null */
+ private $mUnsuppress;
+ /** @var int[]|null */
+ private $mFileVersions;
/** @var Title */
private $mTargetObj;
*/
private $blockStatusByUid;
+ /** @var int */
+ private $RCMaxAge;
+
+ /** @var string[] */
+ private $excludegroups;
+
/**
* @param IContextSource|null $context
* @param FormOptions $opts
*/
protected $prefix;
+ /**
+ * @var string
+ */
+ protected $suffix;
+
/**
* @var Language
*/
/** @var array */
public $mConds;
+ /** @var int */
+ private $articleID;
+
+ /** @var int */
+ private $maxTimestamp;
+
public function __construct( SpecialMergeHistory $form, $conds, Title $source, Title $dest ) {
$this->mForm = $form;
$this->mConds = $conds;
- $this->title = $source;
$this->articleID = $source->getArticleID();
$dbr = wfGetDB( DB_REPLICA );
*/
public $mConds;
+ /** @var string|null */
+ private $level;
+
+ /** @var int|null */
+ private $namespace;
+
/**
* @param SpecialProtectedtitles $form
* @param array $conds
$this->mConds = $conds;
$this->level = $level;
$this->namespace = $namespace;
- $this->size = intval( $size );
parent::__construct( $form->getContext() );
}
$conds['pt_create_perm'] = $this->level;
}
- if ( !is_null( $this->namespace ) ) {
+ if ( $this->namespace !== null ) {
$conds[] = 'pt_namespace=' . $this->mDb->addQuotes( $this->namespace );
}
*/
protected $userGroupCache;
+ /** @var string */
+ protected $requestedGroup;
+
+ /** @var bool */
+ protected $editsOnly;
+
+ /** @var bool */
+ protected $temporaryGroupsOnly;
+
+ /** @var bool */
+ protected $creationSort;
+
+ /** @var bool|null */
+ protected $including;
+
+ /** @var string */
+ protected $requestedUser;
+
/**
* @param IContextSource|null $context
* @param array|null $par (Default null)