MediaWiki service for getting Parsoid Output objects.
More...
|
| __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. More...
|
|
| getParsoidRenderID (ParserOutput $parserOutput) |
| NOTE: This needs to be ParserOutput returned by ->getParserOutput() in this class. More...
|
|
| supportsContentModel (string $model) |
|
MediaWiki service for getting Parsoid Output objects.
- Since
- 1.39
- Stability: unstable
Definition at line 56 of file ParsoidOutputAccess.php.
◆ __construct()
Parser\Parsoid\ParsoidOutputAccess::__construct |
( |
ServiceOptions |
$options, |
|
|
ParserCacheFactory |
$parserCacheFactory, |
|
|
RevisionLookup |
$revisionLookup, |
|
|
GlobalIdGenerator |
$globalIdGenerator, |
|
|
IBufferingStatsdDataFactory |
$stats, |
|
|
Parsoid |
$parsoid, |
|
|
SiteConfig |
$siteConfig, |
|
|
PageConfigFactory |
$parsoidPageConfigFactory |
|
) |
| |
◆ getCachedParserOutput()
Parser\Parsoid\ParsoidOutputAccess::getCachedParserOutput |
( |
PageRecord |
$page, |
|
|
ParserOptions |
$parserOpts, |
|
|
?RevisionRecord |
$revision, |
|
|
bool |
$isOld, |
|
|
string |
$statsKey |
|
) |
| |
|
protected |
◆ getParserOutput()
Parser\Parsoid\ParsoidOutputAccess::getParserOutput |
( |
PageRecord |
$page, |
|
|
ParserOptions |
$parserOpts, |
|
|
?RevisionRecord |
$revision = null , |
|
|
int |
$options = 0 |
|
) |
| |
- Parameters
-
PageRecord | $page | |
ParserOptions | $parserOpts | |
| ?RevisionRecord | $revision |
int | $options | See the OPT_XXX constants |
- Returns
- Status<ParserOutput>
- Exceptions
-
Definition at line 163 of file ParsoidOutputAccess.php.
◆ getParsoidPageBundle()
Parser\Parsoid\ParsoidOutputAccess::getParsoidPageBundle |
( |
ParserOutput |
$parserOutput | ) |
|
◆ getParsoidRenderID()
Parser\Parsoid\ParsoidOutputAccess::getParsoidRenderID |
( |
ParserOutput |
$parserOutput | ) |
|
◆ supportsContentModel()
Parser\Parsoid\ParsoidOutputAccess::supportsContentModel |
( |
string |
$model | ) |
|
◆ CONSTRUCTOR_OPTIONS
const Parser::Parsoid\ParsoidOutputAccess::CONSTRUCTOR_OPTIONS |
Initial value:= [
]
const ParsoidCacheConfig
Name constant for the ParsoidCacheConfig setting, for use with Config::get()
Definition at line 76 of file ParsoidOutputAccess.php.
The documentation for this class was generated from the following file: