Parsoid
A bidirectional parser between wikitext and HTML5
|
PageConfig via MediaWiki's Action API. More...
Public Member Functions | |
__construct (?ApiHelper $api, ISiteConfig $siteConfig, array $opts) | |
getContentModel () | |
Get content model.
| |
getLinkTarget () | |
The page's title, as a LinkTarget.
| |
getPageId () | |
The page's ID, if any.
| |
getPageLanguageBcp47 () | |
The page's language code.
| |
getPageLanguageDir () | |
The page's language direction.
| |
getRevisionId () | |
The revision's ID, if any.
| |
getParentRevisionId () | |
The revision's parent ID, if any.
| |
getRevisionTimestamp () | |
The revision's timestamp, if any.
| |
getRevisionUser () | |
The revision's author's user name, if any.
| |
getRevisionUserId () | |
The revision's author's user ID, if any.
| |
getRevisionSha1 () | |
The revision's SHA1 checksum, if any.
| |
getRevisionSize () | |
The revision's length, if known.
| |
getRevisionContent () | |
The revision's content.
| |
Public Member Functions inherited from Wikimedia\Parsoid\Config\PageConfig | |
__construct () | |
Base constructor. | |
getSuppressTOC () | |
Whether to suppress the Table of Contents for this page (a function of content model). | |
getNs () | |
The page's namespace ID. | |
getVariantBcp47 () | |
Get the page's language variant. | |
setVariantBcp47 (Bcp47Code $htmlVariant) | |
Set the page's language variant. | |
getPageMainContent () | |
FIXME: Once we remove the hardcoded slot name here, the name of this method could be updated, if necessary. | |
PageConfig via MediaWiki's Action API.
Note this is intended for testing, not performance.
Wikimedia\Parsoid\Config\Api\PageConfig::__construct | ( | ?ApiHelper | $api, |
ISiteConfig | $siteConfig, | ||
array | $opts ) |
?ApiHelper | $api | (only needed if $opts doesn't provide page info) |
ISiteConfig | $siteConfig | |
array | $opts |
Wikimedia\Parsoid\Config\Api\PageConfig::getContentModel | ( | ) |
Wikimedia\Parsoid\Config\Api\PageConfig::getLinkTarget | ( | ) |
The page's title, as a LinkTarget.
Reimplemented from Wikimedia\Parsoid\Config\PageConfig.
Wikimedia\Parsoid\Config\Api\PageConfig::getPageId | ( | ) |
The page's ID, if any.
Reimplemented from Wikimedia\Parsoid\Config\PageConfig.
Wikimedia\Parsoid\Config\Api\PageConfig::getPageLanguageBcp47 | ( | ) |
The page's language code.
Reimplemented from Wikimedia\Parsoid\Config\PageConfig.
Wikimedia\Parsoid\Config\Api\PageConfig::getPageLanguageDir | ( | ) |
The page's language direction.
Reimplemented from Wikimedia\Parsoid\Config\PageConfig.
Wikimedia\Parsoid\Config\Api\PageConfig::getParentRevisionId | ( | ) |
The revision's parent ID, if any.
Reimplemented from Wikimedia\Parsoid\Config\PageConfig.
Wikimedia\Parsoid\Config\Api\PageConfig::getRevisionContent | ( | ) |
The revision's content.
Reimplemented from Wikimedia\Parsoid\Config\PageConfig.
Wikimedia\Parsoid\Config\Api\PageConfig::getRevisionId | ( | ) |
Wikimedia\Parsoid\Config\Api\PageConfig::getRevisionSha1 | ( | ) |
The revision's SHA1 checksum, if any.
Reimplemented from Wikimedia\Parsoid\Config\PageConfig.
Wikimedia\Parsoid\Config\Api\PageConfig::getRevisionSize | ( | ) |
The revision's length, if known.
Reimplemented from Wikimedia\Parsoid\Config\PageConfig.
Wikimedia\Parsoid\Config\Api\PageConfig::getRevisionTimestamp | ( | ) |
The revision's timestamp, if any.
Reimplemented from Wikimedia\Parsoid\Config\PageConfig.
Wikimedia\Parsoid\Config\Api\PageConfig::getRevisionUser | ( | ) |
The revision's author's user name, if any.
Reimplemented from Wikimedia\Parsoid\Config\PageConfig.
Wikimedia\Parsoid\Config\Api\PageConfig::getRevisionUserId | ( | ) |
The revision's author's user ID, if any.
Reimplemented from Wikimedia\Parsoid\Config\PageConfig.