summaryrefslogtreecommitdiff
path: root/www/wiki/extensions/SemanticResultFormats/formats/Gantt/src/GanttSection.php
diff options
context:
space:
mode:
Diffstat (limited to 'www/wiki/extensions/SemanticResultFormats/formats/Gantt/src/GanttSection.php')
-rw-r--r--www/wiki/extensions/SemanticResultFormats/formats/Gantt/src/GanttSection.php66
1 files changed, 66 insertions, 0 deletions
diff --git a/www/wiki/extensions/SemanticResultFormats/formats/Gantt/src/GanttSection.php b/www/wiki/extensions/SemanticResultFormats/formats/Gantt/src/GanttSection.php
new file mode 100644
index 00000000..a7938117
--- /dev/null
+++ b/www/wiki/extensions/SemanticResultFormats/formats/Gantt/src/GanttSection.php
@@ -0,0 +1,66 @@
+<?php
+/**
+ * File holding the GanttSection class
+ *
+ * Creats Section with params
+ *
+ * @author Sebastian Schmid
+ * @file
+ * @ingroup SemanticResultFormats
+ */
+
+namespace SRF\Gantt;
+
+class GanttSection {
+
+ private $mTitle;
+ private $mID;
+ private $mEarliestStartDate;
+ private $mLatestEndDate;
+ private $mTasks = [];
+
+ public function setTitle( $title ) {
+ $this->mTitle = $title;
+ }
+
+ public function getTitle() {
+ return $this->mTitle;
+ }
+
+ public function setID( $id ) {
+ $this->mID = $id;
+ }
+
+ public function getID() {
+ return $this->mID;
+ }
+
+ public function setEarliestStartDate( $earliestStartDate ) {
+ $this->mEarliestStartDate = $earliestStartDate;
+ }
+
+ public function getEarliestStartDate() {
+ return $this->mEarliestStartDate;
+ }
+
+ public function setLatestEndDate( $latestEndDate ) {
+ $this->mLatestEndDate = $latestEndDate;
+ }
+
+ public function getLatestEndDate() {
+ return $this->mLatestEndDate;
+ }
+
+ public function getTasks() {
+ return $this->mTasks;
+ }
+
+ // If we reorder the tasks we need to reset it with the ordered tasks
+ public function setTasks( $tasks ) {
+ $this->mTasks = $tasks;
+ }
+
+ public function addTask( $task ) {
+ $this->mTasks[] = $task;
+ }
+} \ No newline at end of file