MediaWiki  REL1_22
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, calls the function given in mFunction.
 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 30 of file SpecialContributions.php.


Constructor & Destructor Documentation


Member Function Documentation

SpecialContributions::contributionsSub ( userObj) [protected]

Generates the subheading with links.

Parameters:
$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 233 of file SpecialContributions.php.

References $out, $tools, $user, array(), SpecialPage\getLanguage(), SpecialPage\getOutput(), getUserLinks(), in, Linker\link(), LogEventsList\showLogExtract(), and Block\TYPE_AUTO.

Referenced by execute().

Default execute method Checks user permissions, calls the function given in mFunction.

This must be overridden by subclasses; it will be made abstract in a future version

Parameters:
$subPagestring|null

Reimplemented from SpecialPage.

Definition at line 37 of file SpecialContributions.php.

References $out, $user, SpecialPage\addFeedLinks(), array(), contributionsSub(), false, SpecialPage\getContext(), getForm(), SpecialPage\getOutput(), SpecialPage\getRequest(), SpecialPage\getSkin(), SpecialPage\getUser(), IP\isIPAddress(), Title\makeTitleSafe(), SpecialPage\msg(), User\newFromName(), SpecialPage\outputHeader(), SpecialPage\setHeaders(), wfAppendQuery(), wfGetLB(), wfRunHooks(), and wfScript().

Generates the namespace selector form with hidden attributes.

Returns:
String: HTML fragment

Definition at line 354 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 587 of file SpecialContributions.php.

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

Links to different places.

Parameters:
$userpageTitle: Target user page
$talkpageTitle: Talk page
$targetUser: Target user object
Returns:
array

Definition at line 281 of file SpecialContributions.php.

Referenced by contributionsSub().


Member Data Documentation

SpecialContributions::$opts [protected]

Definition at line 31 of file SpecialContributions.php.


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