Mobile formatted history of a page.
More...
|
| __construct (NamespaceInfo $namespaceInfo, RevisionFactory $revisionFactory) |
|
| executeWhenAvailable ( $par='') |
| Render the special page.
|
|
| getDesktopUrl ( $subPage) |
| Returns desktop URL for this special page.
|
|
| execute ( $par) |
| Render the special page content.
|
|
| __construct ( $page) |
|
| setHeaders () |
| Add modules to headers.
|
|
| isListed () |
| Returns if this page is listed on Special:SpecialPages.
|
|
|
| getQueryConditions () |
| Returns a list of query conditions that should be run against the revision table.
|
|
| getHeaderBarLink ( $title) |
| Gets HTML to place in the header bar.
|
|
| 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 (array $options) |
| 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.
|
|
| getUserFactory () |
| Get a user factory object for creating UserIdentify object.
|
|
|
| $hasDesktopVersion = true |
|
const | LIMIT = 50 |
|
| $offset |
|
| $specialPageName = 'History' |
|
| $title |
|
| $errorNotFoundTitleMsg = 'mobile-frontend-history-404-title' |
|
| $errorNotFoundDescriptionMsg = 'mobile-frontend-history-404-desc' |
|
| $showUsername = true |
|
| $lastDate |
|
| $title |
|
| $hasDesktopVersion = false |
|
| $listed = false |
|
| $config = null |
|
| $errorNotFoundTitleMsg = 'mobile-frontend-generic-404-title' |
|
| $errorNotFoundDescriptionMsg = 'mobile-frontend-generic-404-desc' |
|
| $mobileContext |
|
| $userOptionsLookup |
|
| $userGroupManager |
|
| $userFactory |
|
| $commentFormatter |
|
Mobile formatted history of a page.
◆ __construct()
SpecialMobileHistory::__construct |
( |
NamespaceInfo | $namespaceInfo, |
|
|
RevisionFactory | $revisionFactory ) |
- Parameters
-
NamespaceInfo | $namespaceInfo | |
RevisionFactory | $revisionFactory | |
◆ doQuery()
SpecialMobileHistory::doQuery |
( |
| ) |
|
|
protected |
Executes the database query and returns the result.
- See also
- getQueryConditions()
- Returns
- IResultWrapper
◆ executeWhenAvailable()
SpecialMobileHistory::executeWhenAvailable |
( |
| $par = '' | ) |
|
Render the special page.
- Parameters
-
string | null | $par | parameter as subpage of specialpage |
Reimplemented from MobileSpecialPage.
◆ getDesktopUrl()
SpecialMobileHistory::getDesktopUrl |
( |
| $subPage | ) |
|
Returns desktop URL for this special page.
- Parameters
-
string | null | $subPage | Subpage passed in URL |
- Returns
- string
Reimplemented from MobileSpecialPage.
◆ getHeaderBarLink()
SpecialMobileHistory::getHeaderBarLink |
( |
| $title | ) |
|
|
protected |
Gets HTML to place in the header bar.
- Parameters
-
Title | $title | The page to link to |
- Returns
- string HTML representing the link in the header bar
◆ getMoreButton()
SpecialMobileHistory::getMoreButton |
( |
| $ts | ) |
|
|
protected |
Get a button to show more entries of history.
- Parameters
-
string | null | $ts | The offset to start the history list from |
- Returns
- string
◆ getQueryConditions()
SpecialMobileHistory::getQueryConditions |
( |
| ) |
|
|
protected |
Returns a list of query conditions that should be run against the revision table.
- Returns
- array List of conditions
◆ renderHeaderBar()
SpecialMobileHistory::renderHeaderBar |
( |
Title | $title | ) |
|
|
protected |
Adds HTML to render a header at the top of the feed.
- Parameters
-
Title | $title | The page to link to |
◆ shouldUseSpecialHistory()
static SpecialMobileHistory::shouldUseSpecialHistory |
( |
Title | $title, |
|
|
User | $user ) |
|
static |
Checks, if the given title supports the use of SpecialMobileHistory.
- Parameters
-
Title | $title | The title to check |
User | $user | the user to check |
- Returns
- bool True, if SpecialMobileHistory can be used, false otherwise
◆ showHistory()
SpecialMobileHistory::showHistory |
( |
IResultWrapper | $res | ) |
|
|
protected |
Render the history list.
- See also
- showRow()
-
doQuery()
- Parameters
-
IResultWrapper | $res | The result of doQuery |
The documentation for this class was generated from the following file:
- includes/specials/SpecialMobileHistory.php