summaryrefslogtreecommitdiff
path: root/app/Api/TaskLink.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/Api/TaskLink.php')
-rw-r--r--app/Api/TaskLink.php77
1 files changed, 0 insertions, 77 deletions
diff --git a/app/Api/TaskLink.php b/app/Api/TaskLink.php
deleted file mode 100644
index 47d70d1e..00000000
--- a/app/Api/TaskLink.php
+++ /dev/null
@@ -1,77 +0,0 @@
-<?php
-
-namespace Kanboard\Api;
-
-/**
- * TaskLink API controller
- *
- * @package api
- * @author Frederic Guillot
- */
-class TaskLink extends \Kanboard\Core\Base
-{
- /**
- * Get a task link
- *
- * @access public
- * @param integer $task_link_id Task link id
- * @return array
- */
- public function getTaskLinkById($task_link_id)
- {
- return $this->taskLink->getById($task_link_id);
- }
-
- /**
- * Get all links attached to a task
- *
- * @access public
- * @param integer $task_id Task id
- * @return array
- */
- public function getAllTaskLinks($task_id)
- {
- return $this->taskLink->getAll($task_id);
- }
-
- /**
- * Create a new link
- *
- * @access public
- * @param integer $task_id Task id
- * @param integer $opposite_task_id Opposite task id
- * @param integer $link_id Link id
- * @return integer Task link id
- */
- public function createTaskLink($task_id, $opposite_task_id, $link_id)
- {
- return $this->taskLink->create($task_id, $opposite_task_id, $link_id);
- }
-
- /**
- * Update a task link
- *
- * @access public
- * @param integer $task_link_id Task link id
- * @param integer $task_id Task id
- * @param integer $opposite_task_id Opposite task id
- * @param integer $link_id Link id
- * @return boolean
- */
- public function updateTaskLink($task_link_id, $task_id, $opposite_task_id, $link_id)
- {
- return $this->taskLink->update($task_link_id, $task_id, $opposite_task_id, $link_id);
- }
-
- /**
- * Remove a link between two tasks
- *
- * @access public
- * @param integer $task_link_id
- * @return boolean
- */
- public function removeTaskLink($task_link_id)
- {
- return $this->taskLink->remove($task_link_id);
- }
-}