Total Complexity | 4 |
Total Lines | 70 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
12 | class LocationAdmin extends ModelAdmin |
||
13 | { |
||
14 | |||
15 | /** |
||
16 | * @var array |
||
17 | */ |
||
18 | private static $managed_models = array( |
||
|
|||
19 | Location::class, |
||
20 | LocationCategory::class, |
||
21 | ); |
||
22 | |||
23 | /** |
||
24 | * @var array |
||
25 | */ |
||
26 | private static $model_importers = array( |
||
27 | Location::class => LocationCsvBulkLoader::class, |
||
28 | LocationCategory::class => CsvBulkLoader::class, |
||
29 | ); |
||
30 | |||
31 | /** |
||
32 | * @var string |
||
33 | */ |
||
34 | private static $menu_title = 'Locator'; |
||
35 | /** |
||
36 | * @var string |
||
37 | */ |
||
38 | private static $url_segment = 'locator'; |
||
39 | |||
40 | /** |
||
41 | * @return array |
||
42 | */ |
||
43 | public function getExportFields() |
||
65 | } |
||
66 | |||
67 | /** |
||
68 | * @param null $id |
||
69 | * @param null $fields |
||
70 | * @return $this|Form |
||
71 | */ |
||
72 | public function getEditForm($id = null, $fields = null) |
||
84 |