public function RendererBase::extractSource in Forena Reports 7.5
Get the textual representations of html for the configuration engine.
1 call to RendererBase::extractSource()
- RendererBase::extractXPath in src/
Renderer/ RendererBase.php - Extracts the inner html of all nodes that match a particular xpath expression.
File
- src/
Renderer/ RendererBase.php, line 911 - FrxRenderer.php Base class for Frx custom Renderer @author davidmetzler
Class
Namespace
Drupal\forena\RendererCode
public function extractSource(DOMNode $node) {
$content = '';
switch ($node->nodeType) {
case XML_ELEMENT_NODE:
$content = $this->frxReport->dom
->saveXML($node);
break;
case XML_TEXT_NODE:
case XML_ENTITY_REF_NODE:
case XML_ENTITY_NODE:
case XML_ATTRIBUTE_NODE:
$content = $child->textContent;
break;
case XML_COMMENT_NODE:
$content = '<!--' . $node->data . '-->';
break;
}
return $content;
}