MediaWiki master
MediaWiki\Edit\ParsoidOutputStash Interface Reference

Stash for Parsoid output and associated data as needed to perform selective serialization (aka "selser") of modified HTML. More...

Inherited by MediaWiki\Edit\SimpleParsoidOutputStash.

Public Member Functions

 get (ParsoidRenderID $renderId)
 Retrieve a SelserContext representing a rendering of a revision at a given point in time, along with information about the content the rendering was based on.
 
 set (ParsoidRenderID $renderId, SelserContext $selserContext)
 Stash a SelserContext representing a rendering of a revision at a given point in time, along with information about the content the rendering was based on.
 

Detailed Description

Stash for Parsoid output and associated data as needed to perform selective serialization (aka "selser") of modified HTML.

See also
SelserData
Access: internal
Since
1.39

Definition at line 16 of file ParsoidOutputStash.php.

Member Function Documentation

◆ get()

MediaWiki\Edit\ParsoidOutputStash::get ( ParsoidRenderID $renderId)

Retrieve a SelserContext representing a rendering of a revision at a given point in time, along with information about the content the rendering was based on.

If a SelserContext was stahed using the set() method not too long ago, it can be expected to be returned from this method.

Parameters
ParsoidRenderID$renderId
Returns
?SelserContext

Implemented in MediaWiki\Edit\SimpleParsoidOutputStash.

◆ set()

MediaWiki\Edit\ParsoidOutputStash::set ( ParsoidRenderID $renderId,
SelserContext $selserContext )

Stash a SelserContext representing a rendering of a revision at a given point in time, along with information about the content the rendering was based on.

A SelserContext stashed by calling this method can for some time be retrieved by calling the get() method.

Parameters
ParsoidRenderID$renderIdCombination of revision ID and revision's time ID
SelserContext$selserContext
Returns
bool True on success

Implemented in MediaWiki\Edit\SimpleParsoidOutputStash.


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