You are here

function forena_inner_xml in Forena Reports 7.4

Same name and namespace in other branches
  1. 6.2 forena.common.inc \forena_inner_xml()
  2. 6 forena.common.inc \forena_inner_xml()
  3. 7.5 forena.common.inc \forena_inner_xml()
  4. 7 forena.common.inc \forena_inner_xml()
  5. 7.2 forena.common.inc \forena_inner_xml()
  6. 7.3 forena.common.inc \forena_inner_xml()

Enter description here...

Parameters

simplexml $xml:

string $tag:

Return value

string

3 calls to forena_inner_xml()
FrxAjax::render in renderers/FrxAjax.inc
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 renderers/FrxCrosstab.inc
Generate default headers from Embedded xml.
FrxReport::setReport in ./FrxReport.inc
Sets the report.

File

./forena.common.inc, line 106
Common functions used throughout the project but loaded in this file to keep the module file lean.

Code

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