summaryrefslogtreecommitdiff
path: root/app/Formatter/BoardSwimlaneFormatter.php
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2016-06-24 10:05:45 -0400
committerFrederic Guillot <fred@kanboard.net>2016-06-24 10:05:45 -0400
commit700b4e8f0265e4eabd7a7c0eb6a06088d50554fe (patch)
treee38c011894e6f53b59557ad9a86fed8ad6bf6049 /app/Formatter/BoardSwimlaneFormatter.php
parent9e278a9370e3b651a4a545c0c0c0c256088ed187 (diff)
Associate tags to tasks in BoardFormatter
Diffstat (limited to 'app/Formatter/BoardSwimlaneFormatter.php')
-rw-r--r--app/Formatter/BoardSwimlaneFormatter.php15
1 files changed, 15 insertions, 0 deletions
diff --git a/app/Formatter/BoardSwimlaneFormatter.php b/app/Formatter/BoardSwimlaneFormatter.php
index 91b4bfd7..c2abb444 100644
--- a/app/Formatter/BoardSwimlaneFormatter.php
+++ b/app/Formatter/BoardSwimlaneFormatter.php
@@ -15,6 +15,7 @@ class BoardSwimlaneFormatter extends BaseFormatter implements FormatterInterface
protected $swimlanes = array();
protected $columns = array();
protected $tasks = array();
+ protected $tags = array();
/**
* Set swimlanes
@@ -56,6 +57,19 @@ class BoardSwimlaneFormatter extends BaseFormatter implements FormatterInterface
}
/**
+ * Set tags
+ *
+ * @access public
+ * @param array $tags
+ * @return $this
+ */
+ public function withTags(array $tags)
+ {
+ $this->tags = $tags;
+ return $this;
+ }
+
+ /**
* Apply formatter
*
* @access public
@@ -71,6 +85,7 @@ class BoardSwimlaneFormatter extends BaseFormatter implements FormatterInterface
->withSwimlaneId($swimlane['id'])
->withColumns($this->columns)
->withTasks($this->tasks)
+ ->withTags($this->tags)
->format();
$swimlane['nb_swimlanes'] = $nb_swimlanes;