MediaWiki  REL1_22
CreditsAction Class Reference
Inheritance diagram for CreditsAction:
Collaboration diagram for CreditsAction:

List of all members.

Public Member Functions

 getCredits ($cnt, $showIfMax=true)
 Get a list of contributors.
 getName ()
 Return the name of the action this object responds to.
 onView ()
 This is largely cadged from PageHistory::history.

Protected Member Functions

 getAuthor (Page $page)
 Get the last author with the last modification time.
 getContributors ($cnt, $showIfMax)
 Get a list of contributors of $article.
 getDescription ()
 Returns the description that goes below the <h1> tag.
 link (User $user)
 Get a link to $user's user page.
 othersLink ()
 Get a link to action=credits of $article page.
 userLink (User $user)
 Get a link to $user's user page.

Detailed Description

Definition at line 29 of file CreditsAction.php.


Member Function Documentation

CreditsAction::getAuthor ( Page page) [protected]

Get the last author with the last modification time.

Parameters:
Page$page
Returns:
String HTML

Definition at line 85 of file CreditsAction.php.

References $t, $timestamp, $user, false, Action\getLanguage(), Action\msg(), User\newFromName(), true, and userLink().

Referenced by getCredits().

CreditsAction::getContributors ( cnt,
showIfMax 
) [protected]

Get a list of contributors of $article.

Parameters:
int$cntmaximum list of contributors to show
bool$showIfMaxwhether to contributors if there more than $cnt
Returns:
String: html

Definition at line 107 of file CreditsAction.php.

References $count, $link, $s, $user, array(), as, Action\getLanguage(), global, link(), Action\msg(), othersLink(), page, and params.

Referenced by getCredits().

CreditsAction::getCredits ( cnt,
showIfMax = true 
)

Get a list of contributors.

Parameters:
int$cntmaximum list of contributors to show
bool$showIfMaxwhether to contributors if there more than $cnt
Returns:
String: html

Definition at line 65 of file CreditsAction.php.

References $s, getAuthor(), getContributors(), page, wfProfileIn(), and wfProfileOut().

Referenced by onView().

Returns the description that goes below the <h1> tag.

Returns:
String

Reimplemented from Action.

Definition at line 35 of file CreditsAction.php.

References Action\msg().

Return the name of the action this object responds to.

Returns:
String lowercase

Reimplemented from Action.

Definition at line 31 of file CreditsAction.php.

CreditsAction::link ( User user) [protected]

Get a link to $user's user page.

Parameters:
$userUser object
Returns:
String: html

Definition at line 190 of file CreditsAction.php.

References Action\$page, User\getName(), User\getRealName(), SpecialPage\getTitleFor(), User\getUserPage(), global, and User\isAnon().

Referenced by getContributors(), and userLink().

This is largely cadged from PageHistory::history.

Returns:
String HTML

Reimplemented from FormlessAction.

Definition at line 44 of file CreditsAction.php.

References $s, array(), getCredits(), Action\msg(), page, Html\rawElement(), wfProfileIn(), and wfProfileOut().

CreditsAction::othersLink ( ) [protected]

Get a link to action=credits of $article page.

Returns:
String: HTML link

Definition at line 228 of file CreditsAction.php.

References array(), Action\getTitle(), Linker\linkKnown(), and Action\msg().

Referenced by getContributors().

CreditsAction::userLink ( User user) [protected]

Get a link to $user's user page.

Parameters:
$userUser object
Returns:
String: html

Definition at line 210 of file CreditsAction.php.

References $link, User\getName(), User\getRealName(), global, User\isAnon(), link(), and Action\msg().

Referenced by getAuthor().


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