1 | <?php |
||
12 | class StoreAdmin extends ModelAdminEcommerceBaseClass |
||
|
|||
13 | { |
||
14 | /** |
||
15 | * standard SS variable. |
||
16 | * |
||
17 | * @var string |
||
18 | */ |
||
19 | private static $url_segment = 'shop'; |
||
20 | |||
21 | /** |
||
22 | * standard SS variable. |
||
23 | * |
||
24 | * @var string |
||
25 | */ |
||
26 | private static $menu_title = 'Shop Settings'; |
||
27 | |||
28 | /** |
||
29 | * standard SS variable. |
||
30 | * |
||
31 | * @var int |
||
32 | */ |
||
33 | private static $menu_priority = 3.3; |
||
34 | |||
35 | /** |
||
36 | * standard SS variable. |
||
37 | * |
||
38 | * @var string |
||
39 | */ |
||
40 | private static $menu_icon = 'ecommerce/images/icons/cart-file.gif'; |
||
41 | |||
42 | public function init() |
||
46 | |||
47 | /** |
||
48 | *@return string (URLSegment) |
||
49 | **/ |
||
50 | public function urlSegmenter() |
||
54 | |||
55 | /** |
||
56 | * @return array Map of class name to an array of 'title' (see {@link $managed_models}) |
||
57 | * we make sure that the EcommerceDBConfig is FIRST |
||
58 | */ |
||
59 | public function getManagedModels() |
||
71 | |||
72 | |||
73 | public function getEditForm($id = null, $fields = null) |
||
92 | |||
93 | |||
94 | } |
||
95 |
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.