From abfd3bbc6a72c55b30d48466b2719804ebee6733 Mon Sep 17 00:00:00 2001 From: Nik Okuntseff Date: Mon, 5 Nov 2018 14:01:29 +0000 Subject: [PATCH] Started work on ttGroupExportHelper class for exporting single groups. --- WEB-INF/lib/ttGroupExportHelper.class.php | 56 +++++++++++++++++++++++ WEB-INF/lib/ttOrgExportHelper.class.php | 1 + 2 files changed, 57 insertions(+) create mode 100644 WEB-INF/lib/ttGroupExportHelper.class.php 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. -- 2.20.1