MediaWiki  REL1_19
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 $article)
 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 26 of file CreditsAction.php.


Member Function Documentation

CreditsAction::getAuthor ( Page article) [protected]

Get the last author with the last modification time.

Parameters:
$articleArticle object
Returns:
String HTML

Definition at line 82 of file CreditsAction.php.

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

Referenced by getCredits().

Here is the call graph for this function:

Here is the caller graph for this function:

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

Get a list of contributors of $article.

Parameters:
$cntInt: maximum list of contributors to show
$showIfMaxBool: whether to contributors if there more than $cnt
Returns:
String: html

Definition at line 104 of file CreditsAction.php.

References $count, $user, $wgHiddenPrefs, Action\getLanguage(), link(), Action\msg(), and othersLink().

Referenced by getCredits().

Here is the call graph for this function:

Here is the caller graph for this function:

CreditsAction::getCredits ( cnt,
showIfMax = true 
)

Get a list of contributors.

Parameters:
$cntInt: maximum list of contributors to show
$showIfMaxBool: whether to contributors if there more than $cnt
Returns:
String: html

Definition at line 62 of file CreditsAction.php.

References getAuthor(), getContributors(), wfProfileIn(), and wfProfileOut().

Referenced by onView().

Here is the call graph for this function:

Here is the caller graph for this function:

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

Returns:
String

Reimplemented from Action.

Definition at line 32 of file CreditsAction.php.

References wfMsgHtml().

Here is the call graph for this function:

Return the name of the action this object responds to.

Returns:
String lowercase

Reimplemented from Action.

Definition at line 28 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 186 of file CreditsAction.php.

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

Referenced by getContributors(), and userLink().

Here is the call graph for this function:

Here is the caller graph for this function:

This is largely cadged from PageHistory::history.

Returns:
String HTML

Reimplemented from FormlessAction.

Definition at line 41 of file CreditsAction.php.

References getCredits(), Action\msg(), Html\rawElement(), wfProfileIn(), and wfProfileOut().

Here is the call graph for this function:

CreditsAction::othersLink ( ) [protected]

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

Returns:
String: HTML link

Definition at line 224 of file CreditsAction.php.

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

Referenced by getContributors().

Here is the call graph for this function:

Here is the caller graph for this function:

CreditsAction::userLink ( User user) [protected]

Get a link to $user's user page.

Parameters:
$userUser object
Returns:
String: html

Definition at line 206 of file CreditsAction.php.

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

Referenced by getAuthor().

Here is the call graph for this function:

Here is the caller graph for this function:


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