1 | <?php |
||
8 | class Setting extends BaseModel |
||
9 | { |
||
10 | use QueryBuilderTrait; |
||
11 | |||
12 | protected $endpoint = 'settings'; |
||
13 | |||
14 | /** |
||
15 | * Retrieve option. |
||
16 | * |
||
17 | * @param int $group_id |
||
18 | * @param int $id |
||
19 | * @param array $options |
||
20 | * |
||
21 | * @return array |
||
22 | */ |
||
23 | protected function option($group_id, $id, $options = []) |
||
29 | |||
30 | /** |
||
31 | * Retrieve options. |
||
32 | * |
||
33 | * @param int $id |
||
34 | * @param array $options |
||
35 | * |
||
36 | * @return array |
||
37 | */ |
||
38 | protected function options($id, $options = []) |
||
44 | |||
45 | /** |
||
46 | * Update Existing Item. |
||
47 | * |
||
48 | * @param int $group_id |
||
49 | * @param int $id |
||
50 | * @param array $data |
||
51 | * |
||
52 | * @return object |
||
53 | */ |
||
54 | protected function update($group_id, $id, $data) |
||
60 | |||
61 | /** |
||
62 | * Batch Update. |
||
63 | * |
||
64 | * @param array $data |
||
65 | * |
||
66 | * @return object |
||
67 | */ |
||
68 | protected function batch($id, $data) |
||
74 | } |
||
75 |