1 | <?php |
||
11 | class RecommendedProductsModifier extends OrderModifier |
||
|
|||
12 | { |
||
13 | |||
14 | //-------------------------------------------------------------------- *** static variables |
||
15 | |||
16 | private static $singular_name = "Recommended Product"; |
||
17 | public function i18n_singular_name() |
||
21 | |||
22 | private static $plural_name = "Recommended Products"; |
||
23 | public function i18n_plural_name() |
||
27 | |||
28 | //-------------------------------------------------------------------- *** static functions |
||
29 | // ######################################## *** form functions (e. g. Showform and getform) |
||
30 | |||
31 | |||
32 | protected $recommendedBuyables = null; |
||
33 | |||
34 | /** |
||
35 | * standard Modifier Method |
||
36 | * @return Boolean |
||
37 | */ |
||
38 | public function ShowForm() |
||
71 | |||
72 | /** |
||
73 | * Should the form be included in the editable form |
||
74 | * on the checkout page? |
||
75 | * @return Boolean |
||
76 | */ |
||
77 | public function ShowFormInEditableOrderTable() |
||
81 | |||
82 | /** |
||
83 | * |
||
84 | * @return Form |
||
85 | */ |
||
86 | public function getModifierForm(Controller $optionalController = null, Validator $optionalValidator = null) |
||
99 | |||
100 | //-------------------------------------------------------------------- *** display functions |
||
101 | public function ShowInTable() |
||
105 | |||
106 | public function CanRemove() |
||
110 | |||
111 | |||
112 | // -------------------------------------------------------------------- *** table values |
||
113 | public function LiveCalculatedTotal() |
||
121 | |||
122 | //-------------------------------------------------------------------- *** table titles |
||
123 | public function LiveName() |
||
127 | |||
128 | public function Name() |
||
136 | |||
137 | //-------------------------------------------------------------------- *** database functions |
||
138 | } |
||
139 |
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.