Add missing, dynamically declared properties in ContribsPager
authorThiemo Kreuz <thiemo.kreuz@wikimedia.de>
Thu, 20 Dec 2018 16:51:42 +0000 (17:51 +0100)
committerUmherirrender <umherirrender_de.wp@web.de>
Fri, 21 Dec 2018 19:12:06 +0000 (19:12 +0000)
These are all set in the constructor, and don't need a default because
of this.

I'm also adding documentation for the class properties in this class as
good as I can (type, possible values, meaning, and behavior).

Change-Id: Ic2367ca7e8d8b2b7ae4f80ad04081a0db2821de5

includes/specials/pagers/ContribsPager.php

index 2bfc923..c87caec 100644 (file)
@@ -31,9 +31,64 @@ use Wikimedia\Rdbms\IDatabase;
 class ContribsPager extends RangeChronologicalPager {
 
        public $mDefaultDirection = IndexPager::DIR_DESCENDING;
+
+       /**
+        * @var string[] Local cache for escaped messages
+        */
        public $messages;
+
+       /**
+        * @var string User name, or a string describing an IP address range
+        */
        public $target;
+
+       /**
+        * @var string Set to "newbie" to list contributions from the most recent 1% registered users.
+        *  $this->target is ignored then. Defaults to "users".
+        */
+       private $contribs;
+
+       /**
+        * @var string|int A single namespace number, or an empty string for all namespaces
+        */
        public $namespace = '';
+
+       /**
+        * @var string|false Name of tag to filter, or false to ignore tags
+        */
+       private $tagFilter;
+
+       /**
+        * @var bool Set to true to invert the namespace selection
+        */
+       private $nsInvert;
+
+       /**
+        * @var bool Set to true to show both the subject and talk namespace, no matter which got
+        *  selected
+        */
+       private $associated;
+
+       /**
+        * @var bool Set to true to show only deleted revisions
+        */
+       private $deletedOnly;
+
+       /**
+        * @var bool Set to true to show only latest (a.k.a. current) revisions
+        */
+       private $topOnly;
+
+       /**
+        * @var bool Set to true to show only new pages
+        */
+       private $newOnly;
+
+       /**
+        * @var bool Set to true to hide edits marked as minor by the user
+        */
+       private $hideMinor;
+
        public $mDb;
        public $preventClickjacking = false;