function chart_graphs_chart_id_generator in Charts and Graphs 6
Sequential generator of IDs, guaranteeing unique value per HTTP request.
@staticvar <int> $id
Return value
<int>
2 calls to chart_graphs_chart_id_generator()
- ChartCanvas::__construct in ./
charts_graphs.class.inc - Constructor function.
- ChartsBluff::get_chart in apis/
charts_bluff/ charts_bluff.class.inc - Function that renders data.
File
- ./
charts_graphs.module, line 122
Code
function chart_graphs_chart_id_generator() {
static $id = 0;
$id++;
return $id;
}