Parsoid
A bidirectional parser between wikitext and HTML5
|
PageConfig via MediaWiki's Action API. More...
Public Member Functions | |
__construct (?ApiHelper $api, array $opts) | |
getContentModel () | |
Get content model.
| |
hasLintableContentModel () | |
Whether the page has a lintable content model. | |
getTitle () | |
The page's title, as a string.
| |
getNs () | |
The page's namespace ID.
| |
getPageId () | |
The page's ID, if any.
| |
getPageLanguage () | |
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. | |
getVariant () | |
Get the page's language variant. | |
setVariant ( $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. | |
Static Public Member Functions | |
static | fromSettings (array $parsoidSettings, array $opts) |
PageConfig via MediaWiki's Action API.
Note this is intended for testing, not performance.
Wikimedia\Parsoid\Config\Api\PageConfig::__construct | ( | ?ApiHelper | $api, |
array | $opts ) |
?ApiHelper | $api | (only needed if $opts doesn't provide page info) |
array | $opts |
|
static |
array | $parsoidSettings | |
array | $opts |
Wikimedia\Parsoid\Config\Api\PageConfig::getContentModel | ( | ) |
Wikimedia\Parsoid\Config\Api\PageConfig::getNs | ( | ) |
Wikimedia\Parsoid\Config\Api\PageConfig::getPageId | ( | ) |
The page's ID, if any.
Reimplemented from Wikimedia\Parsoid\Config\PageConfig.
Wikimedia\Parsoid\Config\Api\PageConfig::getPageLanguage | ( | ) |
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.
Wikimedia\Parsoid\Config\Api\PageConfig::getTitle | ( | ) |
The page's title, as a string.
Reimplemented from Wikimedia\Parsoid\Config\PageConfig.
Wikimedia\Parsoid\Config\Api\PageConfig::hasLintableContentModel | ( | ) |
Whether the page has a lintable content model.
Reimplemented from Wikimedia\Parsoid\Config\PageConfig.