function ChartsGraphsFlashCanvas::get_xml_file_from_array in Charts and Graphs 6.2
Same name and namespace in other branches
- 7 charts_graphs_flash_canvas.class.inc \ChartsGraphsFlashCanvas::get_xml_file_from_array()
1 call to ChartsGraphsFlashCanvas::get_xml_file_from_array()
- ChartsGraphsAmcharts::get_chart in apis/
charts_graphs_amcharts/ charts_graphs_amcharts.class.inc - Function that renders data.
File
- ./
charts_graphs_flash_canvas.class.inc, line 70 - abstract class ChartsGraphsFlashCanvas.
Class
- ChartsGraphsFlashCanvas
- Abstract class to be derived for Flash based charting libraries.
Code
function get_xml_file_from_array($array) {
$dom = new DOMDocument('1.0', 'utf-8');
$dom->formatOutput = TRUE;
// var_dump($array);
foreach ($array as $element) {
$this
->add_dom_element_from_array($dom, $dom, $element);
}
// var_dump($dom->saveXML());
return $dom
->saveXML();
}