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

Information about the body of an extension tag. More...

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

Public Member Functions

 __construct (?string $extsrc=null, ?DocumentFragment $html=null, ?string $id=null)
 
 setHtml (ParsoidExtensionApi $extApi, DocumentFragment $df)
 Transitional helper method to set the html property as a DocumentFragment.
 
 getHtml (ParsoidExtensionApi $extApi)
 Transitional helper method to get the html property as a DocumentFragment.
 
 hasHtml ()
 
 __clone ()
 
 embeddedDocumentFragments ()
 
 toJsonArray (JsonCodecInterface $codec)
 

Static Public Member Functions

static new (array $values)
 Transitional helper method to initialize a new value appropriate for DataMw::$body.
 
static jsonClassHintFor (string $keyname)
 
static newFromJsonArray (JsonCodecInterface $codec, array $json)
 

Public Attributes

string $extsrc
 The original source string for this extension tag.
 
DocumentFragment $html
 Embedded HTML for the contents of this tag.
 
string $id
 Used by the Cite extension.
 

Detailed Description

Information about the body of an extension tag.

Member Function Documentation

◆ embeddedDocumentFragments()

Wikimedia\Parsoid\NodeData\DataMwBody::embeddedDocumentFragments ( )
Returns
\Iterator<DocumentFragment>

◆ getHtml()

Wikimedia\Parsoid\NodeData\DataMwBody::getHtml ( ParsoidExtensionApi $extApi)

Transitional helper method to get the html property as a DocumentFragment.

Deprecated

◆ new()

static Wikimedia\Parsoid\NodeData\DataMwBody::new ( array $values)
static

Transitional helper method to initialize a new value appropriate for DataMw::$body.

Deprecated

◆ setHtml()

Wikimedia\Parsoid\NodeData\DataMwBody::setHtml ( ParsoidExtensionApi $extApi,
DocumentFragment $df )

Transitional helper method to set the html property as a DocumentFragment.

Deprecated

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