1 | <?php |
||
7 | class PulseColumn extends ApiObject |
||
8 | { |
||
9 | const API_PREFIX = "boards"; |
||
10 | |||
11 | const Date = "date"; |
||
|
|||
12 | const Numeric = "numeric"; |
||
13 | const Person = "person"; |
||
14 | const Status = "status"; |
||
15 | const Text = "text"; |
||
16 | const Timeline = "timerange"; |
||
17 | |||
18 | protected $id; |
||
19 | protected $title; |
||
20 | protected $type; |
||
21 | protected $empty_text; |
||
22 | protected $labels; |
||
23 | protected $board_id; |
||
24 | |||
25 | public function getId () |
||
29 | |||
30 | public function getTitle () |
||
34 | |||
35 | 11 | public function getType () |
|
36 | { |
||
37 | // @todo Workaround due to a bug in DaPulse's API see: https://github.com/allejo/PhpPulse/issues/5 |
||
38 | 11 | if ($this->type === "color") |
|
39 | { |
||
40 | 1 | $this->type = self::Status; |
|
41 | } |
||
42 | |||
43 | 11 | return $this->type; |
|
44 | } |
||
45 | |||
46 | public function getEmptyText () |
||
50 | |||
51 | public function getLabels () |
||
55 | |||
56 | public function getBoardId () |
||
60 | |||
61 | public function editTitle ($title) |
||
65 | |||
66 | public function editLabels ($labels) |
||
70 | |||
71 | public function deleteColumn () |
||
79 | |||
80 | private function editField ($field, $value) |
||
92 | |||
93 | private function getColumnsUrl () |
||
97 | } |