mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-04-08 18:55:09 +02:00
Working in the refactoring the code of reports (SLA_monthly).
This commit is contained in:
parent
5545e4e616
commit
c2fdcbb1d8
@ -421,6 +421,14 @@ function reporting_make_reporting_data($id_report, $date, $time,
|
||||
$force_width_chart,
|
||||
$force_height_chart);
|
||||
break;
|
||||
case 'SLA_monthly':
|
||||
$report['contents'][] = reporting_enterprise_sla_monthly_refactoriced(
|
||||
$report,
|
||||
$content);
|
||||
break;
|
||||
case 'SLA_services':
|
||||
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -258,6 +258,9 @@ function reporting_html_print_report($report, $mini = false) {
|
||||
case 'SLA':
|
||||
reporting_html_SLA($table, $item, $mini);
|
||||
break;
|
||||
case 'SLA_monthly':
|
||||
reporting_enterprise_html_SLA_monthly($table, $item, $mini);
|
||||
break;
|
||||
}
|
||||
|
||||
if ($item['type'] == 'agent_module')
|
||||
@ -4045,10 +4048,6 @@ function reporting_render_report_html_item ($content, $table, $report, $mini = f
|
||||
$item_title = $content['name'];
|
||||
|
||||
switch ($content["type"]) {
|
||||
case 'SLA_monthly':
|
||||
if (function_exists("reporting_enterprise_sla_monthly"))
|
||||
reporting_enterprise_sla_monthly($mini, $content, $report, $table, $item_title);
|
||||
break;
|
||||
case 'SLA_services':
|
||||
if (function_exists("reporting_enterprise_sla_services"))
|
||||
reporting_enterprise_sla_services($mini, $content, $report, $table, $item_title);
|
||||
|
Loading…
x
Reference in New Issue
Block a user