Completed
Pull Request — develop (#323)
by Mathias
15:36
created

CategoriesContainer   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 45
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 1
dl 0
loc 45
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
B init() 0 41 1
1
<?php
2
/**
3
 * YAWIK
4
 *
5
 * @filesource
6
 * @license MIT
7
 * @copyright  2013 - 2016 Cross Solution <http://cross-solution.de>
8
 */
9
  
10
/** */
11
namespace Jobs\Form;
12
13
use Core\Form\SummaryForm;
14
use Core\Form\WizardContainer;
15
16
/**
17
 * Container for the management of job categories.
18
 * 
19
 * @author Mathias Gelhausen <[email protected]>
20
 * @since 0.29
21
 */
22
class CategoriesContainer extends WizardContainer
23
{
24
25
    public function init()
26
    {
27
        $this->setForms([
28
            'professions' => [
29
                'options' => [
30
                    'label' => 'Professions',
31
                ],
32
                'entity' => 'professions',
33
                'property' => true,
34
                'forms' => [
35
                    'professions' => [
36
                        'type' => 'Core/Tree/Management',
37
                        'property' => true,
38
                        'options' => [
39
                            'enable_descriptions' => true,
40
                            'description' => /*@translate*/ 'Manage the professions you want to assign to jobs.',
41
                            'display_mode' => SummaryForm::DISPLAY_SUMMARY,
42
                        ],
43
                    ],
44
                ],
45
            ],
46
            'employmentTypes' => [
47
                'options' => [
48
                    'label' => 'Employment Types',
49
                ],
50
                'entity' => 'employmentTypes',
51
                'property' => true,
52
                'forms' => [
53
                    'employmentTypes' => [
54
                        'type' => 'Core/Tree/Management',
55
                        'property' => true,
56
                        'options' => [
57
                            'enable_descriptions' => true,
58
                            'description' => /*@translate*/ 'Manage the employment types you want to assign to jobs.',
59
                            'display_mode' => SummaryForm::DISPLAY_SUMMARY,
60
                        ],
61
                    ],
62
                ],
63
            ],
64
        ]);
65
    }
66
}
67