Parsoid
A bidirectional parser between wikitext and HTML5
Loading...
Searching...
No Matches
Wikimedia\Parsoid\Wikitext\ContentModelHandler Class Reference
+ Inheritance diagram for Wikimedia\Parsoid\Wikitext\ContentModelHandler:
+ Collaboration diagram for Wikimedia\Parsoid\Wikitext\ContentModelHandler:

Public Member Functions

 __construct (Env $env)
 Sneak an environment in here since it's not exposed as part of the ParsoidExtensionAPI.
 
 toDOM (ParsoidExtensionAPI $extApi, ?SelectiveUpdateData $selectiveUpdateData=null)
 
Parameters
ParsoidExtensionAPI$extApi
?SelectiveUpdateData$selectiveUpdateData
Returns
Document the result document in "prepared and loaded" form

 
 fromDOM (ParsoidExtensionAPI $extApi, ?SelectiveUpdateData $selserData=null)
 
Parameters
ParsoidExtensionAPI$extApi
?SelectiveUpdateData$selectiveUpdateData
Returns
string

 

Constructor & Destructor Documentation

◆ __construct()

Wikimedia\Parsoid\Wikitext\ContentModelHandler::__construct ( Env $env)

Sneak an environment in here since it's not exposed as part of the ParsoidExtensionAPI.

Parameters
Env$env

Member Function Documentation

◆ fromDOM()

Wikimedia\Parsoid\Wikitext\ContentModelHandler::fromDOM ( ParsoidExtensionAPI $extApi,
?SelectiveUpdateData $selserData = null )

Parameters
ParsoidExtensionAPI$extApi
?SelectiveUpdateData$selectiveUpdateData
Returns
string

Reimplemented from Wikimedia\Parsoid\Core\ContentModelHandler.

◆ toDOM()

Wikimedia\Parsoid\Wikitext\ContentModelHandler::toDOM ( ParsoidExtensionAPI $extApi,
?SelectiveUpdateData $selectiveUpdateData = null )

Parameters
ParsoidExtensionAPI$extApi
?SelectiveUpdateData$selectiveUpdateData
Returns
Document the result document in "prepared and loaded" form

Reimplemented from Wikimedia\Parsoid\Core\ContentModelHandler.


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