function charts_graphs_chart_id_generator in Charts and Graphs 7.2
Same name and namespace in other branches
- 6.2 charts_graphs.module \charts_graphs_chart_id_generator()
- 7 charts_graphs.module \charts_graphs_chart_id_generator()
Sequential generator of IDs, guaranteeing unique value per HTTP request.
@staticvar <int> $id
Return value
<int>
1 call to charts_graphs_chart_id_generator()
- ChartsGraphsCanvas::__construct in ./
charts_graphs_canvas.class.inc - Constructor function.
File
- ./
charts_graphs.module, line 222
Code
function charts_graphs_chart_id_generator() {
static $id = 0;
$id++;
return $id;
}