1 | <?php |
||
2 | |||
3 | namespace SilverShop\Admin; |
||
4 | |||
5 | use SilverShop\Model\Variation\AttributeType; |
||
6 | use SilverShop\Page\Product; |
||
7 | use SilverShop\Page\ProductCategory; |
||
8 | use SilverStripe\Admin\ModelAdmin; |
||
9 | |||
10 | /** |
||
11 | * Product Catalog Admin |
||
12 | **/ |
||
13 | class ProductCatalogAdmin extends ModelAdmin |
||
14 | { |
||
15 | private static $url_segment = 'catalog'; |
||
0 ignored issues
–
show
introduced
by
Loading history...
|
|||
16 | |||
17 | private static $menu_title = 'Catalog'; |
||
0 ignored issues
–
show
|
|||
18 | |||
19 | private static $menu_priority = 5; |
||
0 ignored issues
–
show
|
|||
20 | |||
21 | private static $menu_icon_class = 'silvershop-icon-catalog'; |
||
0 ignored issues
–
show
|
|||
22 | |||
23 | private static $managed_models = [ |
||
0 ignored issues
–
show
|
|||
24 | Product::class, |
||
25 | ProductCategory::class, |
||
26 | AttributeType::class, |
||
27 | ]; |
||
28 | |||
29 | private static $model_importers = [ |
||
0 ignored issues
–
show
|
|||
30 | Product::class => ProductBulkLoader::class, |
||
31 | ]; |
||
32 | } |
||
33 |