MediaWiki master
MediaWiki\Edit\SelserContext Class Reference

Value object representing contextual information needed by Parsoid for selective serialization ("selser") of modified HTML. More...

Inherits JsonCodecable.

Collaboration diagram for MediaWiki\Edit\SelserContext:

Public Member Functions

 __construct (private HtmlPageBundle $pageBundle, private int $revId, private ?Content $content=null)
 
 getContent ()
 
 getPageBundle ()
 
 getRevisionID ()
 
 toJsonArray ()
 

Static Public Member Functions

static jsonClassHintFor (string $keyName)
 
static newFromJsonArray (array $json)
 

Detailed Description

Value object representing contextual information needed by Parsoid for selective serialization ("selser") of modified HTML.

See also
SelserData
Since
1.40

Definition at line 21 of file SelserContext.php.

Constructor & Destructor Documentation

◆ __construct()

MediaWiki\Edit\SelserContext::__construct ( private HtmlPageBundle $pageBundle,
private int $revId,
private ?Content $content = null )

Definition at line 24 of file SelserContext.php.

Member Function Documentation

◆ getContent()

MediaWiki\Edit\SelserContext::getContent ( )

Definition at line 45 of file SelserContext.php.

◆ getPageBundle()

MediaWiki\Edit\SelserContext::getPageBundle ( )

Definition at line 37 of file SelserContext.php.

◆ getRevisionID()

MediaWiki\Edit\SelserContext::getRevisionID ( )

Definition at line 41 of file SelserContext.php.

◆ jsonClassHintFor()

static MediaWiki\Edit\SelserContext::jsonClassHintFor ( string $keyName)
static

Definition at line 57 of file SelserContext.php.

◆ newFromJsonArray()

static MediaWiki\Edit\SelserContext::newFromJsonArray ( array $json)
static

Definition at line 64 of file SelserContext.php.

◆ toJsonArray()

MediaWiki\Edit\SelserContext::toJsonArray ( )

Definition at line 49 of file SelserContext.php.


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