Manual:ParserOutputAccess.php
Appearance
| MediaWiki file: ParserOutputAccess.php | |
|---|---|
| Location: | includes/page/ (includes/Page/ in 1.46 or later) |
| Source code: | master • 1.44.2 • 1.43.5 • 1.39.15 |
| Classes: | MediaWiki\Page\ParserOutputAccess |
A service for getting the ParserOutput, i.e. the rendered output of a given wiki page. It is a high-level service, encapsulating concerns like caching and stampede protection via PoolCounter. Introduced in MW 1.36.
This class is NOT ready for use by extensions. Extensions should use WikiPage::getParserOutput() until this class has settled down.
Instantiation
[edit]MediaWikiServices::getInstance()->getParserOutputAccess()
Public methods
[edit]- getCachedParserOutput() - return the rendered output for the given page if it is present in the cache.
- getParserOutput() - returns the rendered output for the given page, with caching and concurrency control applied.