MediaWiki
REL1_19
|
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. |
Definition at line 26 of file CreditsAction.php.
CreditsAction::getAuthor | ( | Page $ | article | ) | [protected] |
Get the last author with the last modification time.
$article | Article object |
Definition at line 82 of file CreditsAction.php.
References $t, $user, false, Action\getLanguage(), Action\msg(), User\newFromName(), and userLink().
Referenced by getCredits().
CreditsAction::getContributors | ( | $ | cnt, |
$ | showIfMax | ||
) | [protected] |
Get a list of contributors of $article.
$cnt | Int: maximum list of contributors to show |
$showIfMax | Bool: whether to contributors if there more than $cnt |
Definition at line 104 of file CreditsAction.php.
References $count, $user, $wgHiddenPrefs, Action\getLanguage(), link(), Action\msg(), and othersLink().
Referenced by getCredits().
CreditsAction::getCredits | ( | $ | cnt, |
$ | showIfMax = true |
||
) |
Get a list of contributors.
$cnt | Int: maximum list of contributors to show |
$showIfMax | Bool: whether to contributors if there more than $cnt |
Definition at line 62 of file CreditsAction.php.
References getAuthor(), getContributors(), wfProfileIn(), and wfProfileOut().
Referenced by onView().
CreditsAction::getDescription | ( | ) | [protected] |
Returns the description that goes below the <h1> tag.
Reimplemented from Action.
Definition at line 32 of file CreditsAction.php.
References wfMsgHtml().
Return the name of the action this object responds to.
Reimplemented from Action.
Definition at line 28 of file CreditsAction.php.
CreditsAction::link | ( | User $ | user | ) | [protected] |
Get a link to $user's user page.
$user | User object |
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().
This is largely cadged from PageHistory::history.
Reimplemented from FormlessAction.
Definition at line 41 of file CreditsAction.php.
References getCredits(), Action\msg(), Html\rawElement(), wfProfileIn(), and wfProfileOut().
CreditsAction::othersLink | ( | ) | [protected] |
Get a link to action=credits of $article page.
Definition at line 224 of file CreditsAction.php.
References Action\getTitle(), Linker\linkKnown(), and Action\msg().
Referenced by getContributors().
CreditsAction::userLink | ( | User $ | user | ) | [protected] |
Get a link to $user's user page.
$user | User object |
Definition at line 206 of file CreditsAction.php.
References $wgHiddenPrefs, User\getName(), User\getRealName(), User\isAnon(), link(), and Action\msg().
Referenced by getAuthor().