1 | <?php |
||
4 | class SecondHandProductValue extends SS_Report |
||
|
|||
5 | { |
||
6 | /** |
||
7 | * The class of object being managed by this report. |
||
8 | * Set by overriding in your subclass. |
||
9 | */ |
||
10 | protected $dataClass = 'SecondHandProduct'; |
||
11 | |||
12 | /** |
||
13 | * @return string |
||
14 | */ |
||
15 | public function title() |
||
27 | |||
28 | /** |
||
29 | * not sure if this is used in SS3. |
||
30 | * |
||
31 | * @return string |
||
32 | */ |
||
33 | public function group() |
||
37 | |||
38 | /** |
||
39 | * @return int - for sorting reports |
||
40 | */ |
||
41 | public function sort() |
||
45 | |||
46 | /** |
||
47 | * working out the items. |
||
48 | * |
||
49 | * @return DataList |
||
50 | */ |
||
51 | public function sourceRecords($params = null) |
||
60 | |||
61 | /** |
||
62 | * @return array |
||
63 | */ |
||
64 | public function columns() |
||
77 | |||
78 | public function getReportField() |
||
87 | } |
||
88 |
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.