Parsoid
A bidirectional parser between wikitext and HTML5
Loading...
Searching...
No Matches
Wikimedia\Parsoid\NodeData\DataBag Class Reference

Public Member Functions

 getPageBundle ()
 Return this document's pagebundle object.
 
 getObject (int $nodeId)
 Get the data object for the node with data-object-id 'nodeId'.
 
 stashObject (NodeData $data)
 Stash the data and return an id for retrieving it later.
 

Public Attributes

array $transclusionMetaTagDepthMap = []
 FIXME: Figure out a decent interface for updating these depths without needing to import the various util files.
 

Member Function Documentation

◆ getObject()

Wikimedia\Parsoid\NodeData\DataBag::getObject ( int $nodeId)

Get the data object for the node with data-object-id 'nodeId'.

This will return null if a non-existent nodeId is provided.

Parameters
int$nodeId
Returns
NodeData|null

◆ getPageBundle()

Wikimedia\Parsoid\NodeData\DataBag::getPageBundle ( )

Return this document's pagebundle object.

Returns
PageBundle

◆ stashObject()

Wikimedia\Parsoid\NodeData\DataBag::stashObject ( NodeData $data)

Stash the data and return an id for retrieving it later.

Parameters
NodeData$data
Returns
int

Member Data Documentation

◆ $transclusionMetaTagDepthMap

array Wikimedia\Parsoid\NodeData\DataBag::$transclusionMetaTagDepthMap = []

FIXME: Figure out a decent interface for updating these depths without needing to import the various util files.

Map of start/end meta tag tree depths keyed by about id


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