summaryrefslogtreecommitdiff
path: root/app/Api/Board.php
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2015-05-23 21:44:33 -0400
committerFrederic Guillot <fred@kanboard.net>2015-05-23 21:44:33 -0400
commite32f26d048249b84166542d6442efdf202ff44fd (patch)
tree1868c5e83cec5ea8b821ad8a2036543aa37e5adb /app/Api/Board.php
parentc9ba525bab06eff76b1d5fb8701848d0e3990122 (diff)
API refactoring
Diffstat (limited to 'app/Api/Board.php')
-rw-r--r--app/Api/Board.php52
1 files changed, 52 insertions, 0 deletions
diff --git a/app/Api/Board.php b/app/Api/Board.php
new file mode 100644
index 00000000..163131b6
--- /dev/null
+++ b/app/Api/Board.php
@@ -0,0 +1,52 @@
+<?php
+
+namespace Api;
+
+/**
+ * Board API controller
+ *
+ * @package api
+ * @author Frederic Guillot
+ */
+class Board extends Base
+{
+ public function getBoard($project_id)
+ {
+ return $this->board->getBoard($project_id);
+ }
+
+ public function getColumns($project_id)
+ {
+ return $this->board->getColumns($project_id);
+ }
+
+ public function getColumn($column_id)
+ {
+ return $this->board->getColumn($column_id);
+ }
+
+ public function moveColumnUp($project_id, $column_id)
+ {
+ return $this->board->moveUp($project_id, $column_id);
+ }
+
+ public function moveColumnDown($project_id, $column_id)
+ {
+ return $this->board->moveDown($project_id, $column_id);
+ }
+
+ public function updateColumn($column_id, $title, $task_limit = 0, $description = '')
+ {
+ return $this->board->updateColumn($column_id, $title, $task_limit, $description);
+ }
+
+ public function addColumn($project_id, $title, $task_limit = 0, $description = '')
+ {
+ return $this->board->addColumn($project_id, $title, $task_limit, $description);
+ }
+
+ public function removeColumn($column_id)
+ {
+ return $this->board->removeColumn($column_id);
+ }
+}