function chart_graphs_apis in Charts and Graphs 6
Return the list of graphing implementations available if no parameter is passed or add a new implementation to the static list.
@staticvar <array> $apis
Parameters
<ChartCanvas> $api_class:
Return value
<string>
2 calls to chart_graphs_apis()
- charts_graphs_init in ./
charts_graphs.module - Implementation of hook_init().
- chart_graphs_get_graph in ./
charts_graphs.module - Factory method that allows instantiating of a charting implementation class by implementation name.
File
- ./
charts_graphs.module, line 83
Code
function chart_graphs_apis($api_class = NULL) {
static $apis = array();
if (!empty($api_class)) {
$apis[$api_class->name] = $api_class;
}
else {
return $apis;
}
}