fix doc, this is not an array
This commit is contained in:
parent
b996890e4e
commit
8054075513
1 changed files with 7 additions and 2 deletions
|
|
@ -925,22 +925,27 @@ abstract class TablePager extends IndexPager {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @protected
|
* @protected
|
||||||
* @param $row Array
|
* @param stdClass $row
|
||||||
* @return String HTML
|
* @return String HTML
|
||||||
*/
|
*/
|
||||||
function formatRow( $row ) {
|
function formatRow( $row ) {
|
||||||
$this->mCurrentRow = $row; # In case formatValue etc need to know
|
$this->mCurrentRow = $row; // In case formatValue etc need to know
|
||||||
$s = Xml::openElement( 'tr', $this->getRowAttrs( $row ) );
|
$s = Xml::openElement( 'tr', $this->getRowAttrs( $row ) );
|
||||||
$fieldNames = $this->getFieldNames();
|
$fieldNames = $this->getFieldNames();
|
||||||
|
|
||||||
foreach ( $fieldNames as $field => $name ) {
|
foreach ( $fieldNames as $field => $name ) {
|
||||||
$value = isset( $row->$field ) ? $row->$field : null;
|
$value = isset( $row->$field ) ? $row->$field : null;
|
||||||
$formatted = strval( $this->formatValue( $field, $value ) );
|
$formatted = strval( $this->formatValue( $field, $value ) );
|
||||||
|
|
||||||
if ( $formatted == '' ) {
|
if ( $formatted == '' ) {
|
||||||
$formatted = ' ';
|
$formatted = ' ';
|
||||||
}
|
}
|
||||||
|
|
||||||
$s .= Xml::tags( 'td', $this->getCellAttrs( $field, $value ), $formatted );
|
$s .= Xml::tags( 'td', $this->getCellAttrs( $field, $value ), $formatted );
|
||||||
}
|
}
|
||||||
|
|
||||||
$s .= "</tr>\n";
|
$s .= "</tr>\n";
|
||||||
|
|
||||||
return $s;
|
return $s;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue