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 $docId)
 Get the data object for the node with data-object-id 'docId'.
 
 stashObject (NodeData $data)
 Stash the data and return an id for retrieving it later.
 

Member Function Documentation

◆ getObject()

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

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

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

Parameters
int$docId
Returns
NodeData|null

◆ getPageBundle()

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

Return this document's pagebundle object.

Returns
stdClass

◆ stashObject()

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

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

Parameters
NodeData$data
Returns
int

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