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

Diff markers for a DOM node. More...

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

Public Member Functions

 isEmpty ()
 
 addDiffMarker (string $mark)
 Add the given mark to this set.
 
 hasDiffMarker (string $mark)
 Returns true if the given mark is present.
 
 hasOnlyDiffMarkers (string ... $marks)
 Returns true if no marks other than the given ones are present.
 
 flatten ()
 No flattened value.
 
 toJsonArray ()
 

Static Public Member Functions

static defaultValue ()
 Provide a constructor for a default value for objects of this type.
Returns
?self

 
static hint ()
 
static newFromJsonArray (array $json)
 

Detailed Description

Diff markers for a DOM node.

Managed by DOMDataUtils::get/setDataParsoidDiff and DiffUtils::get/setDiffMark.

Member Function Documentation

◆ defaultValue()

static Wikimedia\Parsoid\NodeData\DataParsoidDiff::defaultValue ( )
static

Provide a constructor for a default value for objects of this type.

Returns
?self

Implements Wikimedia\Parsoid\Utils\RichCodecable.

◆ flatten()

Wikimedia\Parsoid\NodeData\DataParsoidDiff::flatten ( )

No flattened value.

Implements Wikimedia\Parsoid\Utils\RichCodecable.

◆ hint()

static Wikimedia\Parsoid\NodeData\DataParsoidDiff::hint ( )
static
Returns
class-string<DataParsoidDiff>

Implements Wikimedia\Parsoid\Utils\RichCodecable.


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