From: addshore Date: Sat, 29 Aug 2015 12:08:44 +0000 (+0200) Subject: Add protected getCurrentRow to TablePager X-Git-Tag: 1.31.0-rc.0~10215 X-Git-Url: http://git.cyclocoop.org//%22%22.str_replace%28%27%22%27%2C?a=commitdiff_plain;h=72bd5c9e56bf453f39ca6f0fee5d1db47d6042e7;p=lhc%2Fweb%2Fwiklou.git Add protected getCurrentRow to TablePager This makes unit testing TablePagers easier Change-Id: I899ec6b056fb1f007a6caf0be320324cffe08326 --- 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