1 | <?php |
||
0 ignored issues
–
show
Coding Style
introduced
by
![]() |
|||
2 | declare(strict_types=1); |
||
3 | |||
4 | namespace Gewaer\Api\Controllers; |
||
5 | |||
6 | use Gewaer\Models\Languages; |
||
7 | |||
8 | /** |
||
9 | * Class LanguagesController |
||
10 | * |
||
11 | * @package Gewaer\Api\Controllers |
||
12 | * |
||
13 | */ |
||
14 | class LanguagesController extends BaseController |
||
15 | { |
||
16 | /* |
||
17 | * fields we accept to create |
||
18 | * |
||
19 | * @var array |
||
20 | */ |
||
21 | protected $createFields = []; |
||
22 | |||
23 | /* |
||
24 | * fields we accept to create |
||
25 | * |
||
26 | * @var array |
||
27 | */ |
||
28 | protected $updateFields = []; |
||
29 | |||
30 | /** |
||
31 | * set objects |
||
32 | * |
||
33 | * @return void |
||
34 | */ |
||
35 | public function onConstruct() |
||
36 | { |
||
37 | $this->model = new Languages(); |
||
38 | $this->additionalSearchFields = [ |
||
39 | ['is_deleted', ':', 0], |
||
40 | ]; |
||
41 | } |
||
42 | } |
||
43 |