From 72bd5c9e56bf453f39ca6f0fee5d1db47d6042e7 Mon Sep 17 00:00:00 2001 From: addshore Date: Sat, 29 Aug 2015 14:08:44 +0200 Subject: [PATCH] Add protected getCurrentRow to TablePager This makes unit testing TablePagers easier Change-Id: I899ec6b056fb1f007a6caf0be320324cffe08326 --- includes/pager/TablePager.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/includes/pager/TablePager.php b/includes/pager/TablePager.php index 8095539806..ea619f1a72 100644 --- a/includes/pager/TablePager.php +++ b/includes/pager/TablePager.php @@ -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 -- 2.20.1