Difference view for Wikibase entities.
More...
Difference view for Wikibase entities.
- Copyright
- GPL-2.0-or-later
- Author
- Daniel Kinzler
-
Jeroen De Dauw < jeroe.nosp@m.nded.nosp@m.auw@g.nosp@m.mail.nosp@m..com >
◆ __construct()
Wikibase\Repo\Diff\EntityContentDiffView::__construct |
( |
|
$context = null , |
|
|
|
$old = 0 , |
|
|
|
$new = 0 , |
|
|
|
$rcid = 0 , |
|
|
|
$refreshCache = false , |
|
|
|
$unhide = false |
|
) |
| |
- See also
- DifferenceEngine::__construct
- Parameters
-
IContextSource | null | $context | |
int | $old | |
int | $new | |
int | $rcid | |
bool | $refreshCache | |
bool | $unhide | |
◆ generateContentDiffBody()
Wikibase\Repo\Diff\EntityContentDiffView::generateContentDiffBody |
( |
Content |
$old, |
|
|
Content |
$new |
|
) |
| |
- See also
- DifferenceEngine::generateContentDiffBody
- Parameters
-
- Exceptions
-
MWException | If the two content objects are neither EntityContent nor TextContent. |
- Returns
- string
◆ getDiffBodyCacheKeyParams()
Wikibase\Repo\Diff\EntityContentDiffView::getDiffBodyCacheKeyParams |
( |
| ) |
|
|
protected |
◆ getDiffLang()
Wikibase\Repo\Diff\EntityContentDiffView::getDiffLang |
( |
| ) |
|
◆ getParserOutput()
Wikibase\Repo\Diff\EntityContentDiffView::getParserOutput |
( |
WikiPage |
$page, |
|
|
RevisionRecord |
$rev |
|
) |
| |
|
protected |
- Parameters
-
WikiPage | $page | |
RevisionRecord | $rev | |
- Returns
- ParserOutput|bool False if the revision was not found
◆ getRevisionHeader()
Wikibase\Repo\Diff\EntityContentDiffView::getRevisionHeader |
( |
|
$rev, |
|
|
|
$complete = '' |
|
) |
| |
Get a header for a specified revision.
- Parameters
-
Revision | RevisionRecord | $rev | Pasing Revision is deprecated since 1.35 |
string | $complete | 'complete' to get the header wrapped depending the visibility of the revision and a link to edit the page. |
- Returns
- string HTML fragment
◆ $diffVisualizer
Wikibase\Repo\Diff\EntityContentDiffView::$diffVisualizer |
|
private |
The documentation for this class was generated from the following file: