You are here

public function FrxConfigData::sources in Forena Reports 7.3

Return XML List of defined repositories.

File

repos/drupal/FrxConfigData.inc, line 13
Returns configuration data as XML for reporting. @author metzlerd

Class

FrxConfigData
@file Returns configuration data as XML for reporting. @author metzlerd

Code

public function sources() {
  $data = Frx::RepoMan()->repositories;
  $node = new SimpleXMLElement('<repos/>');
  foreach ($data as $key => $config) {
    $row = $node
      ->addChild('row');
    $row->name = $key;
    $row->title = @$config['title'];
    $row->path = @$config['path'];
    $row->access_callback = @$config['access callback'];
  }
  return $node;
}