You are here

public function FrxConfigData::permissions in Forena Reports 7.3

File

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

Class

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

Code

public function permissions() {
  $data = module_invoke_all('permissions');
  $node = new SimpleXMLElement('<permissions/>');
  foreach ($data as $key => $row) {
    $row = $node
      ->addChild('row');
    $row->name = $key;
    $row->permission = $key;
    $row->title = $row['title'];
    $row->description = @$row['description'];
  }
  return $node;
}