Parsoid
A bidirectional parser between wikitext and HTML5
Loading...
Searching...
No Matches
Wikimedia\Parsoid\NodeData\DataMwAttrib Class Reference

Rich attribute data for a DOM Element. More...

+ Inheritance diagram for Wikimedia\Parsoid\NodeData\DataMwAttrib:
+ Collaboration diagram for Wikimedia\Parsoid\NodeData\DataMwAttrib:

Public Member Functions

 __construct ( $key, $value)
 
 toJsonArray ()
 

Static Public Member Functions

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

Public Attributes

 $key
 
 $value
 

Detailed Description

Rich attribute data for a DOM Element.

Both the key and the value can be strings or more complex values.

Constructor & Destructor Documentation

◆ __construct()

Wikimedia\Parsoid\NodeData\DataMwAttrib::__construct ( $key,
$value )
Parameters
array{txt?:string,html?:string}|string$key Attribute name
array | string$valueAttribute value

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