1 | <?php |
||
7 | class Setting extends BaseModel |
||
8 | { |
||
9 | protected $endpoint = 'settings'; |
||
10 | |||
11 | /** |
||
12 | * Retrieve all Items. |
||
13 | * |
||
14 | * @param array $options |
||
15 | * |
||
16 | * @return array |
||
17 | */ |
||
18 | protected function all($options = []) |
||
22 | |||
23 | /** |
||
24 | * Retrieve option. |
||
25 | * |
||
26 | * @param int $group_id |
||
27 | * @param int $id |
||
28 | * @param array $options |
||
29 | * |
||
30 | * @return array |
||
31 | */ |
||
32 | protected function option($group_id, $id, $options = []) |
||
36 | |||
37 | /** |
||
38 | * Retrieve options. |
||
39 | * |
||
40 | * @param int $id |
||
41 | * @param array $options |
||
42 | * |
||
43 | * @return array |
||
44 | */ |
||
45 | protected function options($id, $options = []) |
||
49 | |||
50 | /** |
||
51 | * Update Existing Item. |
||
52 | * |
||
53 | * @param int $group_id |
||
54 | * @param int $id |
||
55 | * @param array $data |
||
56 | * |
||
57 | * @return object |
||
58 | */ |
||
59 | protected function update($group_id, $id, $data) |
||
63 | |||
64 | /** |
||
65 | * Batch Update. |
||
66 | * |
||
67 | * @param array $data |
||
68 | * |
||
69 | * @return object |
||
70 | */ |
||
71 | protected function batch($id, $data) |
||
75 | } |
||
76 |