MediaWiki  REL1_19
NewFilesPager Class Reference
Inheritance diagram for NewFilesPager:
Collaboration diagram for NewFilesPager:

List of all members.

Public Member Functions

 __construct (IContextSource $context, $par=null)
 formatRow ($row)
 Abstract formatting function.
 getEndBody ()
 Hook into getBody() for the end of the list.
 getForm ()
 getIndexField ()
 This function should be overridden to return the name of the index fi- eld.
 getQueryInfo ()
 This function should be overridden to provide all parameters needed for the main paged query.
 getStartBody ()
 Hook into getBody(), allows text to be inserted at the start.

Public Attributes

 $gallery

Detailed Description

Definition at line 51 of file SpecialNewimages.php.


Constructor & Destructor Documentation

NewFilesPager::__construct ( IContextSource context,
par = null 
)

Definition at line 58 of file SpecialNewimages.php.

References IContextSource\getRequest().

Here is the call graph for this function:


Member Function Documentation

Abstract formatting function.

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

Parameters:
$rowObject: database row
Returns:
String

Reimplemented from IndexPager.

Definition at line 116 of file SpecialNewimages.php.

References $title, $ul, $user, ContextSource\getLanguage(), Linker\link(), Title\makeTitle(), and User\newFromId().

Here is the call graph for this function:

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

Returns:
String

Reimplemented from IndexPager.

Definition at line 112 of file SpecialNewimages.php.

Definition at line 131 of file SpecialNewimages.php.

References $wgMiserMode, ContextSource\getContext(), ContextSource\getRequest(), ContextSource\getTitle(), wfMessage(), and wfMsg().

Here is the call graph for this function:

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.

Returns:
string|Array

Reimplemented from IndexPager.

Definition at line 101 of file SpecialNewimages.php.

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 join_conds => JOIN conditions

Returns:
Array

Reimplemented from IndexPager.

Definition at line 65 of file SpecialNewimages.php.

References $dbr, $wgMiserMode, User\getGroupsWithPermission(), Title\newFromURL(), and wfGetDB().

Here is the call graph for this function:

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.

Returns:
String

Reimplemented from IndexPager.

Definition at line 105 of file SpecialNewimages.php.


Member Data Documentation

NewFilesPager::$gallery

Definition at line 56 of file SpecialNewimages.php.


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