MediaWiki  REL1_24
SpecialContributions Class Reference

Special:Contributions, show user contributions in a paged list. More...

Inheritance diagram for SpecialContributions:
Collaboration diagram for SpecialContributions:

List of all members.

Public Member Functions

 __construct ()
 execute ($par)
 Default execute method Checks user permissions.
 getUserLinks (Title $userpage, Title $talkpage, User $target)
 Links to different places.

Protected Member Functions

 contributionsSub ($userObj)
 Generates the subheading with links.
 getForm ()
 Generates the namespace selector form with hidden attributes.
 getGroupName ()
 Under which header this special page is listed in Special:SpecialPages See messages 'specialpages-group-*' for valid names This method defaults to group 'other'.

Protected Attributes

 $opts

Detailed Description

Special:Contributions, show user contributions in a paged list.

Definition at line 29 of file SpecialContributions.php.


Constructor & Destructor Documentation


Member Function Documentation

SpecialContributions::contributionsSub ( userObj) [protected]

Generates the subheading with links.

Parameters:
User$userObjUser object for the target
Returns:
string Appropriately-escaped HTML to be output literally
Todo:
FIXME: Almost the same as getSubTitle in SpecialDeletedContributions.php. Could be combined.

Definition at line 247 of file SpecialContributions.php.

References $out, $user, array(), MWNamespace\getCanonicalName(), SpecialPage\getLanguage(), SpecialPage\getOutput(), getUserLinks(), in, SpecialPage\including(), User\isIP(), Linker\link(), Block\newFromTarget(), LogEventsList\showLogExtract(), Block\TYPE_AUTO, Block\TYPE_RANGE, and wfEscapeWikiText().

Referenced by execute().

Generates the namespace selector form with hidden attributes.

Returns:
string HTML fragment

Definition at line 398 of file SpecialContributions.php.

Referenced by execute().

Under which header this special page is listed in Special:SpecialPages See messages 'specialpages-group-*' for valid names This method defaults to group 'other'.

Returns:
string
Since:
1.21

Reimplemented from SpecialPage.

Definition at line 645 of file SpecialContributions.php.

SpecialContributions::getUserLinks ( Title userpage,
Title talkpage,
User target 
)

Links to different places.

Parameters:
Title$userpageTarget user page
Title$talkpageTalk page
User$targetTarget user object
Returns:
array

Definition at line 315 of file SpecialContributions.php.

Referenced by contributionsSub().


Member Data Documentation

SpecialContributions::$opts [protected]

Definition at line 30 of file SpecialContributions.php.


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