MobileFrontend
Mobile optimised frontend for MediaWiki
|
Extends the basic DifferenceEngine from core to enable inline difference view using only one column instead of two column diff system. More...
Public Member Functions | |
isDeletedDiff () | |
Checks whether the given Revision was deleted. | |
isSuppressedDiff () | |
Checks whether the given Revision was deleted or if it is delete restricted. | |
isUserAllowedToSee () | |
Checks whether the current user has permission to view the old and current revisions. | |
showDiffPage ( $diffOnly=false) | |
Render the inline difference between two revisions using InlineDiffEngine. | |
isHiddenFromUser () | |
Checks whether the diff should be hidden from the current user This is based on whether the user is allowed to see it and whether the flag unhide is set to allow viewing deleted revisions. | |
getWarningMessageText () | |
Returns warning messages in situations where a revision cannot be viewed by a user explaining to them why. | |
generateContentDiffBody (Content $old, Content $new) | |
@inheritDoc | |
generateTextDiffBody ( $otext, $ntext) | |
Creates an inline diff. | |
getPatrolledLink () | |
Create a getter function for the patrol link in Mobile Diff. | |
Protected Member Functions | |
getDiffBodyCacheKeyParams () | |
@inheritDoc | |
Extends the basic DifferenceEngine from core to enable inline difference view using only one column instead of two column diff system.
InlineDifferenceEngine::generateTextDiffBody | ( | $otext, | |
$ntext | |||
) |
Creates an inline diff.
string | $otext | Old content |
string | $ntext | New content |
MediaWiki\Diff\ComplexityException
InlineDifferenceEngine::getPatrolledLink | ( | ) |
Create a getter function for the patrol link in Mobile Diff.
FIXME: This shouldn't be needed, but markPatrolledLink is protected in DifferenceEngine
InlineDifferenceEngine::getWarningMessageText | ( | ) |
Returns warning messages in situations where a revision cannot be viewed by a user explaining to them why.
Returns empty string when the revision can be viewed.
InlineDifferenceEngine::isDeletedDiff | ( | ) |
Checks whether the given Revision was deleted.
InlineDifferenceEngine::isHiddenFromUser | ( | ) |
Checks whether the diff should be hidden from the current user This is based on whether the user is allowed to see it and whether the flag unhide is set to allow viewing deleted revisions.
InlineDifferenceEngine::isSuppressedDiff | ( | ) |
Checks whether the given Revision was deleted or if it is delete restricted.
FIXME: Upstream to DifferenceEngine - refactor showDiffPage
InlineDifferenceEngine::isUserAllowedToSee | ( | ) |
Checks whether the current user has permission to view the old and current revisions.
InlineDifferenceEngine::showDiffPage | ( | $diffOnly = false | ) |
Render the inline difference between two revisions using InlineDiffEngine.
MWException | If the content is not an instance of TextContent and wgContentHandlerTextFallback was set to 'fail'. |
bool | $diffOnly |