|
Parsoid
A bidirectional parser between wikitext and HTML5
|
Customized subclass of JsonCodec for serialization of rich attributes. More...
Inheritance diagram for Wikimedia\Parsoid\Utils\DOMDataCodec:
Collaboration diagram for Wikimedia\Parsoid\Utils\DOMDataCodec:Public Member Functions | |
| setOptions (array $options) | |
| setUniqueTID (string $tidBase, Element $template) | |
| popTID (string $tid) | |
| flatten ( $obj) | |
| Return a flattened string representation of this complex object. | |
| defaultValue ( $className) | |
| Return an appropriate default value for objects of the given type. | |
| __construct (Document $ownerDoc, array $options) | |
| Create a new DOMDataCodec. | |
Public Attributes | |
| Document | $ownerDoc |
| array | $options = [] |
Customized subclass of JsonCodec for serialization of rich attributes.
| Wikimedia\Parsoid\Utils\DOMDataCodec::__construct | ( | Document | $ownerDoc, |
| array | $options ) |
Create a new DOMDataCodec.
| Document | $ownerDoc | |
| array | $options |
Flatten the given DocumentFragment into a string.
| DocumentFragment | $df |
Return a default value for a new attribute of this type.
| Wikimedia\Parsoid\Utils\DOMDataCodec::defaultValue | ( | $className | ) |
Return an appropriate default value for objects of the given type.
@template T
| class-string<T> | $className |
| Wikimedia\Parsoid\Utils\DOMDataCodec::flatten | ( | $obj | ) |
Return a flattened string representation of this complex object.
| object | $obj |