PORT-FIXME: This is just a placeholder for data that was previously passed to entrypoint in JavaScript.
More...
|
| __construct (string $html, ?array $parsoid=null, ?array $mw=null, ?string $version=null, ?array $headers=null, ?string $contentmodel=null) |
|
| toHtml () |
|
| validate (string $contentVersion, ?string &$errorMessage=null) |
| Check if this pagebundle is valid.
|
|
| responseData () |
|
|
| $html |
|
| $parsoid |
|
| $mw |
|
| $version |
|
| $headers |
|
| $contentmodel |
|
PORT-FIXME: This is just a placeholder for data that was previously passed to entrypoint in JavaScript.
Who will construct these objects and whether this is the correct interface is yet to be determined.
◆ __construct()
Wikimedia\Parsoid\Core\PageBundle::__construct |
( |
string | $html, |
|
|
?array | $parsoid = null, |
|
|
?array | $mw = null, |
|
|
?string | $version = null, |
|
|
?array | $headers = null, |
|
|
?string | $contentmodel = null ) |
- Parameters
-
string | $html | |
?array | $parsoid | |
?array | $mw | |
?string | $version | |
?array | $headers | |
?string | $contentmodel | |
◆ apply()
Applies the data-*
attributes JSON structure to the document.
Leaves id
attributes behind – they are used by citation code to extract <ref>
body from the DOM.
- Parameters
-
Document | $doc | doc |
PageBundle | $pb | page bundle |
◆ responseData()
Wikimedia\Parsoid\Core\PageBundle::responseData |
( |
| ) |
|
◆ validate()
Wikimedia\Parsoid\Core\PageBundle::validate |
( |
string | $contentVersion, |
|
|
?string & | $errorMessage = null ) |
Check if this pagebundle is valid.
- Parameters
-
string | $contentVersion | Document content version to validate against. |
?string | &$errorMessage | Error message will be returned here. |
- Returns
- bool
The documentation for this class was generated from the following file: