MediaWiki  REL1_24
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

 canShowRealUserName ()
 Whether we can display the user's real name (not a hidden pref)
 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

Whether we can display the user's real name (not a hidden pref)

Since:
1.24
Returns:
bool

Definition at line 109 of file CreditsAction.php.

Referenced by getContributors(), link(), and userLink().

CreditsAction::getAuthor ( Page page) [protected]

Get the last author with the last modification time.

Parameters:
Page$page
Returns:
string HTML

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

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

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.

Since:
1.17
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.

Since:
1.17
Returns:
string Lowercase name

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:
User$user
Returns:
string Html

Definition at line 203 of file CreditsAction.php.

References Action\$page, canShowRealUserName(), User\getName(), User\getRealName(), SpecialPage\getTitleFor(), User\getUserPage(), 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 239 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:
User$user
Returns:
string Html

Definition at line 222 of file CreditsAction.php.

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

Referenced by getAuthor().


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