Parsoid
A bidirectional parser between wikitext and HTML5
Parsoid\Utils\DataBag Class Reference

Public Member Functions

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

Member Function Documentation

◆ getObject()

Parsoid\Utils\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
stdClass|null

◆ getPageBundle()

Parsoid\Utils\DataBag::getPageBundle ( )

Return this document's pagebundle object.

Returns
stdClass

◆ stashObject()

Parsoid\Utils\DataBag::stashObject ( stdClass  $data)

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

Parameters
stdClass$data
Returns
int

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