Associate tags to tasks in BoardFormatter
This commit is contained in:
@@ -15,6 +15,7 @@ class BoardColumnFormatter extends BaseFormatter implements FormatterInterface
|
||||
protected $swimlaneId = 0;
|
||||
protected $columns = array();
|
||||
protected $tasks = array();
|
||||
protected $tags = array();
|
||||
|
||||
/**
|
||||
* Set swimlaneId
|
||||
@@ -55,6 +56,19 @@ class BoardColumnFormatter extends BaseFormatter implements FormatterInterface
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set tags
|
||||
*
|
||||
* @access public
|
||||
* @param array $tags
|
||||
* @return $this
|
||||
*/
|
||||
public function withTags(array $tags)
|
||||
{
|
||||
$this->tags = $tags;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Apply formatter
|
||||
*
|
||||
@@ -66,6 +80,7 @@ class BoardColumnFormatter extends BaseFormatter implements FormatterInterface
|
||||
foreach ($this->columns as &$column) {
|
||||
$column['tasks'] = BoardTaskFormatter::getInstance($this->container)
|
||||
->withTasks($this->tasks)
|
||||
->withTags($this->tags)
|
||||
->withSwimlaneId($this->swimlaneId)
|
||||
->withColumnId($column['id'])
|
||||
->format();
|
||||
|
||||
Reference in New Issue
Block a user