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() |
||
31 | |||
32 | /** |
||
33 | * Change this variable if you don't want the Import from CSV form to appear. |
||
34 | * This variable can be a boolean or an array. |
||
35 | * If array, you can list className you want the form to appear on. i.e. array('myClassOne','myClasstwo'). |
||
36 | */ |
||
37 | public $showImportForm = false; |
||
38 | |||
39 | /** |
||
40 | * |
||
41 | * @param DataObject $record |
||
42 | * |
||
43 | * @return Form |
||
44 | */ |
||
45 | function oneItemForm($record) |
||
69 | |||
70 | /** |
||
71 | * Define which fields are used in the {@link getEditForm} GridField export. |
||
72 | * By default, it uses the summary fields from the model definition. |
||
73 | * |
||
74 | * @return array |
||
75 | */ |
||
76 | public function getExportFields() { |
||
83 | |||
84 | |||
85 | } |
||
86 |
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.