From: Andrew Garrett Date: Wed, 28 Jan 2009 20:08:46 +0000 (+0000) Subject: Allow individual TablePager rows to be styled with the internal method getRowClass... X-Git-Tag: 1.31.0-rc.0~43161 X-Git-Url: http://git.cyclocoop.org/ecrire?a=commitdiff_plain;h=86191325b37445ebfe4118313ac61c2c59fedfe6;p=lhc%2Fweb%2Fwiklou.git Allow individual TablePager rows to be styled with the internal method getRowClass, called in formatRow. --- 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; }