Parsoid
A bidirectional parser between wikitext and HTML5
|
Public Member Functions | |
__construct (SiteConfig $siteConfig, array $opts, ?PageContent $content) | |
Construct a mock environment object for use in tests. | |
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. | |
Wikimedia\Parsoid\Mocks\MockPageConfig::__construct | ( | SiteConfig | $siteConfig, |
array | $opts, | ||
?PageContent | $content ) |
Construct a mock environment object for use in tests.
SiteConfig | $siteConfig | |
array | $opts | |
?PageContent | $content |
Wikimedia\Parsoid\Mocks\MockPageConfig::getContentModel | ( | ) |
Wikimedia\Parsoid\Mocks\MockPageConfig::getLinkTarget | ( | ) |
The page's title, as a LinkTarget.
Reimplemented from Wikimedia\Parsoid\Config\PageConfig.
Wikimedia\Parsoid\Mocks\MockPageConfig::getPageId | ( | ) |
The page's ID, if any.
Reimplemented from Wikimedia\Parsoid\Config\PageConfig.
Wikimedia\Parsoid\Mocks\MockPageConfig::getPageLanguageBcp47 | ( | ) |
The page's language code.
Reimplemented from Wikimedia\Parsoid\Config\PageConfig.
Wikimedia\Parsoid\Mocks\MockPageConfig::getPageLanguageDir | ( | ) |
The page's language direction.
Reimplemented from Wikimedia\Parsoid\Config\PageConfig.
Wikimedia\Parsoid\Mocks\MockPageConfig::getParentRevisionId | ( | ) |
The revision's parent ID, if any.
Reimplemented from Wikimedia\Parsoid\Config\PageConfig.
Wikimedia\Parsoid\Mocks\MockPageConfig::getRevisionContent | ( | ) |
The revision's content.
Reimplemented from Wikimedia\Parsoid\Config\PageConfig.
Wikimedia\Parsoid\Mocks\MockPageConfig::getRevisionId | ( | ) |
Wikimedia\Parsoid\Mocks\MockPageConfig::getRevisionSha1 | ( | ) |
The revision's SHA1 checksum, if any.
Reimplemented from Wikimedia\Parsoid\Config\PageConfig.
Wikimedia\Parsoid\Mocks\MockPageConfig::getRevisionSize | ( | ) |
The revision's length, if known.
Reimplemented from Wikimedia\Parsoid\Config\PageConfig.
Wikimedia\Parsoid\Mocks\MockPageConfig::getRevisionTimestamp | ( | ) |
The revision's timestamp, if any.
Reimplemented from Wikimedia\Parsoid\Config\PageConfig.
Wikimedia\Parsoid\Mocks\MockPageConfig::getRevisionUser | ( | ) |
The revision's author's user name, if any.
Reimplemented from Wikimedia\Parsoid\Config\PageConfig.
Wikimedia\Parsoid\Mocks\MockPageConfig::getRevisionUserId | ( | ) |
The revision's author's user ID, if any.
Reimplemented from Wikimedia\Parsoid\Config\PageConfig.