* last page depending on the dir parameter.
*
* Subclassing the pager to implement concrete functionality should be fairly
- * simple, please see the examples in HistoryPage.php and
+ * simple, please see the examples in HistoryAction.php and
* SpecialBlockList.php. You just need to override formatRow(),
* getQueryInfo() and getIndexField(). Don't forget to call the parent
* constructor if you override it.
* @return ResultWrapper
*/
public function reallyDoQuery( $offset, $limit, $descending ) {
- list( $tables, $fields, $conds, $fname, $options, $join_conds ) = $this->buildQueryInfo( $offset, $limit, $descending );
+ list( $tables, $fields, $conds, $fname, $options, $join_conds ) =
+ $this->buildQueryInfo( $offset, $limit, $descending );
+
return $this->mDb->select( $tables, $fields, $conds, $fname, $options, $join_conds );
}
*
* @param ResultWrapper $result
*/
- protected function preprocessResults( $result ) {}
+ protected function preprocessResults( $result ) {
+ }
/**
* Get the formatted result list. Calls getStartBody(), formatRow() and
*
* @return void
*/
- protected function doBatchLookups() {}
+ protected function doBatchLookups() {
+ }
/**
* Hook into getBody(), allows text to be inserted at the start. This
* @ingroup Pager
*/
abstract class TablePager extends IndexPager {
- var $mSort;
- var $mCurrentRow;
+ protected $mSort;
+
+ protected $mCurrentRow;
public function __construct( IContextSource $context = null ) {
if ( $context ) {
}
$tableClass = $this->getTableClass();
- $ret = Html::openElement( 'table', array( 'style' => 'border:1px;', 'class' => "mw-datatable $tableClass" ) );
+ $ret = Html::openElement( 'table', array(
+ 'style' => 'border:1px;',
+ 'class' => "mw-datatable $tableClass" )
+ );
$ret .= Html::rawElement( 'thead', array(), Html::rawElement( 'tr', array(), "\n" . $s . "\n" ) );
$ret .= Html::openElement( 'tbody' ) . "\n";