1 | <?php |
||
17 | class Boards extends AbstractApi |
||
18 | { |
||
19 | protected $path = 'members/#id#/boards'; |
||
20 | |||
21 | /** |
||
22 | * Get boads related to a given member |
||
23 | * @link https://trello.com/docs/api/member/#get-1-members-idmember-or-username-boards |
||
24 | * |
||
25 | * @param string $id the member's id or username |
||
26 | * @param array $params optional parameters |
||
27 | * |
||
28 | * @return array |
||
29 | */ |
||
30 | 1 | public function all($id = "me", array $params = array()) |
|
34 | |||
35 | /** |
||
36 | * Filter boards related to a given member |
||
37 | * @link https://trello.com/docs/api/member/#get-1-members-idmember-or-username-boards-filter |
||
38 | * |
||
39 | * @param string $id the board's id |
||
40 | * @param string|array $filter array of / one of 'all', none', 'open', 'closed', 'all' |
||
41 | * |
||
42 | * @return array |
||
43 | */ |
||
44 | 3 | public function filter($id, $filter = 'all') |
|
51 | |||
52 | /** |
||
53 | * Get boads a given member is invited to |
||
54 | * @link https://trello.com/docs/api/member/#get-1-members-idmember-or-username-boardsinvited |
||
55 | * |
||
56 | * @param string $id the member's id or username |
||
57 | * @param array $params optional parameters |
||
58 | * |
||
59 | * @return array |
||
60 | */ |
||
61 | 1 | public function invitedTo($id, array $params = array()) |
|
65 | |||
66 | /** |
||
67 | * Get a field of a boad a given member is invited to |
||
68 | * @link https://trello.com/docs/api/member/#get-1-members-idmember-or-username-boardsinvited-field |
||
69 | * |
||
70 | * @param string $id the member's id or username |
||
71 | * |
||
72 | * @return array |
||
73 | */ |
||
74 | 2 | public function invitedToField($id, $field) |
|
80 | |||
81 | /** |
||
82 | * Pin a boad for a given member |
||
83 | * @link https://trello.com/docs/api/member/#post-1-members-idmember-or-username-idboardspinned |
||
84 | * |
||
85 | * @param string $id the member's id or username |
||
86 | * @param string $boardId the board's id |
||
87 | * |
||
88 | * @return array |
||
89 | */ |
||
90 | 1 | public function pin($id, $boardId) |
|
94 | |||
95 | /** |
||
96 | * Unpin a boad for a given member |
||
97 | * @link https://trello.com/docs/api/member/#delete-1-members-idmember-or-username-idboardspinned-idboard |
||
98 | * |
||
99 | * @param string $id the member's id or username |
||
100 | * @param string $boardId the board's id |
||
101 | * |
||
102 | * @return array |
||
103 | */ |
||
104 | 1 | public function unpin($id, $boardId) |
|
108 | |||
109 | /** |
||
110 | * Board Backgrounds API |
||
111 | * |
||
112 | * @return Backgrounds |
||
113 | */ |
||
114 | 2 | public function backgrounds() |
|
118 | |||
119 | /** |
||
120 | * Board Stars API |
||
121 | * |
||
122 | * @return Stars |
||
123 | */ |
||
124 | 2 | public function stars() |
|
128 | } |
||
129 |