1 | <?php |
||
13 | class Cardlists extends AbstractApi |
||
14 | { |
||
15 | /** |
||
16 | * Base path of board lists api |
||
17 | * @var string |
||
18 | */ |
||
19 | protected $path = 'boards/#id#/lists'; |
||
20 | |||
21 | /** |
||
22 | * Get a given board's lists |
||
23 | * @link https://trello.com/docs/api/board/#get-1-boards-board-id-lists |
||
24 | * |
||
25 | * @param string $id the board's id |
||
26 | * @param array $params optional parameters |
||
27 | * |
||
28 | * @return array |
||
29 | */ |
||
30 | 1 | public function all($id, array $params = array()) |
|
34 | |||
35 | /** |
||
36 | * Filter card lists related to a given board |
||
37 | * @link https://trello.com/docs/api/board/#get-1-boards-board-id-lists-filter |
||
38 | * |
||
39 | * @param string $id the board's id |
||
40 | * @param string|array $filter array of / one of 'all', 'none', 'open', 'closed' |
||
41 | * |
||
42 | * @return array |
||
43 | */ |
||
44 | 3 | public function filter($id, $filter = 'all') |
|
51 | |||
52 | /** |
||
53 | * Create a list on a given board |
||
54 | * @link https://trello.com/docs/api/board/#post-1-boards-board-id-lists |
||
55 | * |
||
56 | * @param array $params |
||
57 | * |
||
58 | * @return array |
||
59 | */ |
||
60 | 2 | public function create($id, array $params = array()) |
|
66 | } |
||
67 |