You are here

public function FrxDataSource::xmlData in Forena Reports 7.3

Same name and namespace in other branches
  1. 7.4 FrxDataSource.inc \FrxDataSource::xmlData()

Implement static XML functioin

Parameters

$source XML Source data from block load:

$parm_data Parameter data:

File

./FrxDataSource.inc, line 408
Class that defines default methods for access control in an FrxDataSource

Class

FrxDataSource
@file Class that defines default methods for access control in an FrxDataSource

Code

public function xmlData($source, $parm_data = '') {
  $xml = '';
  try {
    $xmlData = $source;
    $xml = new SimpleXMLElement($xmlData);
  } catch (Exception $e) {
    $this
      ->error("Error processing xml\n", $e
      ->getMessage() . "\n" . $xmlData);
  }
  return $xml;
}