Manual:ParserOutputAccess.php
Appearance
MediaWiki file: ParserOutputAccess.php | |
---|---|
Location: | includes/page/ |
Source code: | master • 1.43.0 • 1.42.4 • 1.39.11 |
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.