1 | <?php |
||
12 | class SalesAdminExtras extends ModelAdminEcommerceBaseClass |
||
|
|||
13 | { |
||
14 | /** |
||
15 | * standard SS variable. |
||
16 | * |
||
17 | * @var string |
||
18 | */ |
||
19 | private static $url_segment = 'sales-advanced'; |
||
20 | |||
21 | /** |
||
22 | * standard SS variable. |
||
23 | * |
||
24 | * @var string |
||
25 | */ |
||
26 | private static $menu_title = 'Sales Details'; |
||
27 | |||
28 | /** |
||
29 | * standard SS variable. |
||
30 | * |
||
31 | * @var int |
||
32 | */ |
||
33 | private static $menu_priority = 3.11; |
||
34 | |||
35 | /** |
||
36 | * Change this variable if you don't want the Import from CSV form to appear. |
||
37 | * This variable can be a boolean or an array. |
||
38 | * If array, you can list className you want the form to appear on. i.e. array('myClassOne','myClasstwo'). |
||
39 | */ |
||
40 | public $showImportForm = false; |
||
41 | |||
42 | /** |
||
43 | * standard SS variable. |
||
44 | * |
||
45 | * @var string |
||
46 | */ |
||
47 | private static $menu_icon = 'ecommerce/images/icons/money-file.gif'; |
||
48 | |||
49 | public function init() |
||
54 | |||
55 | |||
56 | /** |
||
57 | * @return array Map of class name to an array of 'title' (see {@link $managed_models}) |
||
58 | * we make sure that the Order Admin is FIRST |
||
59 | */ |
||
60 | public function getManagedModels() |
||
72 | |||
73 | /** |
||
74 | * @return DataList |
||
75 | */ |
||
76 | public function getList() |
||
97 | |||
98 | |||
99 | public function getEditForm($id = null, $fields = null) |
||
121 | } |
||
122 |
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.