You are here

public function FrxBlockEditor::generate in Forena Reports 7.4

Use the classes generate method to generate the block.

Parameters

$builder:

$config:

Return value

multitype:

File

./FrxBlockEditor.inc, line 288

Class

FrxBlockEditor

Code

public function generate($builder, &$config) {
  $this
    ->getBuilders();
  $form = array();
  if (isset($this->builders[$builder])) {
    $b = $this->builders[$builder];
    if (method_exists($b, 'generate')) {
      $form = $b
        ->generate($config);
    }
  }
  return $form;
}