Parsoid
A bidirectional parser between wikitext and HTML5
|
Page-level configuration interface for Parsoid. More...
Public Member Functions | |
__construct () | |
Base constructor. | |
getContentModel () | |
Get content model. | |
getSuppressTOC () | |
Whether to suppress the Table of Contents for this page (a function of content model). | |
getLinkTarget () | |
The page's title, as a LinkTarget. | |
getNs () | |
The page's namespace ID. | |
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. | |
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. | |
Page-level configuration interface for Parsoid.
Wikimedia\Parsoid\Config\PageConfig::__construct | ( | ) |
Base constructor.
This constructor is public because it is used to create mock objects in our test suite.
|
abstract |
Get content model.
Reimplemented in Wikimedia\Parsoid\Config\Api\PageConfig, and Wikimedia\Parsoid\Mocks\MockPageConfig.
|
abstract |
The page's title, as a LinkTarget.
Reimplemented in Wikimedia\Parsoid\Config\Api\PageConfig, and Wikimedia\Parsoid\Mocks\MockPageConfig.
Wikimedia\Parsoid\Config\PageConfig::getNs | ( | ) |
|
abstract |
The page's ID, if any.
Reimplemented in Wikimedia\Parsoid\Config\Api\PageConfig, and Wikimedia\Parsoid\Mocks\MockPageConfig.
|
abstract |
The page's language code.
Reimplemented in Wikimedia\Parsoid\Config\Api\PageConfig, and Wikimedia\Parsoid\Mocks\MockPageConfig.
|
abstract |
The page's language direction.
Reimplemented in Wikimedia\Parsoid\Config\Api\PageConfig, and Wikimedia\Parsoid\Mocks\MockPageConfig.
Wikimedia\Parsoid\Config\PageConfig::getPageMainContent | ( | ) |
FIXME: Once we remove the hardcoded slot name here, the name of this method could be updated, if necessary.
Shortcut method to get page source
|
abstract |
The revision's parent ID, if any.
Reimplemented in Wikimedia\Parsoid\Config\Api\PageConfig, and Wikimedia\Parsoid\Mocks\MockPageConfig.
|
abstract |
The revision's content.
Reimplemented in Wikimedia\Parsoid\Config\Api\PageConfig, and Wikimedia\Parsoid\Mocks\MockPageConfig.
|
abstract |
The revision's ID, if any.
Reimplemented in Wikimedia\Parsoid\Config\Api\PageConfig, and Wikimedia\Parsoid\Mocks\MockPageConfig.
|
abstract |
The revision's SHA1 checksum, if any.
Reimplemented in Wikimedia\Parsoid\Config\Api\PageConfig, and Wikimedia\Parsoid\Mocks\MockPageConfig.
|
abstract |
The revision's length, if known.
Reimplemented in Wikimedia\Parsoid\Config\Api\PageConfig, and Wikimedia\Parsoid\Mocks\MockPageConfig.
|
abstract |
The revision's timestamp, if any.
Reimplemented in Wikimedia\Parsoid\Config\Api\PageConfig, and Wikimedia\Parsoid\Mocks\MockPageConfig.
|
abstract |
The revision's author's user name, if any.
Reimplemented in Wikimedia\Parsoid\Config\Api\PageConfig, and Wikimedia\Parsoid\Mocks\MockPageConfig.
|
abstract |
The revision's author's user ID, if any.
Reimplemented in Wikimedia\Parsoid\Config\Api\PageConfig, and Wikimedia\Parsoid\Mocks\MockPageConfig.
Wikimedia\Parsoid\Config\PageConfig::getSuppressTOC | ( | ) |
Whether to suppress the Table of Contents for this page (a function of content model).
Wikimedia\Parsoid\Config\PageConfig::getVariantBcp47 | ( | ) |
Get the page's language variant.
Wikimedia\Parsoid\Config\PageConfig::setVariantBcp47 | ( | Bcp47Code | $htmlVariant | ) |
Set the page's language variant.
(Records the fact that conversion has been done in the parser pipeline.)
Bcp47Code | $htmlVariant | a BCP-47 language code |