You are here

public function FrxEditor::getCache in Forena Reports 7.4

File

./FrxEditor.inc, line 528
FrxEditor.inc Wrapper XML class for working with DOM object. It provides helper Enter description here ... @author metzlerd

Class

FrxEditor
@file FrxEditor.inc Wrapper XML class for working with DOM object. It provides helper Enter description here ... @author metzlerd

Code

public function getCache() {
  $dom = $this->dom;
  $this
    ->verifyHeaderElements(array(
    'cache',
  ));
  $opts = $dom
    ->getElementsByTagNameNS($this->xmlns, 'cache')
    ->item(0);
  $ret = array();

  // Simplexml is easier to work with
  $options = simplexml_import_dom($opts);
  foreach ($options
    ->attributes() as $key => $value) {
    $ret[(string) $key] = (string) $value;
  }
  return $ret;
}