Conditions | 1 |
Paths | 1 |
Total Lines | 10 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 8 |
CRAP Score | 1 |
Changes | 0 |
1 | <?php |
||
38 | 3 | public function onConstruct() |
|
39 | { |
||
40 | 3 | $this->model = new CustomFields(); |
|
41 | 3 | $this->model->users_id = $this->userData->getId(); |
|
42 | 3 | $this->model->companies_id = $this->userData->default_company; |
|
43 | 3 | $this->model->apps_id = $this->app->getId(); |
|
44 | |||
45 | 3 | $this->additionalSearchFields = [ |
|
46 | 3 | ['apps_id', ':', $this->app->getId()], |
|
47 | 3 | ['companies_id', ':', $this->userData->default_company], |
|
48 | ]; |
||
51 |