Parsoid
A bidirectional parser between wikitext and HTML5
Parsoid\PageBundle Class Reference

PORT-FIXME: This is just a placeholder for data that was previously passed to entrypoint in JavaScript. More...

Public Member Functions

 __construct (string $html, array $parsoid=null, array $mw=null, string $version=null)
 
 validate (string $contentVersion, string &$errorMessage=null)
 Check if this pagebundle is valid. More...
 
 responseData ()
 

Public Attributes

 $html
 
 $parsoid
 
 $mw
 
 $version
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ __construct()

Parsoid\PageBundle::__construct ( string  $html,
array  $parsoid = null,
array  $mw = null,
string  $version = null 
)
Parameters
string$html
array | null$parsoid
array | null$mw
string | null$version

Member Function Documentation

◆ responseData()

Parsoid\PageBundle::responseData ( )
Returns
array

◆ validate()

Parsoid\PageBundle::validate ( string  $contentVersion,
string &  $errorMessage = null 
)

Check if this pagebundle is valid.

Parameters
string$contentVersionDocument content version to validate against.
string | null&$errorMessageError message will be returned here.
Returns
bool

The documentation for this class was generated from the following file: