Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
trasher committed Apr 25, 2024
1 parent 0dd6af2 commit 0f4d575
Showing 1 changed file with 0 additions and 61 deletions.
61 changes: 0 additions & 61 deletions src/Stat.php
Expand Up @@ -449,31 +449,6 @@ public static function showTable($itemtype, $type, $date1, $date2, $start, array
$headers = [];
$rows = [];

/*$params = [
'start' => 0,
'is_deleted' => 0,
'as_map' => 0,
'browse' => 0,
'unpublished' => 1,
'criteria' =>
array (
0 =>
array (
'field' => 12,
'searchtype' => 'equals',
'value' => 'notold',
),
),
'metacriteria' =>
array (
),
'display_type' => 0,
'hide_controls' => true
];
$data = SearchEngine::getData($itemtype, $params, []);
$output->displayData($data, $params);*/


$end_display = $start + $_SESSION['glpilist_limit'];
if (isset($_GET['export_all'])) {
$start = 0;
Expand Down Expand Up @@ -555,10 +530,6 @@ public static function showTable($itemtype, $type, $date1, $date2, $start, array
$headers[] = __('Number of solved tickets');
$headers[] = __('Number of late tickets');
$headers[] = __('Number of closed tickets');
/*echo $output::showHeaderItem(__('Number of opened tickets'), $header_num);
echo $output::showHeaderItem(__('Number of solved tickets'), $header_num);
echo $output::showHeaderItem(__('Number of late tickets'), $header_num);
echo $output::showHeaderItem(__('Number of closed tickets'), $header_num);*/
} else {
$html_output .= $output::showHeaderItem(htmlspecialchars(_nx('ticket', 'Opened', 'Opened', Session::getPluralNumber())), $header_num);
$html_output .= $output::showHeaderItem(
Expand All @@ -574,18 +545,6 @@ public static function showTable($itemtype, $type, $date1, $date2, $start, array
$headers[] = __('Number of opened satisfaction survey');
$headers[] = __('Number of answered satisfaction survey');
$headers[] = __('Average satisfaction');
/*echo $output::showHeaderItem(
__('Number of opened satisfaction survey'),
$header_num
);
echo $output::showHeaderItem(
__('Number of answered satisfaction survey'),
$header_num
);
echo $output::showHeaderItem(
__('Average satisfaction'),
$header_num
);*/
} else {
$html_output .= $output::showHeaderItem(
htmlspecialchars(_nx('survey', 'Opened', 'Opened', Session::getPluralNumber())),
Expand All @@ -602,15 +561,9 @@ public static function showTable($itemtype, $type, $date1, $date2, $start, array
if (!$is_html_output) {
if ($itemtype === Ticket::class) {
$headers[] = __('Average time to take into account');
/*echo $output::showHeaderItem(
__('Average time to take into account'),
$header_num
);*/
}
$headers[] = __('Average time to resolution');
$headers[] = __('Average time to closure');
/*echo $output::showHeaderItem(__('Average time to resolution'), $header_num);
echo $output::showHeaderItem(__('Average time to closure'), $header_num);*/
} else {
if ($itemtype === Ticket::class) {
$html_output .= $output::showHeaderItem(__s('Take into account'), $header_num);
Expand All @@ -622,14 +575,6 @@ public static function showTable($itemtype, $type, $date1, $date2, $start, array
if (!$is_html_output) {
$headers[] = __('Average real duration of treatment of the ticket');
$headers[] = __('Total real duration of treatment of the ticket');
/*echo $output::showHeaderItem(
__('Average real duration of treatment of the ticket'),
$header_num
);
echo $output::showHeaderItem(
__('Total real duration of treatment of the ticket'),
$header_num
);*/
} else {
$html_output .= $output::showHeaderItem(__s('Average'), $header_num);
$html_output .= $output::showHeaderItem(__s('Total duration'), $header_num);
Expand Down Expand Up @@ -952,12 +897,6 @@ public static function showTable($itemtype, $type, $date1, $date2, $start, array
'unpublished' => 1,
'criteria' =>
array (
/*0 =>
array (
'field' => 12,
'searchtype' => 'equals',
'value' => 'notold',
),*/
),
'metacriteria' =>
array (
Expand Down

0 comments on commit 0f4d575

Please sign in to comment.