PHP Class eZ\Publish\Core\FieldType\RichText\Converter\Render\Template

Inheritance: extends eZ\Publish\Core\FieldType\RichText\Converter\Render, implements eZ\Publish\Core\FieldType\RichText\Converter
Datei anzeigen Open project: ezsystems/ezpublish-kernel

Public Methods

Method Description
convert ( DOMDocument $document ) : DOMDocument Injects rendered payloads into template tag elements.

Protected Methods

Method Description
getNodeDepth ( DomNode $node ) : integer Returns depth of given $node in a DOMDocument.
isWrapped ( DomNode $node ) : boolean Returns if the given $node is wrapped inside another template node.
processTag ( DOMDocument $document, DOMElement $tag ) Processes given template $tag in a given $document.
saveNodeXML ( DOMNode $node ) : string Returns XML fragment string for given $node.

Method Details

convert() public method

Injects rendered payloads into template tag elements.
public convert ( DOMDocument $document ) : DOMDocument
$document DOMDocument
return DOMDocument

getNodeDepth() protected method

Returns depth of given $node in a DOMDocument.
protected getNodeDepth ( DomNode $node ) : integer
$node DomNode
return integer

isWrapped() protected method

Returns if the given $node is wrapped inside another template node.
protected isWrapped ( DomNode $node ) : boolean
$node DomNode
return boolean

processTag() protected method

Processes given template $tag in a given $document.
protected processTag ( DOMDocument $document, DOMElement $tag )
$document DOMDocument
$tag DOMElement

saveNodeXML() protected method

Returns XML fragment string for given $node.
protected saveNodeXML ( DOMNode $node ) : string
$node DOMNode
return string