1 | <?php |
||
11 | class Organization extends AbstractApi |
||
12 | { |
||
13 | /** |
||
14 | * Base path of organizations api |
||
15 | * @var string |
||
16 | */ |
||
17 | protected $path = 'organizations'; |
||
18 | |||
19 | /** |
||
20 | * Organization fields |
||
21 | * @link https://trello.com/docs/api/organization/#get-1-organizations-idorg-or-name-field |
||
22 | * @var array |
||
23 | */ |
||
24 | public static $fields = array( |
||
25 | 'name', |
||
26 | 'displayName', |
||
27 | 'desc', |
||
28 | 'descData', |
||
29 | 'idBoards', |
||
30 | 'invited', |
||
31 | 'invitations', |
||
32 | 'memberships', |
||
33 | 'prefs', |
||
34 | 'powerUps', |
||
35 | 'products', |
||
36 | 'billableMemberCount', |
||
37 | 'url', |
||
38 | 'website', |
||
39 | 'logoHash', |
||
40 | 'premiumFeatures' |
||
41 | ); |
||
42 | |||
43 | /** |
||
44 | * Find an organization by id |
||
45 | * @link https://trello.com/docs/api/organization/#get-1-organizations-idorg-or-name |
||
46 | * |
||
47 | * @param string $id the organization's id |
||
48 | * @param array $params optional attributes |
||
49 | * |
||
50 | * @return array |
||
51 | */ |
||
52 | 1 | public function show($id, array $params = array()) |
|
56 | |||
57 | /** |
||
58 | * Organization Boards API |
||
59 | * |
||
60 | * @return Organization\Boards |
||
61 | */ |
||
62 | 1 | public function boards() |
|
66 | |||
67 | /** |
||
68 | * Organization Members API |
||
69 | * |
||
70 | * @return Organization\Members |
||
71 | */ |
||
72 | 1 | public function members() |
|
76 | } |
||
77 |