Parsoid
A bidirectional parser between wikitext and HTML5
|
DataAccess via MediaWiki's Action API. More...
Public Member Functions | |||||||
__construct (ApiHelper $api, ISiteConfig $siteConfig, array $opts) | |||||||
getPageInfo ( $pageConfigOrTitle, array $titles) | |||||||
Return target data for formatting links.Replaces Batcher.getPageProps()
| |||||||
getFileInfo (PageConfig $pageConfig, array $files) | |||||||
parseWikitext (PageConfig $pageConfig, ContentMetadataCollector $metadata, string $wikitext) | |||||||
preprocessWikitext (PageConfig $pageConfig, ContentMetadataCollector $metadata, string $wikitext) | |||||||
fetchTemplateSource (PageConfig $pageConfig, LinkTarget $title) | |||||||
fetchTemplateData (PageConfig $pageConfig, LinkTarget $title) | |||||||
logLinterData (PageConfig $pageConfig, array $lints) | |||||||
addTrackingCategory (PageConfig $pageConfig, ContentMetadataCollector $metadata, string $key) | |||||||
Public Member Functions inherited from Wikimedia\Parsoid\Config\DataAccess | |||||||
__construct () | |||||||
Base constructor. | |||||||
getFileInfo (PageConfig $pageConfig, array $files) | |||||||
Return information about files (images) | |||||||
parseWikitext (PageConfig $pageConfig, ContentMetadataCollector $metadata, string $wikitext) | |||||||
Perform a parse on wikitext. | |||||||
preprocessWikitext (PageConfig $pageConfig, ContentMetadataCollector $metadata, string $wikitext) | |||||||
Preprocess wikitext. | |||||||
fetchTemplateSource (PageConfig $pageConfig, LinkTarget $title) | |||||||
Fetch latest revision of article/template content for transclusion. | |||||||
fetchTemplateData (PageConfig $pageConfig, LinkTarget $title) | |||||||
Fetch templatedata for a title. | |||||||
logLinterData (PageConfig $pageConfig, array $lints) | |||||||
Log linter data. | |||||||
addTrackingCategory (PageConfig $pageConfig, ContentMetadataCollector $metadata, string $key) | |||||||
Add a tracking category with the given key to the metadata for the page. | |||||||
DataAccess via MediaWiki's Action API.
Note this is intended for testing, not performance.
Wikimedia\Parsoid\Config\Api\DataAccess::__construct | ( | ApiHelper | $api, |
ISiteConfig | $siteConfig, | ||
array | $opts ) |
ApiHelper | $api | |
ISiteConfig | $siteConfig | |
array | $opts |
Wikimedia\Parsoid\Config\Api\DataAccess::getPageInfo | ( | $pageConfigOrTitle, | |
array | $titles ) |
Return target data for formatting links.Replaces Batcher.getPageProps()
PageConfig | LinkTarget | $pageConfigOrTitle | Either a PageConfig or else just the context title from the PageConfig (as a LinkTarget) |
string[] | $titles |
Reimplemented from Wikimedia\Parsoid\Config\DataAccess.