You are here

function FrxAPI::innerXML in Forena Reports 8

Enter description here...

Parameters

\SimpleXMLElement $xml: XML to grab

string $tag: The tag name of the inner XML

Return value

string

6 calls to FrxAPI::innerXML()
FrxAjax::render in src/FrxPlugin/Renderer/FrxAjax.php
Default Render action, which simply does normal forena rendering. You can use renderDomNode at any time to generate the default forena rendering methods.
FrxCrosstab::defaultHeaders in src/FrxPlugin/Renderer/FrxCrosstab.php
Generate default headers from Embedded xml.
FrxParameterForm::render in src/FrxPlugin/Renderer/FrxParameterForm.php
Default Render action, which simply does normal forena rendering. You can use renderDomNode at any time to generate the default forena rendering methods.
FrxTemplate::render in src/FrxPlugin/Renderer/FrxTemplate.php
Default Render action, which simply does normal forena rendering. You can use renderDomNode at any time to generate the default forena rendering methods.
FrxTitle::render in src/FrxPlugin/Renderer/FrxTitle.php
Default Render action, which simply does normal forena rendering. You can use renderDomNode at any time to generate the default forena rendering methods.

... See full list

1 method overrides FrxAPI::innerXML()
TemplateBase::innerXML in src/FrxPlugin/Template/TemplateBase.php
Return the inside xml of the current node

File

src/FrxAPI.php, line 155
FrxAPI.incL General Forena Reporting Class

Class

FrxAPI
Implements FrxAPI Trait

Namespace

Drupal\forena

Code

function innerXML(\SimpleXMLElement $xml, $tag = '') {
  if (is_object($xml)) {
    if (!$tag) {
      $tag = $xml
        ->getName();
    }
    $xml_data = $xml
      ->asXML();
    $xml_data = preg_replace("/<\\/?" . $tag . "(.|\\s)*?>/", "", $xml_data);
  }
  return $xml_data;
}