1 | <?php |
||
4 | class Box extends Base |
||
5 | { |
||
6 | /** |
||
7 | * Private constructor so only the client can create this |
||
8 | * @param string $apikey |
||
9 | * @param string $projectid |
||
10 | */ |
||
11 | public function __construct($apikey, $projectid) |
||
15 | |||
16 | /** |
||
17 | * Get one or multiple boxes |
||
18 | * @param string box id, leave null for list of boxes |
||
19 | * @param object Containing query arguments |
||
20 | * @return object Result of the request |
||
21 | */ |
||
22 | public function Get($boxId = null, $args = array("limit" => 50)) |
||
26 | |||
27 | /** |
||
28 | * Get all box codes |
||
29 | * @param string box id |
||
30 | * @param object Containing query arguments |
||
31 | * @return object Result of the request |
||
32 | */ |
||
33 | public function GetCode($boxId, $args = array("limit" => 50)) |
||
37 | |||
38 | /** |
||
39 | * Get one or multiple versions of a box |
||
40 | * @param string box id |
||
41 | * @param string version id, leave null for list of versions |
||
42 | * @param object Containing query arguments |
||
43 | * @return object Result of the request |
||
44 | */ |
||
45 | public function GetVersion($boxId, $versionId = null, $args = array("limit" => 50)) |
||
49 | |||
50 | /** |
||
51 | * Create new box |
||
52 | * @param object Containing all the information of a box |
||
53 | * @return object Result of the request |
||
54 | */ |
||
55 | public function Create($box) |
||
59 | |||
60 | /** |
||
61 | * Create new box |
||
62 | * @param object Containing all the information of a box |
||
63 | * @return object Result of the request |
||
64 | */ |
||
65 | public function CreateVersion($boxId, $version) |
||
69 | |||
70 | /** |
||
71 | * Delete a box version by version id |
||
72 | * @param string Id of the box |
||
73 | * @param string Id of the version to be deleted |
||
74 | * @return object Result of the request |
||
75 | */ |
||
76 | public function Delete($boxId, $versionId) |
||
80 | |||
81 | /** |
||
82 | * Delete a box version by version id |
||
83 | * @param string Id of the box |
||
84 | * @param string Id of the version to be deleted |
||
85 | * @return object Result of the request |
||
86 | */ |
||
87 | public function DeleteVersion($boxId, $versionId) |
||
91 | |||
92 | /** |
||
93 | * Update a box |
||
94 | * @param object Box containing the boxid and fields that need to be updated |
||
95 | * @throws \Exception When boxid is not present |
||
96 | * @return object Result of the request |
||
97 | */ |
||
98 | public function Update($box) |
||
106 | |||
107 | /** |
||
108 | * Update a box |
||
109 | * @param string Id of the box |
||
110 | * @param object Version containing the version and fields that need to be updated |
||
111 | * @throws \Exception When versionid is not present |
||
112 | * @return object Result of the request |
||
113 | */ |
||
114 | public function UpdateVersion($boxid, $version) |
||
122 | } |
||
123 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.