abstract class QuantChart in Quant 7
QuantChart class used to provide chart-rendering plugins
Hierarchy
- class \QuantChart
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
Name![]() |
Modifiers | Type | Description | Overrides |
---|---|---|---|---|
QuantChart:: |
property | |||
QuantChart:: |
property | |||
QuantChart:: |
function | Provide additional admin settings to the form | 1 | |
QuantChart:: |
function | Submit the admin settings form | ||
QuantChart:: |
function | Validate the admin settings form | 1 | |
QuantChart:: |
abstract | function | Perform all operations to build data required to output a chart | 2 |
QuantChart:: |
abstract | function | Return the chart output in HTML format | 2 |
QuantChart:: |
function | Provide a list of Drupal variables handled by this plugin so they can be properly removed during module uninstall | 1 | |
QuantChart:: |
function |