Total Complexity | 1 |
Total Lines | 36 |
Duplicated Lines | 0 % |
Changes | 4 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
16 | class CustomFieldsValuesController extends BaseController |
||
17 | { |
||
18 | /* |
||
19 | * fields we accept to create |
||
20 | * |
||
21 | * @var array |
||
22 | */ |
||
23 | protected $createFields = [ |
||
24 | 'custom_fields_id', |
||
25 | 'label', |
||
26 | 'value', |
||
27 | 'is_default' |
||
28 | ]; |
||
29 | |||
30 | /* |
||
31 | * fields we accept to create |
||
32 | * |
||
33 | * @var array |
||
34 | */ |
||
35 | protected $updateFields = [ |
||
36 | 'custom_fields_id', |
||
37 | 'label', |
||
38 | 'value', |
||
39 | 'is_default' |
||
40 | ]; |
||
41 | |||
42 | /** |
||
43 | * set objects. |
||
44 | * |
||
45 | * @return void |
||
46 | */ |
||
47 | public function onConstruct() |
||
55 |