You are here

public function FrxBlockEditor::builderList in Forena Reports 7.4

File

./FrxBlockEditor.inc, line 250

Class

FrxBlockEditor

Code

public function builderList() {
  $this
    ->getBuilders();
  $r = Frx::RepoMan()
    ->repository($this->provider);
  $plugin = get_class($r);
  $list = array();
  foreach ($this->builders as $class => $b) {
    if (array_search($plugin, $b->supportedPlugins) !== FALSE && $b->name && $b->type == $this->block['type']) {
      $list[$class] = $b->name;
    }
  }
  asort($list);
  return $list;
}