You are here

class FrxQueryBuilder in Forena Reports 7.4

Same name and namespace in other branches
  1. 7.5 builders/FrxQueryBuilder.inc \FrxQueryBuilder

@file FrxQueryBuilder.inc Base query builder class used for creating data blocks. Classes that extend this one can be used to create data blocks @author metzlerd

Hierarchy

Expanded class hierarchy of FrxQueryBuilder

2 string references to 'FrxQueryBuilder'
forena_query_editor in ./forena_query.inc
Basic SQL Editor form hook implementation
forena_query_forena_query_builders in ./forena_query.module

File

builders/FrxQueryBuilder.inc, line 9
FrxQueryBuilder.inc Base query builder class used for creating data blocks. Classes that extend this one can be used to create data blocks @author metzlerd

View source
class FrxQueryBuilder {

  // The supported plugins for this type
  public $supportedPlugins = array(
    'FrxDrupal',
    'FrxOracle',
    'FrxMSSQL',
    'FrxPDO',
    'FrxPostgres',
  );
  public $name = 'SQL Statement';
  public $type = 'sql';
  public function initBlock($block) {
  }
  public function scrapeConfig() {
    return $config();
  }
  public function configForm($config) {
    $form['file'] = array(
      '#type' => 'textarea',
      '#title' => t('Source'),
      '#default_value' => @$config['file'],
    );
    return $form;
  }

  /**
   * Returns a set of errors keyed by the form elements that
   * Can also be used to alter block configuration.
   * @param $config
   * @param $form_state
   */
  public function configValidate(&$config) {
  }
  public function generate($config) {
  }

}

Members

Namesort descending Modifiers Type Description Overrides
FrxQueryBuilder::$name public property
FrxQueryBuilder::$supportedPlugins public property
FrxQueryBuilder::$type public property
FrxQueryBuilder::configForm public function
FrxQueryBuilder::configValidate public function Returns a set of errors keyed by the form elements that Can also be used to alter block configuration.
FrxQueryBuilder::generate public function
FrxQueryBuilder::initBlock public function
FrxQueryBuilder::scrapeConfig public function