summaryrefslogtreecommitdiff
path: root/app/Api/SwimlaneApi.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/Api/SwimlaneApi.php')
-rw-r--r--app/Api/SwimlaneApi.php80
1 files changed, 0 insertions, 80 deletions
diff --git a/app/Api/SwimlaneApi.php b/app/Api/SwimlaneApi.php
deleted file mode 100644
index c3c56a71..00000000
--- a/app/Api/SwimlaneApi.php
+++ /dev/null
@@ -1,80 +0,0 @@
-<?php
-
-namespace Kanboard\Api;
-
-use Kanboard\Core\Base;
-
-/**
- * Swimlane API controller
- *
- * @package Kanboard\Api
- * @author Frederic Guillot
- */
-class SwimlaneApi extends Base
-{
- public function getActiveSwimlanes($project_id)
- {
- return $this->swimlaneModel->getSwimlanes($project_id);
- }
-
- public function getAllSwimlanes($project_id)
- {
- return $this->swimlaneModel->getAll($project_id);
- }
-
- public function getSwimlaneById($swimlane_id)
- {
- return $this->swimlaneModel->getById($swimlane_id);
- }
-
- public function getSwimlaneByName($project_id, $name)
- {
- return $this->swimlaneModel->getByName($project_id, $name);
- }
-
- public function getSwimlane($swimlane_id)
- {
- return $this->swimlaneModel->getById($swimlane_id);
- }
-
- public function getDefaultSwimlane($project_id)
- {
- return $this->swimlaneModel->getDefault($project_id);
- }
-
- public function addSwimlane($project_id, $name, $description = '')
- {
- return $this->swimlaneModel->create(array('project_id' => $project_id, 'name' => $name, 'description' => $description));
- }
-
- public function updateSwimlane($swimlane_id, $name, $description = null)
- {
- $values = array('id' => $swimlane_id, 'name' => $name);
-
- if (!is_null($description)) {
- $values['description'] = $description;
- }
-
- return $this->swimlaneModel->update($values);
- }
-
- public function removeSwimlane($project_id, $swimlane_id)
- {
- return $this->swimlaneModel->remove($project_id, $swimlane_id);
- }
-
- public function disableSwimlane($project_id, $swimlane_id)
- {
- return $this->swimlaneModel->disable($project_id, $swimlane_id);
- }
-
- public function enableSwimlane($project_id, $swimlane_id)
- {
- return $this->swimlaneModel->enable($project_id, $swimlane_id);
- }
-
- public function changeSwimlanePosition($project_id, $swimlane_id, $position)
- {
- return $this->swimlaneModel->changePosition($project_id, $swimlane_id, $position);
- }
-}