X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;ds=sidebyside;f=includes%2FPager.php;h=5f054601a83ce8267868a72e704c4d1892adbb90;hb=1d2c770a9e0a427085e52e7e535eadc032ee1faf;hp=33bf067bad49768af0eeba487a164dbee80f5002;hpb=280cb03b4d87e864a723686daf5d1699b3566ec1;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/Pager.php b/includes/Pager.php index 33bf067bad..5f054601a8 100644 --- a/includes/Pager.php +++ b/includes/Pager.php @@ -365,7 +365,9 @@ abstract class IndexPager extends ContextSource implements Pager { * @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 ); } @@ -409,7 +411,8 @@ abstract class IndexPager extends ContextSource implements Pager { * * @param ResultWrapper $result */ - protected function preprocessResults( $result ) {} + protected function preprocessResults( $result ) { + } /** * Get the formatted result list. Calls getStartBody(), formatRow() and @@ -491,7 +494,8 @@ abstract class IndexPager extends ContextSource implements Pager { * * @return void */ - protected function doBatchLookups() {} + protected function doBatchLookups() { + } /** * Hook into getBody(), allows text to be inserted at the start. This @@ -924,8 +928,9 @@ abstract class ReverseChronologicalPager extends IndexPager { * @ingroup Pager */ abstract class TablePager extends IndexPager { - var $mSort; - var $mCurrentRow; + protected $mSort; + + protected $mCurrentRow; public function __construct( IContextSource $context = null ) { if ( $context ) { @@ -995,7 +1000,10 @@ abstract class TablePager extends IndexPager { } $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";