1 | <?php |
||
8 | class ModelAdminEcommerceBaseClass extends ModelAdmin |
||
|
|||
9 | { |
||
10 | /** |
||
11 | * @return array Map of class name to an array of 'title' (see {@link $managed_models}) |
||
12 | */ |
||
13 | public function getManagedModels() |
||
21 | |||
22 | /** |
||
23 | * Change this variable if you don't want the Import from CSV form to appear. |
||
24 | * This variable can be a boolean or an array. |
||
25 | * If array, you can list className you want the form to appear on. i.e. array('myClassOne','myClasstwo'). |
||
26 | */ |
||
27 | public $showImportForm = false; |
||
28 | |||
29 | /** |
||
30 | * |
||
31 | * @param DataObject $record |
||
32 | * |
||
33 | * @return Form |
||
34 | */ |
||
35 | function oneItemForm($record) |
||
59 | |||
60 | /** |
||
61 | * Define which fields are used in the {@link getEditForm} GridField export. |
||
62 | * By default, it uses the summary fields from the model definition. |
||
63 | * |
||
64 | * @return array |
||
65 | */ |
||
66 | public function getExportFields() { |
||
73 | |||
74 | |||
75 | } |
||
76 |
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.