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() |
||
28 | |||
29 | /** |
||
30 | * Change this variable if you don't want the Import from CSV form to appear. |
||
31 | * This variable can be a boolean or an array. |
||
32 | * If array, you can list className you want the form to appear on. i.e. array('myClassOne','myClasstwo'). |
||
33 | */ |
||
34 | public $showImportForm = false; |
||
35 | |||
36 | /** |
||
37 | * |
||
38 | * @param DataObject $record |
||
39 | * |
||
40 | * @return Form |
||
41 | */ |
||
42 | function oneItemForm($record) |
||
50 | |||
51 | |||
52 | } |
||
53 |
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.