A special page to show the contributions of a user.
More...
|
| executeWhenAvailable ( $par='') |
| Render the special page body.
|
|
| getDesktopUrl ( $subPage) |
| Get the URL to go to desktop site of this page.
|
|
| execute ( $par) |
| Render the special page content.
|
|
| __construct ( $page) |
|
| setHeaders () |
| Add modules to headers and wrap content in div.content if unstyledContent = true.
|
|
| isListed () |
| Returns if this page is listed on Special:SpecialPages.
|
|
|
| getHeaderBarLink ( $title) |
| Gets HTML to place in the header bar.
|
|
| showContributions (IResultWrapper $res, ContribsPager $pager) |
| Render the contributions of user to page.
|
|
| getQueryConditions () |
| Returns a list of query conditions that should be run against the revision table.
|
|
| renderHeaderBar (Title $title) |
| Adds HTML to render a header at the top of the feed.
|
|
| doQuery () |
| Executes the database query and returns the result.
|
|
| getMoreButton ( $ts) |
| Get a button to show more entries of history.
|
|
| showHistory (IResultWrapper $res) |
| Render the history list.
|
|
| formatComment ( $comment, $title) |
| Formats an edit comment.
|
|
| renderListHeaderWhereNeeded ( $date) |
| Renders a date header when necessary.
|
|
| getRevisionCommentHTML (RevisionRecord $rev, $user, $unhide) |
| Generates revision text based on user's rights and preference.
|
|
| getUsernameText ( $rev, $user, $unhide) |
| Generates username text based on user's rights and preference.
|
|
| renderFeedItemHtml ( $ts, $diffLink='', $username='', $comment='', $title=null, $isAnon=false, $bytes=0, $isMinor=false) |
| Renders an item in the feed.
|
|
| renderUnavailableBanner ( $msg) |
| Renders a banner telling the user the page is unavailable.
|
|
| addModules () |
| Add mobile special page specific modules (styles and scripts)
|
|
| showPageNotFound () |
| Render mobile specific error page, when special page can not be found.
|
|
| getUserOptionsLookup () |
| Get a user options lookup object.
|
|
| getUserGroupManager () |
| Get a user group manager object.
|
|
|
| $specialPageName = 'Contributions' |
|
| $user |
|
| $lastDate |
|
| $showUsername = false |
|
| $prevLengths = [] |
|
| $errorNotFoundTitleMsg = 'mobile-frontend-contributions-404-title' |
|
| $errorNotFoundDescriptionMsg = 'mobile-frontend-contributions-404-desc' |
|
| $hasDesktopVersion = true |
|
| $offset |
|
| $specialPageName = 'History' |
|
| $title |
|
| $errorNotFoundTitleMsg = 'mobile-frontend-history-404-title' |
|
| $errorNotFoundDescriptionMsg = 'mobile-frontend-history-404-desc' |
|
| $showUsername = true |
|
| $lastDate |
|
| $title |
|
| $hasDesktopVersion = false |
|
| $mode = 'stable' |
|
| $listed = false |
|
| $unstyledContent = true |
|
| $config = null |
|
| $errorNotFoundTitleMsg = 'mobile-frontend-generic-404-title' |
|
| $errorNotFoundDescriptionMsg = 'mobile-frontend-generic-404-desc' |
|
| $mobileContext |
|
| $userOptionsLookup |
|
| $userGroupManager |
|
A special page to show the contributions of a user.
- Todo:
- FIXME: On Special:Contributions add ability to filter a la desktop
◆ executeWhenAvailable()
SpecialMobileContributions::executeWhenAvailable |
( |
|
$par = '' | ) |
|
Render the special page body.
- Parameters
-
string | null | $par | The username |
Reimplemented from SpecialMobileHistory.
◆ getDesktopUrl()
SpecialMobileContributions::getDesktopUrl |
( |
|
$subPage | ) |
|
Get the URL to go to desktop site of this page.
- Parameters
-
string | null | $subPage | URL of mobile diff page |
- Returns
- null
Reimplemented from SpecialMobileHistory.
◆ getHeaderBarLink()
SpecialMobileContributions::getHeaderBarLink |
( |
|
$title | ) |
|
|
protected |
Gets HTML to place in the header bar.
Title should always refer to a logged in user
- Parameters
-
Title | $title | The page to link to |
- Returns
- string HTML representing the link in the header bar
Reimplemented from SpecialMobileHistory.
◆ showContributions()
SpecialMobileContributions::showContributions |
( |
IResultWrapper |
$res, |
|
|
ContribsPager |
$pager |
|
) |
| |
|
protected |
Render the contributions of user to page.
- Parameters
-
IResultWrapper | $res | Result of doQuery |
ContribsPager | $pager | |
The documentation for this class was generated from the following file:
- includes/specials/SpecialMobileContributions.php