From 86191325b37445ebfe4118313ac61c2c59fedfe6 Mon Sep 17 00:00:00 2001 From: Andrew Garrett Date: Wed, 28 Jan 2009 20:08:46 +0000 Subject: [PATCH] Allow individual TablePager rows to be styled with the internal method getRowClass, called in formatRow. --- includes/Pager.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/includes/Pager.php b/includes/Pager.php index 3ff31462d3..32bfec5637 100644 --- a/includes/Pager.php +++ b/includes/Pager.php @@ -745,7 +745,8 @@ abstract class TablePager extends IndexPager { } function formatRow( $row ) { - $s = "\n"; + $class = $this->getRowClass( $row ); + $s = "\n"; $fieldNames = $this->getFieldNames(); $this->mCurrentRow = $row; # In case formatValue needs to know foreach ( $fieldNames as $field => $name ) { @@ -761,6 +762,10 @@ abstract class TablePager extends IndexPager { return $s; } + function getRowClass($row) { + return ''; + } + function getIndexField() { return $this->mSort; } -- 2.20.1