Merge "Add getters for properties accessed by Flow"
[lhc/web/wiklou.git] / includes / specials / pagers / ContribsPager.php
index ca13f3d..5112ccd 100644 (file)
@@ -37,24 +37,32 @@ class ContribsPager extends RangeChronologicalPager {
 
        /**
         * @var string User name, or a string describing an IP address range
+        * @private
+        * @fixme Make private again after Flow got fixed.
         */
-       private $target;
+       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
+        * @fixme Make private again after Flow got fixed.
         */
-       private $contribs;
+       public $contribs;
 
        /**
         * @var string|int A single namespace number, or an empty string for all namespaces
+        * @private
+        * @fixme Make private again after Flow got fixed.
         */
-       private $namespace = '';
+       public $namespace = '';
 
        /**
         * @var string|false Name of tag to filter, or false to ignore tags
+        * @private
+        * @fixme Make private again after Flow got fixed.
         */
-       private $tagFilter;
+       public $tagFilter;
 
        /**
         * @var bool Set to true to invert the namespace selection
@@ -79,8 +87,10 @@ class ContribsPager extends RangeChronologicalPager {
 
        /**
         * @var bool Set to true to show only new pages
+        * @private
+        * @fixme Make private again after Flow got fixed.
         */
-       private $newOnly;
+       public $newOnly;
 
        /**
         * @var bool Set to true to hide edits marked as minor by the user
@@ -421,6 +431,41 @@ class ContribsPager extends RangeChronologicalPager {
                return 'rev_timestamp';
        }
 
+       /**
+        * @return false|string
+        */
+       public function getTagFilter() {
+               return $this->tagFilter;
+       }
+
+       /**
+        * @return string
+        */
+       public function getContribs() {
+               return $this->contribs;
+       }
+
+       /**
+        * @return string
+        */
+       public function getTarget() {
+               return $this->target;
+       }
+
+       /**
+        * @return bool
+        */
+       public function isNewOnly() {
+               return $this->newOnly;
+       }
+
+       /**
+        * @return int|string
+        */
+       public function getNamespace() {
+               return $this->namespace;
+       }
+
        /**
         * @return string[]
         */