1 | <?php |
||
6 | class Project extends Base |
||
7 | { |
||
8 | /** |
||
9 | * Private constructor so only the client can create this |
||
10 | * @param Client $client |
||
11 | */ |
||
12 | 20 | public function __construct(Client $client) |
|
17 | |||
18 | /** |
||
19 | * Get one or multiple projects |
||
20 | * @param string project id, leave null for list of boxes |
||
21 | * @param object Containing query arguments |
||
22 | * @return object Result of the request |
||
23 | */ |
||
24 | public function Get($projectId = null, $args = array("limit" => 50)) |
||
31 | |||
32 | /** |
||
33 | * Create new project |
||
34 | * @param object Containing all the information of a project |
||
35 | * @return object Result of the request |
||
36 | */ |
||
37 | public function Create($project) |
||
41 | |||
42 | /** |
||
43 | * Update a project |
||
44 | * @param id of the project |
||
45 | * @param object Containing all the information of a project |
||
46 | * @throws \Exception when projectid is missing |
||
47 | * @return object Result of the request |
||
48 | */ |
||
49 | public function Update($project) |
||
56 | |||
57 | /** |
||
58 | * Delete a project object by project id |
||
59 | * @param string Id of the project |
||
60 | * @return object Result of the request |
||
61 | */ |
||
62 | public function Delete($projectId) |
||
66 | |||
67 | /** |
||
68 | * Retrieve fields of a project object by project id |
||
69 | * @param string Id of the project |
||
70 | * @return object Result of the request |
||
71 | */ |
||
72 | public function Fields($projectId) |
||
76 | |||
77 | /** |
||
78 | * Retrieve logs of a project object by project id |
||
79 | * @param string Id of the project |
||
80 | * @return object Result of the request |
||
81 | */ |
||
82 | public function Logs($projectId) |
||
86 | } |
||
87 |