You are here

public function FrxDataSource::xmlData in Forena Reports 7.5

Implement static XML functioin

Parameters

$source XML Source data from block load:

$parm_data Parameter data:

File

src/Driver/FrxDataSource.php, line 367
Class that defines default methods for access control in an FrxDataSource

Class

FrxDataSource

Namespace

Drupal\forena\Driver

Code

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