Include swimlane in task export

This commit is contained in:
Frédéric Guillot
2014-12-28 17:38:17 -05:00
parent cbac410efa
commit d6530bd55f
4 changed files with 55 additions and 5 deletions

View File

@@ -156,6 +156,27 @@ class Swimlane extends Base
return $swimlanes;
}
/**
* Get list of all swimlanes
*
* @access public
* @param integer $project_id Project id
* @return array
*/
public function getSwimlanesList($project_id)
{
$swimlanes = $this->db->table(self::TABLE)
->eq('project_id', $project_id)
->orderBy('position', 'asc')
->listing('id', 'name');
$swimlanes[0] = $this->db->table(Project::TABLE)
->eq('id', $project_id)
->findOneColumn('default_swimlane');
return $swimlanes;
}
/**
* Add a new swimlane
*