From: Nik Okuntseff Date: Mon, 5 Nov 2018 14:01:29 +0000 (+0000) Subject: Started work on ttGroupExportHelper class for exporting single groups. X-Git-Tag: timetracker_1.19-1~709 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=abfd3bbc6a72c55b30d48466b2719804ebee6733;p=timetracker.git Started work on ttGroupExportHelper class for exporting single groups. --- diff --git a/WEB-INF/lib/ttGroupExportHelper.class.php b/WEB-INF/lib/ttGroupExportHelper.class.php new file mode 100644 index 00000000..9ac4464a --- /dev/null +++ b/WEB-INF/lib/ttGroupExportHelper.class.php @@ -0,0 +1,56 @@ +group_id = $group_id; + $this->file = $file; + $this->indentation = $indentation; + + // TODO: Build a list of subgroups here. + } + + // writeData writes group data into file. + function writeData() { + // TODO: write code here. + // + // Call itself recursively for all subgroups. + } +} diff --git a/WEB-INF/lib/ttOrgExportHelper.class.php b/WEB-INF/lib/ttOrgExportHelper.class.php index a6eb6af8..07ad7488 100644 --- a/WEB-INF/lib/ttOrgExportHelper.class.php +++ b/WEB-INF/lib/ttOrgExportHelper.class.php @@ -28,6 +28,7 @@ import('ttTeamHelper'); import('ttTimeHelper'); +import('ttGroupExportHelper'); // ttOrgExportHelper - this class is a future replacement for ttExportHelper. // Currently, it is work in progress.