MediaWiki REL1_39
|
MediaWiki service for getting Parsoid Output objects. More...
Public Member Functions | |
__construct (ServiceOptions $options, ParserCacheFactory $parserCacheFactory, RevisionLookup $revisionLookup, GlobalIdGenerator $globalIdGenerator, IBufferingStatsdDataFactory $stats, Parsoid $parsoid, SiteConfig $siteConfig, PageConfigFactory $parsoidPageConfigFactory) | |
getParserOutput (PageRecord $page, ParserOptions $parserOpts, ?RevisionRecord $revision=null, int $options=0) | |
getParsoidPageBundle (ParserOutput $parserOutput) | |
Returns a Parsoid PageBundle equivalent to the given ParserOutput. | |
getParsoidRenderID (ParserOutput $parserOutput) | |
NOTE: This needs to be ParserOutput returned by ->getParserOutput() in this class. | |
parse (PageRecord $page, ParserOptions $parserOpts, ?RevisionRecord $revision) | |
supportsContentModel (string $model) | |
Public Attributes | |
const | CONSTRUCTOR_OPTIONS |
Protected Member Functions | |
getCachedParserOutput (PageRecord $page, ParserOptions $parserOpts, ?RevisionRecord $revision, bool $isOld, string $statsKey) | |
MediaWiki service for getting Parsoid Output objects.
Definition at line 57 of file ParsoidOutputAccess.php.
MediaWiki\Parser\Parsoid\ParsoidOutputAccess::__construct | ( | ServiceOptions | $options, |
ParserCacheFactory | $parserCacheFactory, | ||
RevisionLookup | $revisionLookup, | ||
GlobalIdGenerator | $globalIdGenerator, | ||
IBufferingStatsdDataFactory | $stats, | ||
Parsoid | $parsoid, | ||
SiteConfig | $siteConfig, | ||
PageConfigFactory | $parsoidPageConfigFactory ) |
ServiceOptions | $options | |
ParserCacheFactory | $parserCacheFactory | |
RevisionLookup | $revisionLookup | |
GlobalIdGenerator | $globalIdGenerator | |
IBufferingStatsdDataFactory | $stats | |
Parsoid | $parsoid | |
SiteConfig | $siteConfig | |
PageConfigFactory | $parsoidPageConfigFactory |
Definition at line 119 of file ParsoidOutputAccess.php.
References MediaWiki\Config\ServiceOptions\assertRequiredOptions(), MediaWiki\Config\ServiceOptions\get(), MediaWiki\Parser\ParserCacheFactory\getParserCache(), MediaWiki\Parser\ParserCacheFactory\getRevisionOutputCache(), and MediaWiki\MainConfigNames\ParsoidCacheConfig.
|
protected |
PageRecord | $page | |
ParserOptions | $parserOpts | |
RevisionRecord | null | $revision | |
bool | $isOld | |
string | $statsKey |
Definition at line 340 of file ParsoidOutputAccess.php.
MediaWiki\Parser\Parsoid\ParsoidOutputAccess::getParserOutput | ( | PageRecord | $page, |
ParserOptions | $parserOpts, | ||
?RevisionRecord | $revision = null, | ||
int | $options = 0 ) |
PageRecord | $page | |
ParserOptions | $parserOpts | |
?RevisionRecord | $revision | |
int | $options | See the OPT_XXX constants |
Definition at line 163 of file ParsoidOutputAccess.php.
MediaWiki\Parser\Parsoid\ParsoidOutputAccess::getParsoidPageBundle | ( | ParserOutput | $parserOutput | ) |
Returns a Parsoid PageBundle equivalent to the given ParserOutput.
ParserOutput | $parserOutput |
Definition at line 322 of file ParsoidOutputAccess.php.
MediaWiki\Parser\Parsoid\ParsoidOutputAccess::getParsoidRenderID | ( | ParserOutput | $parserOutput | ) |
NOTE: This needs to be ParserOutput returned by ->getParserOutput() in this class.
ParserOutput | $parserOutput |
Definition at line 304 of file ParsoidOutputAccess.php.
MediaWiki\Parser\Parsoid\ParsoidOutputAccess::parse | ( | PageRecord | $page, |
ParserOptions | $parserOpts, | ||
?RevisionRecord | $revision ) |
PageRecord | $page | |
ParserOptions | $parserOpts | |
RevisionRecord | null | $revision |
Definition at line 378 of file ParsoidOutputAccess.php.
MediaWiki\Parser\Parsoid\ParsoidOutputAccess::supportsContentModel | ( | string | $model | ) |
const MediaWiki\Parser\Parsoid\ParsoidOutputAccess::CONSTRUCTOR_OPTIONS |
Definition at line 77 of file ParsoidOutputAccess.php.