From 5f9030dfed4982e4ae8f80609311f85a30c51df4 Mon Sep 17 00:00:00 2001 From: zarzuelo Date: Fri, 10 Aug 2012 08:33:48 +0000 Subject: [PATCH] 2012-08-10 Sergio Martin * include/functions_api.php: Add the missed function api_get_graph_module_data and update it to work with last graph system git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6854 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/ChangeLog | 5 +++ pandora_console/include/functions_api.php | 49 +++++++++++++++++++++++ 2 files changed, 54 insertions(+) diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index 188e756630..5e502a690e 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,8 @@ +2012-08-10 Sergio Martin + + * include/functions_api.php: Add the missed function api_get_graph_module_data + and update it to work with last graph system + 2012-08-09 Sergio Martin * include/functions_modules.php diff --git a/pandora_console/include/functions_api.php b/pandora_console/include/functions_api.php index d28b30d540..f87e3d4ebc 100644 --- a/pandora_console/include/functions_api.php +++ b/pandora_console/include/functions_api.php @@ -23,6 +23,7 @@ require_once('functions_modules.php'); include_once($config['homedir'] . "/include/functions_profile.php"); include_once($config['homedir'] . "/include/functions.php"); include_once($config['homedir'] . "/include/functions_ui.php"); +include_once($config['homedir'] . "/include/functions_graph.php"); include_once($config['homedir'] . "/include/functions_events.php"); include_once($config['homedir'] . "/include/functions_groups.php"); include_once($config['homedir'] . "/include/functions_network_components.php"); @@ -3762,6 +3763,54 @@ function api_get_module_data($id, $thrash1, $other, $returnType) { returnData('csv', $data, $separator); } +/** + * Return a image file of sparse graph of module data in a period time. + * + * @param integer $id id of a module data. + * @param $thrash1 Don't use. + * @param array $other it's array, $other as param is ;;;