You are here

public function FrxEditor::templateOptions in Forena Reports 7.4

Generate the list of possible templates.

2 calls to FrxEditor::templateOptions()
FrxEditor::blockLinks in ./FrxEditor.inc
FrxEditor::scrapeBlockConfig in ./FrxEditor.inc
Scrape Data block configuration This tries to introspect the frx:block configuration based on the child nodes in the report by calling the getConfig method on the block.

File

./FrxEditor.inc, line 1176
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 templateOptions() {
  $controls = Frx::Controls();
  $templates = array();
  foreach ($controls as $control) {
    if (method_exists($control, 'generate') && isset($control->templateName)) {
      $templates[get_class($control)] = $control->templateName;
    }
  }
  asort($templates);
  return $templates;
}