|
| parseHTML (string $html, bool $validateXMLNames=false) |
|
|
StatsdDataFactoryInterface | $metrics = null |
| A statistics aggregator.
|
|
- Stability: unstable
Definition at line 26 of file HTMLTransform.php.
◆ __construct()
MediaWiki\Parser\Parsoid\HTMLTransform::__construct |
( |
string | $modifiedHTML, |
|
|
PageConfig | $pageConfig, |
|
|
Parsoid | $parsoid, |
|
|
array | $parsoidSettings ) |
- Parameters
-
string | $modifiedHTML | |
PageConfig | $pageConfig | |
Parsoid | $parsoid | |
array | $parsoidSettings | |
Definition at line 70 of file HTMLTransform.php.
◆ getContentModel()
MediaWiki\Parser\Parsoid\HTMLTransform::getContentModel |
( |
| ) |
|
◆ getModifiedDocument()
MediaWiki\Parser\Parsoid\HTMLTransform::getModifiedDocument |
( |
| ) |
|
◆ getModifiedHtmlSize()
MediaWiki\Parser\Parsoid\HTMLTransform::getModifiedHtmlSize |
( |
| ) |
|
The size of the modified HTML in characters.
- Returns
- int
Definition at line 191 of file HTMLTransform.php.
◆ getOffsetType()
MediaWiki\Parser\Parsoid\HTMLTransform::getOffsetType |
( |
| ) |
|
◆ getOriginalBody()
MediaWiki\Parser\Parsoid\HTMLTransform::getOriginalBody |
( |
| ) |
|
NOTE: The return value of this method depends on setOriginalData() having been called first.
- Returns
- Element
- Exceptions
-
Definition at line 285 of file HTMLTransform.php.
◆ getOriginalHtml()
MediaWiki\Parser\Parsoid\HTMLTransform::getOriginalHtml |
( |
| ) |
|
Returns the original HTML, with any necessary processing applied.
- Todo
- Make this method redundant, nothing should operate on HTML strings.
- Returns
- string
Definition at line 243 of file HTMLTransform.php.
◆ getOriginalRevisionId()
MediaWiki\Parser\Parsoid\HTMLTransform::getOriginalRevisionId |
( |
| ) |
|
◆ getOriginalSchemaVersion()
MediaWiki\Parser\Parsoid\HTMLTransform::getOriginalSchemaVersion |
( |
| ) |
|
◆ getSchemaVersion()
MediaWiki\Parser\Parsoid\HTMLTransform::getSchemaVersion |
( |
| ) |
|
NOTE: The return value of this method depends on setOriginalData() having been called first.
- Returns
- string
Definition at line 331 of file HTMLTransform.php.
◆ hasOriginalDataParsoid()
MediaWiki\Parser\Parsoid\HTMLTransform::hasOriginalDataParsoid |
( |
| ) |
|
NOTE: The return value of this method depends on setOriginalData() having been called first.
- Returns
- bool
Definition at line 232 of file HTMLTransform.php.
◆ hasOriginalHtml()
MediaWiki\Parser\Parsoid\HTMLTransform::hasOriginalHtml |
( |
| ) |
|
NOTE: The return value of this method depends on setOriginalData() having been called first.
- Returns
- bool
Definition at line 222 of file HTMLTransform.php.
◆ htmlToWikitext()
MediaWiki\Parser\Parsoid\HTMLTransform::htmlToWikitext |
( |
| ) |
|
◆ parseHTML()
MediaWiki\Parser\Parsoid\HTMLTransform::parseHTML |
( |
string | $html, |
|
|
bool | $validateXMLNames = false ) |
|
protected |
- Parameters
-
string | $html | |
bool | $validateXMLNames | |
- Returns
- Document
- Exceptions
-
Definition at line 274 of file HTMLTransform.php.
◆ setMetrics()
MediaWiki\Parser\Parsoid\HTMLTransform::setMetrics |
( |
StatsdDataFactoryInterface | $metrics | ) |
|
◆ setModifiedDataMW()
MediaWiki\Parser\Parsoid\HTMLTransform::setModifiedDataMW |
( |
array | $modifiedDataMW | ) |
|
- Note
- Call this after all original data has been set!
- Parameters
-
Definition at line 127 of file HTMLTransform.php.
◆ setOptions()
MediaWiki\Parser\Parsoid\HTMLTransform::setOptions |
( |
array | $options | ) |
|
◆ setOriginalDataMW()
MediaWiki\Parser\Parsoid\HTMLTransform::setOriginalDataMW |
( |
array | $originalDataMW | ) |
|
◆ setOriginalDataParsoid()
MediaWiki\Parser\Parsoid\HTMLTransform::setOriginalDataParsoid |
( |
array | $originalDataParsoid | ) |
|
◆ setOriginalHtml()
MediaWiki\Parser\Parsoid\HTMLTransform::setOriginalHtml |
( |
string | $originalHtml | ) |
|
◆ setOriginalRevisionId()
MediaWiki\Parser\Parsoid\HTMLTransform::setOriginalRevisionId |
( |
int | $oldid | ) |
|
◆ setOriginalSchemaVersion()
MediaWiki\Parser\Parsoid\HTMLTransform::setOriginalSchemaVersion |
( |
string | $originalSchemaVeraion | ) |
|
◆ $metrics
StatsdDataFactoryInterface MediaWiki\Parser\Parsoid\HTMLTransform::$metrics = null |
|
protected |
The documentation for this class was generated from the following file: