You are here

public function FrxBlockEditor::getBuilders in Forena Reports 7.4

Instantiate the builders if necessary

4 calls to FrxBlockEditor::getBuilders()
FrxBlockEditor::builderList in ./FrxBlockEditor.inc
FrxBlockEditor::configForm in ./FrxBlockEditor.inc
Use the classes configForm method to build the form.
FrxBlockEditor::configValidate in ./FrxBlockEditor.inc
Use the classes validate method to validate the block.
FrxBlockEditor::generate in ./FrxBlockEditor.inc
Use the classes generate method to generate the block.

File

./FrxBlockEditor.inc, line 236

Class

FrxBlockEditor

Code

public function getBuilders() {
  if (!$this->builders) {
    $this->builders = array();
    $builders = module_invoke_all('forena_query_builders');
    foreach ($builders as $builder) {
      if (isset($builder['file'])) {
        @(include_once $builder['file']);
      }
      if (class_exists($builder['class'])) {
        $b = new $builder['class']();
        $this->builders[$builder['class']] = $b;
      }
    }
  }
}