1 | <?php |
||
14 | class PriceListPage extends ProductGroup |
||
|
|||
15 | { |
||
16 | |||
17 | /** |
||
18 | * Standard SS variable. |
||
19 | */ |
||
20 | private static $singular_name = "Price List Page"; |
||
21 | public function i18n_singular_name() |
||
25 | |||
26 | /** |
||
27 | * Standard SS variable. |
||
28 | */ |
||
29 | private static $plural_name = "Price List Pages"; |
||
30 | public function i18n_plural_name() |
||
34 | |||
35 | /** |
||
36 | * standard SS variable |
||
37 | * @static Array | String |
||
38 | * |
||
39 | */ |
||
40 | private static $icon = "ecommerce_complex_pricing/images/treeicons/PriceListPage"; |
||
41 | |||
42 | /** |
||
43 | * standard SS variable |
||
44 | * @static Array |
||
45 | * |
||
46 | */ |
||
47 | private static $db = array( |
||
48 | "NumberOfLevelsToHide" => "Int" |
||
49 | ); |
||
50 | |||
51 | /** |
||
52 | * standard SS variable |
||
53 | * @static Array |
||
54 | * |
||
55 | */ |
||
56 | private static $defaults = array( |
||
57 | "LevelOfProductsToShow" => -1, |
||
58 | "NumberOfProductsPerPage" => 100, |
||
59 | "NumberOfLevelsToHide" => 1 |
||
60 | ); |
||
61 | |||
62 | |||
63 | /** |
||
64 | * standard SS variable |
||
65 | * @static Array |
||
66 | * |
||
67 | */ |
||
68 | private static $allowed_children = "none"; |
||
69 | |||
70 | |||
71 | /** |
||
72 | * standard SS Method |
||
73 | * return FieldSet |
||
74 | * |
||
75 | */ |
||
76 | public function getCMSFields() |
||
82 | |||
83 | |||
84 | /** |
||
85 | * Retrieve a set of products, based on the given parameters. |
||
86 | * Add Parent Group Pages to diplay within list. |
||
87 | * |
||
88 | * Note that you can hide the "top level" |
||
89 | * @return DataObjectSet | Null |
||
90 | */ |
||
91 | public function currentFinalProducts($alternativeSort = null) |
||
126 | } |
||
127 | |||
136 |
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.