+ /**
+ * Get attributes to be applied to the given row.
+ *
+ * @protected
+ *
+ * @param $row Object: the database result row
+ * @return Array of <attr> => <value>
+ */
+ function getRowAttrs( $row ) {
+ $class = $this->getRowClass( $row );
+ if ( $class === '' ) {
+ // Return an empty array to avoid clutter in HTML like class=""
+ return array();
+ } else {
+ return array( 'class' => $this->getRowClass( $row ) );
+ }
+ }
+
+ /**
+ * Get any extra attributes to be applied to the given cell. Don't
+ * take this as an excuse to hardcode styles; use classes and
+ * CSS instead. Row context is available in $this->mCurrentRow
+ *
+ * @protected
+ *
+ * @param $field String The column
+ * @param $value String The cell contents
+ * @return Array of attr => value
+ */
+ function getCellAttrs( $field, $value ) {
+ return array( 'class' => 'TablePager_col_' . $field );
+ }
+
+ /**
+ * @protected
+ * @return string
+ */