MediaWiki master
|
MediaWiki service for getting rendered page content. More...
Public Member Functions | |
__construct (ParsoidParserFactory $parsoidParserFactory, ParserOutputAccess $parserOutputAccess, PageLookup $pageLookup, RevisionLookup $revisionLookup, SiteConfig $siteConfig, IContentHandlerFactory $contentHandlerFactory) | |
getCachedParserOutput (PageIdentity $page, ParserOptions $parserOpts, $revision=null, bool $lenientRevHandling=false) | |
getParserOutput (PageIdentity $page, ParserOptions $parserOpts, $revision=null, int $options=0, bool $lenientRevHandling=false) | |
parseUncacheable (PageIdentity $page, ParserOptions $parserOpts, $revision, bool $lenientRevHandling=false) | |
This is to be called only for parsing posted wikitext that is actually not part of any real revision. | |
MediaWiki service for getting rendered page content.
This is very similar to ParserOutputAccess and only exists as a separate class as an interim solution and should be removed soon.
It is different from ParserOutputAccess in two aspects:
Definition at line 53 of file ParsoidOutputAccess.php.
MediaWiki\Parser\Parsoid\ParsoidOutputAccess::__construct | ( | ParsoidParserFactory | $parsoidParserFactory, |
ParserOutputAccess | $parserOutputAccess, | ||
PageLookup | $pageLookup, | ||
RevisionLookup | $revisionLookup, | ||
SiteConfig | $siteConfig, | ||
IContentHandlerFactory | $contentHandlerFactory ) |
ParsoidParserFactory | $parsoidParserFactory | |
ParserOutputAccess | $parserOutputAccess | |
PageLookup | $pageLookup | |
RevisionLookup | $revisionLookup | |
SiteConfig | $siteConfig | |
IContentHandlerFactory | $contentHandlerFactory |
Definition at line 69 of file ParsoidOutputAccess.php.
MediaWiki\Parser\Parsoid\ParsoidOutputAccess::getCachedParserOutput | ( | PageIdentity | $page, |
ParserOptions | $parserOpts, | ||
$revision = null, | |||
bool | $lenientRevHandling = false ) |
PageIdentity | $page | |
ParserOptions | $parserOpts | |
RevisionRecord | int | null | $revision | |
bool | $lenientRevHandling |
Definition at line 131 of file ParsoidOutputAccess.php.
MediaWiki\Parser\Parsoid\ParsoidOutputAccess::getParserOutput | ( | PageIdentity | $page, |
ParserOptions | $parserOpts, | ||
$revision = null, | |||
int | $options = 0, | ||
bool | $lenientRevHandling = false ) |
PageIdentity | $page | |
ParserOptions | $parserOpts | |
RevisionRecord | int | null | $revision | |
int | $options | See the OPT_XXX constants |
bool | $lenientRevHandling |
Definition at line 95 of file ParsoidOutputAccess.php.
MediaWiki\Parser\Parsoid\ParsoidOutputAccess::parseUncacheable | ( | PageIdentity | $page, |
ParserOptions | $parserOpts, | ||
$revision, | |||
bool | $lenientRevHandling = false ) |
This is to be called only for parsing posted wikitext that is actually not part of any real revision.
PageIdentity | $page | |
ParserOptions | $parserOpts | |
RevisionRecord | int | null | $revision | |
bool | $lenientRevHandling |
Definition at line 156 of file ParsoidOutputAccess.php.