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
Namespace
Drupal\forena\DriverCode
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;
}