Parsoid
A bidirectional parser between wikitext and HTML5
Loading...
Searching...
No Matches
Wikimedia\Parsoid\NodeData\ParamInfo Class Reference
+ Inheritance diagram for Wikimedia\Parsoid\NodeData\ParamInfo:
+ Collaboration diagram for Wikimedia\Parsoid\NodeData\ParamInfo:

Public Member Functions

 __construct (string $key, ?KVSourceRange $srcOffsets=null)
 
 __clone ()
 
 toJsonArray ()
 Serialize for data-parsoid.pi.
 

Static Public Member Functions

static newFromJsonArray (array $data)
 Create an object from unserialized data-parsoid.pi.
 

Public Attributes

string $k
 The parameter key.
 
string $keyWt = null
 The key source wikitext, if different from $k.
 
string $valueWt = null
 The parameter value source wikitext.
 
KVSourceRange $srcOffsets = null
 
bool $named = false
 
array $spc = null
 
string $html = null
 

Member Function Documentation

◆ newFromJsonArray()

static Wikimedia\Parsoid\NodeData\ParamInfo::newFromJsonArray ( array $data)
static

Create an object from unserialized data-parsoid.pi.

Parameters
array$data
Returns
self

◆ toJsonArray()

Wikimedia\Parsoid\NodeData\ParamInfo::toJsonArray ( )

Serialize for data-parsoid.pi.

The rest of the data is temporary, it is not needed across requests.

Returns
array

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