summaryrefslogtreecommitdiff
path: root/app/Api/Board.php
blob: 163131b6bf32db2767e20bfc1c9eaa5344380a9b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
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);
    }
}