NewPagesPager Class Reference
[SpecialPagePager]

Inherits ReverseChronologicalPager.

List of all members.

Public Member Functions

 __construct ($form, FormOptions $opts)
 getTitle ()
 Title used for self-links.
 getQueryInfo ()
 This function should be overridden to provide all parameters needed for the main paged query.
 getIndexField ()
 This function should be overridden to return the name of the index fi- eld.
 formatRow ($row)
 Abstract formatting function.
 getStartBody ()
 Hook into getBody(), allows text to be inserted at the start.
 getEndBody ()
 Hook into getBody() for the end of the list.

Protected Attributes

 $opts
 $mForm


Detailed Description

Definition at line 371 of file SpecialNewpages.php.


Constructor & Destructor Documentation

NewPagesPager::__construct ( form,
FormOptions opts 
)

Definition at line 375 of file SpecialNewpages.php.

References ReverseChronologicalPager::__construct().


Member Function Documentation

NewPagesPager::formatRow ( row  ) 

Abstract formatting function.

This should return an HTML string representing the result row $row. Rows will be concatenated and returned by getBody()

Reimplemented from IndexPager.

Definition at line 455 of file SpecialNewpages.php.

References $row.

NewPagesPager::getEndBody (  ) 

Hook into getBody() for the end of the list.

Reimplemented from IndexPager.

Definition at line 471 of file SpecialNewpages.php.

NewPagesPager::getIndexField (  ) 

This function should be overridden to return the name of the index fi- eld.

If the pager supports multiple orders, it may return an array of 'querykey' => 'indexfield' pairs, so that a request with &count=querykey will use indexfield to sort. In this case, the first returned key is the default.

Needless to say, it's really not a good idea to use a non-unique index for this! That won't page right.

Reimplemented from IndexPager.

Definition at line 451 of file SpecialNewpages.php.

NewPagesPager::getQueryInfo (  ) 

This function should be overridden to provide all parameters needed for the main paged query.

It returns an associative array with the following elements: tables => Table(s) for passing to Database::select() fields => Field(s) for passing to Database::select(), may be * conds => WHERE conditions options => option array

Reimplemented from IndexPager.

Definition at line 388 of file SpecialNewpages.php.

References $conds, $fields, $user, $username, $wgEnableNewpagesUserFilter, $wgGroupPermissions, $wgUser, Title::makeTitleSafe(), and ChangeTags::modifyDisplayQuery().

NewPagesPager::getStartBody (  ) 

Hook into getBody(), allows text to be inserted at the start.

This will be called even if there are no rows in the result set.

Reimplemented from IndexPager.

Definition at line 459 of file SpecialNewpages.php.

References $row.

NewPagesPager::getTitle (  ) 

Title used for self-links.

Override this if you want to be able to use a title other than $wgTitle

Reimplemented from IndexPager.

Definition at line 381 of file SpecialNewpages.php.

References $title.


Member Data Documentation

NewPagesPager::$mForm [protected]

Definition at line 373 of file SpecialNewpages.php.

NewPagesPager::$opts [protected]

Definition at line 373 of file SpecialNewpages.php.


The documentation for this class was generated from the following file:

Generated on Sat Sep 5 02:08:43 2009 for MediaWiki by  doxygen 1.5.9