Add protected getCurrentRow to TablePager
authoraddshore <addshorewiki@gmail.com>
Sat, 29 Aug 2015 12:08:44 +0000 (14:08 +0200)
committerReedy <reedy@wikimedia.org>
Sat, 29 Aug 2015 12:13:47 +0000 (12:13 +0000)
This makes unit testing TablePagers easier

Change-Id: I899ec6b056fb1f007a6caf0be320324cffe08326

includes/pager/TablePager.php

index 8095539..ea619f1 100644 (file)
@@ -233,6 +233,13 @@ abstract class TablePager extends IndexPager {
                }
        }
 
+       /**
+        * @return stdClass
+        */
+       protected function getCurrentRow() {
+               return $this->mCurrentRow;
+       }
+
        /**
         * Get any extra attributes to be applied to the given cell. Don't
         * take this as an excuse to hardcode styles; use classes and