MobileFrontend
MobileoptimisedfrontendforMediaWiki
|
Mobile formatted history of of a page. More...
Public Member Functions | |
executeWhenAvailable ( $par='') | |
Render the special page. More... | |
getDesktopUrl ( $subPage) | |
Returns desktop URL for this special page. More... | |
Public Member Functions inherited from MobileSpecialPageFeed | |
execute ( $par) | |
Render the special page content. More... | |
Public Member Functions inherited from MobileSpecialPage | |
__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. More... | |
Static Public Member Functions | |
static | shouldUseSpecialHistory (Title $title, User $user) |
Checks, if the given title supports the use of SpecialMobileHistory. More... | |
Public Attributes | |
const | LIMIT = 50 |
const | DB_REVISIONS_TABLE = 'revision' |
Protected Member Functions | |
getQueryConditions () | |
Returns a list of query conditions that should be run against the revision table. More... | |
getHeaderBarLink ( $title) | |
Gets HTML to place in the header bar. More... | |
renderHeaderBar (Title $title) | |
Adds HTML to render a header at the top of the feed. More... | |
doQuery () | |
Executes the database query and returns the result. More... | |
showRow (Revision $rev, $prev) | |
Show a row in history, including: time of edit changed bytes name of editor comment of edit. More... | |
getMoreButton ( $ts) | |
Get a button to show more entries of history. More... | |
showHistory (IResultWrapper $res) | |
Render the history list. More... | |
Protected Member Functions inherited from MobileSpecialPageFeed | |
formatComment ( $comment, $title) | |
Formats an edit comment. More... | |
renderListHeaderWhereNeeded ( $date) | |
Renders a date header when necessary. More... | |
getRevisionCommentHTML ( $rev, $user, $unhide) | |
Generates revision text based on user's rights and preference. More... | |
getUsernameText ( $rev, $user, $unhide) | |
Generates username text based on user's rights and preference. More... | |
renderFeedItemHtml ( $ts, $diffLink='', $username='', $comment='', $title=null, $isAnon=false, $bytes=0, $isMinor=false) | |
Renders an item in the feed. More... | |
Protected Member Functions inherited from MobileSpecialPage | |
renderUnavailableBanner ( $msg) | |
Renders a banner telling the user the page is unavailable. More... | |
addModules () | |
Add mobile special page specific modules (styles and scripts) | |
showPageNotFound () | |
Render mobile specific error page, when special page can not be found. | |
Protected Attributes | |
$hasDesktopVersion = true | |
$offset | |
$specialPageName = 'History' | |
$title | |
$errorNotFoundTitleMsg = 'mobile-frontend-history-404-title' | |
$errorNotFoundDescriptionMsg = 'mobile-frontend-history-404-desc' | |
Protected Attributes inherited from MobileSpecialPageFeed | |
$showUsername = true | |
$lastDate | |
$title | |
Protected Attributes inherited from MobileSpecialPage | |
$hasDesktopVersion = false | |
$mode = 'stable' | |
$listed = false | |
$unstyledContent = true | |
$config = null | |
$errorNotFoundTitleMsg = 'mobile-frontend-generic-404-title' | |
$errorNotFoundDescriptionMsg = 'mobile-frontend-generic-404-desc' | |
$mobileContext | |
Mobile formatted history of of a page.
|
protected |
Executes the database query and returns the result.
SpecialMobileHistory::executeWhenAvailable | ( | $par = '' | ) |
Render the special page.
string | null | $par | parameter as subpage of specialpage |
Reimplemented from MobileSpecialPage.
Reimplemented in SpecialMobileContributions.
SpecialMobileHistory::getDesktopUrl | ( | $subPage | ) |
Returns desktop URL for this special page.
string | null | $subPage | Subpage passed in URL |
Reimplemented from MobileSpecialPage.
Reimplemented in SpecialMobileContributions.
|
protected |
Gets HTML to place in the header bar.
Title | $title | The page to link to |
Reimplemented in SpecialMobileContributions.
|
protected |
Get a button to show more entries of history.
int | $ts | The offset to start the history list from |
|
protected |
Returns a list of query conditions that should be run against the revision table.
|
protected |
Adds HTML to render a header at the top of the feed.
Title | $title | The page to link to |
|
static |
Checks, if the given title supports the use of SpecialMobileHistory.
Title | $title | The title to check |
User | $user | the user to check |
|
protected |
|
protected |
Show a row in history, including: time of edit changed bytes name of editor comment of edit.
Revision | $rev | Revision id of the row wants to show |
Revision | null | $prev | Revision id of previous Revision to display the difference |