summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 9263477)
raw | patch | inline | side by side (parent: 9263477)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 20 Aug 2010 14:45:17 +0000 (14:45 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 20 Aug 2010 14:45:17 +0000 (14:45 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@19421 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-core/plugins/generic/statistics/class_statistics.inc | patch | blob | history |
diff --git a/gosa-core/plugins/generic/statistics/class_statistics.inc b/gosa-core/plugins/generic/statistics/class_statistics.inc
index 2d903c0762d9616eb11d7a41f96221d46df086c4..2467e41d59bbc3a4c11e943e304e493f172e1a2e 100644 (file)
function execute()
{
- if(isset($_POST['graph1DatePicker1'])) $this->graph1DatePicker1 = get_post('graph1DatePicker1');
- if(isset($_POST['graph1DatePicker2'])) $this->graph1DatePicker2 = get_post('graph1DatePicker2');
-
$smarty = get_smarty();
$smarty->assign('graph1DatePicker1', $this->graph1DatePicker1);
$smarty->assign('graph1DatePicker2', $this->graph1DatePicker2);
$smarty->assign('graphID_4', $this->graphID_4);
$smarty->assign('graphID_5', $this->graphID_5);
$smarty->assign('unsbmittedFiles', count($this->unsbmittedFiles));
- $smarty->assign('unsbmittedFilesMsg',
- sprintf(
+ $smarty->assign('unsbmittedFilesMsg', sprintf(
_("You have currently %s unsubmitted statistic collection, do you want to transmit them now?"),
count($this->unsbmittedFiles)));
return($smarty->fetch(get_template_path('statistics.tpl', TRUE)));
}
+ /*! \brief Prepares the graph data we've received from the rpc-service.
+ * This method will construct a usable data-array with converted
+ * date strings.
+ */
function prepareGraphData($res)
{
- $gData = array();
/* Build up array which represents the amount of errors per
* interval.
*/
+ $gData = array();
foreach($res['errorsPerInterval'] as $dateStr => $data){
$date = strtotime($dateStr);
$gData['errorsPerInterval'][$date] = $data;
function save_object()
{
plugin::save_object();
+ if(isset($_POST['graph1DatePicker1'])) $this->graph1DatePicker1 = get_post('graph1DatePicker1');
+ if(isset($_POST['graph1DatePicker2'])) $this->graph1DatePicker2 = get_post('graph1DatePicker2');
}
}
+ /*! \brief Reload the graph images.
+ */
function reloadGraphs()
{
new pChartInclude();
}
+ /*! \brief Generates the line-graph which displays the plugin usage over time.
+ */
function generateActionsGraph($gData)
{
$lineMax = 100;
#
+ /*! \brief Generate the pie-chart which displays the overall-plugin-usage
+ */
function generateCategoryPieGraph($data)
{
// Sort data by usage count and slice array to get