Static Public Member Functions | |
| static | showPage (Article $article) |
| This is largely cadged from PageHistory::history. | |
| static | getCredits ($article, $cnt, $showIfMax=true) |
| Get a list of contributors of $article. | |
Static Protected Member Functions | |
| static | getAuthor (Article $article) |
| Get the last author with the last modification time. | |
| static | getContributors (Article $article, $cnt, $showIfMax) |
| Get a list of contributors of $article. | |
| static | link (User $user) |
| Get a link to $user_name page. | |
| static | userLink (User $user) |
| Get a link to $user_name page. | |
| static | othersLink (Article $article) |
| Get a link to action=credits of $article page. | |
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
Definition at line 23 of file Credits.php.
| static Credits::getAuthor | ( | Article $ | article | ) | [static, protected] |
Get the last author with the last modification time.
| $article | Article object |
Definition at line 77 of file Credits.php.
References $t, $user, $wgAllowRealName, $wgLang, Article::getTimestamp(), Article::getUser(), User::newFromId(), and wfMsg().
Referenced by getCredits().
| static Credits::getContributors | ( | Article $ | article, | |
| $ | cnt, | |||
| $ | showIfMax | |||
| ) | [static, protected] |
Get a list of contributors of $article.
| $article | Article object | |
| $cnt | Int: maximum list of contributors to show | |
| $showIfMax | Bool: whether to contributors if there more than $cnt |
Definition at line 100 of file Credits.php.
References $s, $user, $wgAllowRealName, $wgLang, Article::getContributors(), link(), othersLink(), wfMsg(), and wfMsgExt().
Referenced by getCredits().
| static Credits::getCredits | ( | $ | article, | |
| $ | cnt, | |||
| $ | showIfMax = true | |||
| ) | [static] |
Get a list of contributors of $article.
| $article | Article object | |
| $cnt | Int: maximum list of contributors to show | |
| $showIfMax | Bool: whether to contributors if there more than $cnt |
Definition at line 58 of file Credits.php.
References $s, getAuthor(), getContributors(), wfProfileIn(), and wfProfileOut().
Referenced by SkinTemplate::outputPage(), pageStats(), and showPage().
| static Credits::link | ( | User $ | user | ) | [static, protected] |
Get a link to $user_name page.
| $user | User object |
Definition at line 164 of file Credits.php.
References $page, $wgAllowRealName, $wgUser, User::getName(), User::getRealName(), and User::getUserPage().
Referenced by getContributors(), and userLink().
| static Credits::othersLink | ( | Article $ | article | ) | [static, protected] |
Get a link to action=credits of $article page.
| $article | Article object |
Definition at line 201 of file Credits.php.
References $wgUser, Article::getTitle(), and wfMsgHtml().
Referenced by getContributors().
| static Credits::showPage | ( | Article $ | article | ) | [static] |
This is largely cadged from PageHistory::history.
| $article | Article object |
Definition at line 29 of file Credits.php.
References $s, $wgOut, getCredits(), wfMsg(), wfProfileIn(), and wfProfileOut().
Referenced by MediaWiki::performAction().
| static Credits::userLink | ( | User $ | user | ) | [static, protected] |
Get a link to $user_name page.
| $user_name | String: user name | |
| $linkText | String: optional display |
Definition at line 183 of file Credits.php.
References $wgAllowRealName, $wgUser, User::getRealName(), User::isAnon(), link(), and wfMsgExt().
1.5.9