summaryrefslogtreecommitdiff
path: root/app/Model/Swimlane.php
diff options
context:
space:
mode:
authorFrédéric Guillot <fred@kanboard.net>2014-12-28 17:38:17 -0500
committerFrédéric Guillot <fred@kanboard.net>2014-12-28 17:38:17 -0500
commitd6530bd55fdd863f0cf153bc2854fb4e34076316 (patch)
treeca7c42d4bb6a180431cd3fd8a5fc120d44c58fbd /app/Model/Swimlane.php
parentcbac410efa968f501e65e6e25fc293bcc511301c (diff)
Include swimlane in task export
Diffstat (limited to 'app/Model/Swimlane.php')
-rw-r--r--app/Model/Swimlane.php21
1 files changed, 21 insertions, 0 deletions
diff --git a/app/Model/Swimlane.php b/app/Model/Swimlane.php
index c9c080af..069f14b6 100644
--- a/app/Model/Swimlane.php
+++ b/app/Model/Swimlane.php
@@ -157,6 +157,27 @@ class Swimlane extends Base
}
/**
+ * 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
*
* @access public