MediaWiki
REL1_22
|
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. |
Definition at line 29 of file CreditsAction.php.
CreditsAction::getAuthor | ( | Page $ | page | ) | [protected] |
Get the last author with the last modification time.
Page | $page |
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.
int | $cnt | maximum list of contributors to show |
bool | $showIfMax | whether to contributors if there more than $cnt |
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.
int | $cnt | maximum list of contributors to show |
bool | $showIfMax | whether to contributors if there more than $cnt |
Definition at line 65 of file CreditsAction.php.
References $s, getAuthor(), getContributors(), page, wfProfileIn(), and wfProfileOut().
Referenced by onView().
CreditsAction::getDescription | ( | ) | [protected] |
Returns the description that goes below the <h1> tag.
Reimplemented from Action.
Definition at line 35 of file CreditsAction.php.
References Action\msg().
Return the name of the action this object responds to.
Reimplemented from Action.
Definition at line 31 of file CreditsAction.php.
CreditsAction::link | ( | User $ | user | ) | [protected] |
Get a link to $user's user page.
$user | User object |
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.
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.
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.
$user | User object |
Definition at line 210 of file CreditsAction.php.
References $link, User\getName(), User\getRealName(), global, User\isAnon(), link(), and Action\msg().
Referenced by getAuthor().