MediaWiki  REL1_19
DeletedContribsPager Class Reference

Implements Special:DeletedContributions to display archived revisions. More...

Inheritance diagram for DeletedContribsPager:
Collaboration diagram for DeletedContribsPager:

List of all members.

Public Member Functions

 __construct (IContextSource $context, $target, $namespace=false)
 formatRow ($row)
 Generates each row in the contributions list.
 getDatabase ()
 Get the Database object in use.
 getDefaultQuery ()
 Get an array of query parameters that should be put into self-links.
 getEndBody ()
 Hook into getBody() for the end of the list.
 getIndexField ()
 This function should be overridden to return the name of the index fi- eld.
 getNamespaceCond ()
 getNavigationBar ()
 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.
 getUserCond ()

Public Attributes

 $mDb
 $mDefaultDirection = true
 $mDefaultDirection gives the direction to use when sorting results: false for ascending, true for descending.
 $messages
 $namespace = ''
 $target

Detailed Description

Implements Special:DeletedContributions to display archived revisions.

Definition at line 29 of file SpecialDeletedContributions.php.


Constructor & Destructor Documentation

DeletedContribsPager::__construct ( IContextSource context,
target,
namespace = false 
)

Definition at line 34 of file SpecialDeletedContributions.php.

References $namespace, $target, ContextSource\msg(), and wfGetDB().

Here is the call graph for this function:


Member Function Documentation

Generates each row in the contributions list.

Contributions which are marked "top" are currently on top of the history. For these contributions, a [rollback] link is shown for users with sysop privileges. The rollback link restores the most recent version that was not written by the target user.

Todo:
This would probably look a lot nicer in a table.

Reimplemented from IndexPager.

Definition at line 134 of file SpecialDeletedContributions.php.

References $comment, $page, $user, Revision\DELETED_TEXT, Revision\DELETED_USER, ChangesList\flag(), ContextSource\getLanguage(), Linker\getRevDeleteLink(), SpecialPage\getTitleFor(), ContextSource\getUser(), Linker\link(), Linker\linkKnown(), Title\makeTitle(), ContextSource\msg(), Html\rawElement(), Linker\revComment(), wfProfileIn(), and wfProfileOut().

Here is the call graph for this function:

Get the Database object in use.

Returns:
Database

Definition at line 242 of file SpecialDeletedContributions.php.

Get an array of query parameters that should be put into self-links.

By default, all parameters passed in the URL are used, except for a short blacklist.

Returns:
Associative array

Reimplemented from IndexPager.

Definition at line 45 of file SpecialDeletedContributions.php.

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

Returns:
String

Reimplemented from IndexPager.

Definition at line 90 of file SpecialDeletedContributions.php.

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 82 of file SpecialDeletedContributions.php.

Definition at line 116 of file SpecialDeletedContributions.php.

Referenced by getQueryInfo().

Here is the caller graph for this function:

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 51 of file SpecialDeletedContributions.php.

References $user, Revision\DELETED_USER, getNamespaceCond(), ContextSource\getUser(), getUserCond(), and Revision\SUPPRESSED_USER.

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 86 of file SpecialDeletedContributions.php.

Definition at line 73 of file SpecialDeletedContributions.php.

Referenced by getQueryInfo().

Here is the caller graph for this function:


Member Data Documentation

DeletedContribsPager::$mDb

Reimplemented from IndexPager.

Definition at line 32 of file SpecialDeletedContributions.php.

DeletedContribsPager::$mDefaultDirection = true

$mDefaultDirection gives the direction to use when sorting results: false for ascending, true for descending.

If $mIsBackwards is set, we start from the opposite end, but we still sort the page itself according to $mDefaultDirection. E.g., if $mDefaultDirection is false but we're going backwards, we'll display the last page of results, but the last result will be at the bottom, not the top.

Like $mIndexField, $mDefaultDirection will be a single value even if the class supports multiple default directions for different order types.

Reimplemented from IndexPager.

Definition at line 30 of file SpecialDeletedContributions.php.

DeletedContribsPager::$messages

Definition at line 31 of file SpecialDeletedContributions.php.

DeletedContribsPager::$namespace = ''

Definition at line 32 of file SpecialDeletedContributions.php.

Referenced by __construct().

DeletedContribsPager::$target

Definition at line 31 of file SpecialDeletedContributions.php.

Referenced by __construct().


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