|
MediaWiki REL1_39
|
Service for getting rendered output of a given page. More...
Public Member Functions | |
| __construct (ParserCache $primaryCache, RevisionOutputCache $secondaryCache, RevisionLookup $revisionLookup, RevisionRenderer $revisionRenderer, IBufferingStatsdDataFactory $statsDataFactory, ILBFactory $lbFactory, LoggerSpi $loggerSpi, WikiPageFactory $wikiPageFactory, TitleFormatter $titleFormatter) | |
| getCachedParserOutput (PageRecord $page, ParserOptions $parserOptions, ?RevisionRecord $revision=null, int $options=0) | |
| Returns the rendered output for the given page if it is present in the cache. | |
| getParserOutput (PageRecord $page, ParserOptions $parserOptions, ?RevisionRecord $revision=null, int $options=0) | |
| Returns the rendered output for the given page. | |
Service for getting rendered output of a given page.
This is a high level service, encapsulating concerns like caching and stampede protection via PoolCounter.
Definition at line 50 of file ParserOutputAccess.php.
| MediaWiki\Page\ParserOutputAccess::__construct | ( | ParserCache | $primaryCache, |
| RevisionOutputCache | $secondaryCache, | ||
| RevisionLookup | $revisionLookup, | ||
| RevisionRenderer | $revisionRenderer, | ||
| IBufferingStatsdDataFactory | $statsDataFactory, | ||
| ILBFactory | $lbFactory, | ||
| LoggerSpi | $loggerSpi, | ||
| WikiPageFactory | $wikiPageFactory, | ||
| TitleFormatter | $titleFormatter ) |
| ParserCache | $primaryCache | |
| RevisionOutputCache | $secondaryCache | |
| RevisionLookup | $revisionLookup | |
| RevisionRenderer | $revisionRenderer | |
| IBufferingStatsdDataFactory | $statsDataFactory | |
| ILBFactory | $lbFactory | |
| LoggerSpi | $loggerSpi | |
| WikiPageFactory | $wikiPageFactory | |
| TitleFormatter | $titleFormatter |
Definition at line 134 of file ParserOutputAccess.php.
| MediaWiki\Page\ParserOutputAccess::getCachedParserOutput | ( | PageRecord | $page, |
| ParserOptions | $parserOptions, | ||
| ?RevisionRecord | $revision = null, | ||
| int | $options = 0 ) |
Returns the rendered output for the given page if it is present in the cache.
| PageRecord | $page | |
| ParserOptions | $parserOptions | |
| RevisionRecord | null | $revision | |
| int | $options | Bitfield using the OPT_XXX constants |
Definition at line 205 of file ParserOutputAccess.php.
| MediaWiki\Page\ParserOutputAccess::getParserOutput | ( | PageRecord | $page, |
| ParserOptions | $parserOptions, | ||
| ?RevisionRecord | $revision = null, | ||
| int | $options = 0 ) |
Returns the rendered output for the given page.
Caching and concurrency control is applied.
| PageRecord | $page | |
| ParserOptions | $parserOptions | |
| RevisionRecord | null | $revision | |
| int | $options | Bitfield using the OPT_XXX constants |
Definition at line 261 of file ParserOutputAccess.php.