Use BoardFormatter to generate the board

This commit is contained in:
Frederic Guillot
2016-06-24 08:50:57 -04:00
parent d560f84b37
commit 9e278a9370
16 changed files with 667 additions and 217 deletions

View File

@@ -152,26 +152,6 @@ class TaskFinderModel extends Base
->join(ProjectModel::TABLE, 'id', 'project_id', TaskModel::TABLE);
}
/**
* Get all tasks shown on the board (sorted by position)
*
* @access public
* @param integer $project_id Project id
* @param integer $column_id Column id
* @param integer $swimlane_id Swimlane id
* @return array
*/
public function getTasksByColumnAndSwimlane($project_id, $column_id, $swimlane_id = 0)
{
return $this->getExtendedQuery()
->eq(TaskModel::TABLE.'.project_id', $project_id)
->eq(TaskModel::TABLE.'.column_id', $column_id)
->eq(TaskModel::TABLE.'.swimlane_id', $swimlane_id)
->eq(TaskModel::TABLE.'.is_active', TaskModel::STATUS_OPEN)
->asc(TaskModel::TABLE.'.position')
->findAll();
}
/**
* Get all tasks for a given project and status
*