MediaWiki REL1_37
|
Helper for getting output of a given wikitext page rendered by parsoid. More...
Public Member Functions | |
__construct (ParserCache $parserCache, RevisionOutputCache $revisionOutputCache, GlobalIdGenerator $globalIdGenerator) | |
getETag () | |
Returns an ETag uniquely identifying the HTML output. | |
getHtml () | |
getLastModified () | |
Returns the time at which the HTML was rendered. | |
init (PageRecord $page, ?RevisionRecord $revision=null) | |
Private Member Functions | |
assertParsoidInstalled () | |
Assert that Parsoid services are available. | |
createPageConfig () | |
createParsoid () | |
parse () | |
Private Attributes | |
GlobalIdGenerator | $globalIdGenerator |
PageRecord null | $page = null |
ParserCache | $parserCache |
Parsoid null | $parsoid = null |
RevisionRecord null | $revision = null |
RevisionOutputCache | $revisionOutputCache |
const | RENDER_ID_KEY = 'parsoid-render-id' |
Helper for getting output of a given wikitext page rendered by parsoid.
Definition at line 48 of file ParsoidHTMLHelper.php.
MediaWiki\Rest\Handler\ParsoidHTMLHelper::__construct | ( | ParserCache | $parserCache, |
RevisionOutputCache | $revisionOutputCache, | ||
GlobalIdGenerator | $globalIdGenerator | ||
) |
ParserCache | $parserCache | |
RevisionOutputCache | $revisionOutputCache | |
GlobalIdGenerator | $globalIdGenerator |
Definition at line 75 of file ParsoidHTMLHelper.php.
References MediaWiki\Rest\Handler\ParsoidHTMLHelper\$globalIdGenerator, MediaWiki\Rest\Handler\ParsoidHTMLHelper\$parserCache, and MediaWiki\Rest\Handler\ParsoidHTMLHelper\$revisionOutputCache.
|
private |
Assert that Parsoid services are available.
TODO: once parsoid glue services are in core, this will become a no-op and will be removed. See T265518
LocalizedHttpException |
Definition at line 130 of file ParsoidHTMLHelper.php.
References MediaWiki\MediaWikiServices\getInstance().
|
private |
LocalizedHttpException |
Definition at line 169 of file ParsoidHTMLHelper.php.
|
private |
LocalizedHttpException |
Definition at line 148 of file ParsoidHTMLHelper.php.
References MediaWiki\MediaWikiServices\getInstance().
MediaWiki\Rest\Handler\ParsoidHTMLHelper::getETag | ( | ) |
Returns an ETag uniquely identifying the HTML output.
Definition at line 229 of file ParsoidHTMLHelper.php.
MediaWiki\Rest\Handler\ParsoidHTMLHelper::getHtml | ( | ) |
LocalizedHttpException |
Definition at line 189 of file ParsoidHTMLHelper.php.
MediaWiki\Rest\Handler\ParsoidHTMLHelper::getLastModified | ( | ) |
Returns the time at which the HTML was rendered.
Definition at line 244 of file ParsoidHTMLHelper.php.
MediaWiki\Rest\Handler\ParsoidHTMLHelper::init | ( | PageRecord | $page, |
?RevisionRecord | $revision = null |
||
) |
PageRecord | $page | |
RevisionRecord | null | $revision |
Definition at line 89 of file ParsoidHTMLHelper.php.
References MediaWiki\Rest\Handler\ParsoidHTMLHelper\$page, and MediaWiki\Rest\Handler\ParsoidHTMLHelper\$revision.
|
private |
LocalizedHttpException |
Definition at line 98 of file ParsoidHTMLHelper.php.
|
private |
Definition at line 59 of file ParsoidHTMLHelper.php.
Referenced by MediaWiki\Rest\Handler\ParsoidHTMLHelper\__construct().
|
private |
Definition at line 62 of file ParsoidHTMLHelper.php.
Referenced by MediaWiki\Rest\Handler\ParsoidHTMLHelper\init().
|
private |
Definition at line 53 of file ParsoidHTMLHelper.php.
Referenced by MediaWiki\Rest\Handler\ParsoidHTMLHelper\__construct().
|
private |
Definition at line 65 of file ParsoidHTMLHelper.php.
|
private |
Definition at line 68 of file ParsoidHTMLHelper.php.
Referenced by MediaWiki\Rest\Handler\ParsoidHTMLHelper\init().
|
private |
Definition at line 56 of file ParsoidHTMLHelper.php.
Referenced by MediaWiki\Rest\Handler\ParsoidHTMLHelper\__construct().
|
private |
Definition at line 50 of file ParsoidHTMLHelper.php.