You are here

abstract class QuantChart in Quant 7

QuantChart class used to provide chart-rendering plugins

Hierarchy

Expanded class hierarchy of QuantChart

File

plugins/QuantChart.inc, line 6

View source
abstract class QuantChart {
  var $quant = NULL;
  var $plugin = NULL;
  function __construct($quant, $plugin) {
    $this->quant = $quant;
    $this->plugin = $plugin;
  }

  /**
   * Perform all operations to build data required to output a chart
   */
  abstract function build();

  /**
   * Return the chart output in HTML format
   */
  abstract function render();

  /**
   * Provide a list of Drupal variables handled by this plugin so they
   * can be properly removed during module uninstall
   *
   * @return
   *   An array of variable names
   */
  function variables() {
    return array();
  }

  /**
   * Provide additional admin settings to the form
   */
  function adminSettings() {
    return NULL;
  }

  /**
   * Validate the admin settings form
   */
  function adminSettingsValidate(&$form, &$form_state) {
  }

  /**
   * Submit the admin settings form
   */
  function adminSettingsSubmit(&$form, &$form_state) {
  }

}

Members

Namesort descending Modifiers Type Description Overrides
QuantChart::$plugin property
QuantChart::$quant property
QuantChart::adminSettings function Provide additional admin settings to the form 1
QuantChart::adminSettingsSubmit function Submit the admin settings form
QuantChart::adminSettingsValidate function Validate the admin settings form 1
QuantChart::build abstract function Perform all operations to build data required to output a chart 2
QuantChart::render abstract function Return the chart output in HTML format 2
QuantChart::variables function Provide a list of Drupal variables handled by this plugin so they can be properly removed during module uninstall 1
QuantChart::__construct function