+# V 0.2.8 ExportHelperLocal
+
+- Total summary
+
# V 0.2.7 ExportHelperLocal
- ExportHelperLocal: exportHoursAsCsv improved
array_push($lines, $line);
}
$line = "\nKategorie\tGesamtdauer\tInteressierte\n";
+ $sumDuration = 0;
+ $sumInterested = 0;
foreach ($sums as $key => $value) {
$interested = array_key_exists($key, $interesteds) ? $interesteds[$key] : 0;
+ $sumInterested += $interested;
+ $sumDuration += $value;
if ($interested == 0) {
$interested = '';
}
$line .= "$key\t" . ExportHelperLocal::formatDuration(duration: $value) . "\t$interested\n";
}
- $line .= "\n";
+ $line .= "\nGesamt\t" . ExportHelperLocal::formatDuration($sumDuration) . "\t$sumInterested\n";
array_push($lines, $line);
file_put_contents($filename, $lines);
return $filename;