dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Making missing old files not try to render a thumbnail
[lhc/web/wiklou.git]
/
includes
/
Pager.php
diff --git
a/includes/Pager.php
b/includes/Pager.php
index
33bf067
..
c7de8c1
100644
(file)
--- a/
includes/Pager.php
+++ b/
includes/Pager.php
@@
-69,7
+69,7
@@
interface Pager {
* last page depending on the dir parameter.
*
* Subclassing the pager to implement concrete functionality should be fairly
* last page depending on the dir parameter.
*
* Subclassing the pager to implement concrete functionality should be fairly
- * simple, please see the examples in History
Page
.php and
+ * simple, please see the examples in History
Action
.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.
* SpecialBlockList.php. You just need to override formatRow(),
* getQueryInfo() and getIndexField(). Don't forget to call the parent
* constructor if you override it.
@@
-365,7
+365,9
@@
abstract class IndexPager extends ContextSource implements Pager {
* @return ResultWrapper
*/
public function reallyDoQuery( $offset, $limit, $descending ) {
* @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 );
}
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
*/
*
* @param ResultWrapper $result
*/
- protected function preprocessResults( $result ) {}
+ protected function preprocessResults( $result ) {
+ }
/**
* Get the formatted result list. Calls getStartBody(), formatRow() and
/**
* Get the formatted result list. Calls getStartBody(), formatRow() and
@@
-491,7
+494,8
@@
abstract class IndexPager extends ContextSource implements Pager {
*
* @return void
*/
*
* @return void
*/
- protected function doBatchLookups() {}
+ protected function doBatchLookups() {
+ }
/**
* Hook into getBody(), allows text to be inserted at the start. This
/**
* 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 {
* @ingroup Pager
*/
abstract class TablePager extends IndexPager {
- var $mSort;
- var $mCurrentRow;
+ protected $mSort;
+
+ protected $mCurrentRow;
public function __construct( IContextSource $context = null ) {
if ( $context ) {
public function __construct( IContextSource $context = null ) {
if ( $context ) {
@@
-995,7
+1000,10
@@
abstract class TablePager extends IndexPager {
}
$tableClass = $this->getTableClass();
}
$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";
$ret .= Html::rawElement( 'thead', array(), Html::rawElement( 'tr', array(), "\n" . $s . "\n" ) );
$ret .= Html::openElement( 'tbody' ) . "\n";