1 | <?php |
||
5 | class OrderStepFeefo extends OrderStep |
||
|
|||
6 | { |
||
7 | |||
8 | private static $db = array( |
||
9 | 'FeedbackDelay' => 'Int' |
||
10 | ); |
||
11 | |||
12 | |||
13 | private static $defaults = array( |
||
14 | 'CustomerCanEdit' => 0, |
||
15 | 'CustomerCanCancel' => 0, |
||
16 | 'CustomerCanPay' => 0, |
||
17 | 'Name' => 'Send Order To Feefo', |
||
18 | 'Code' => 'FEEFO', |
||
19 | "ShowAsInProcessOrder" => true, |
||
20 | "HideStepFromCustomer" => true |
||
21 | ); |
||
22 | |||
23 | |||
24 | public function getCMSFields() |
||
39 | |||
40 | public function initStep(Order $order) |
||
44 | |||
45 | public function doStep(Order $order) |
||
72 | |||
73 | /** |
||
74 | * can continue if emails has been sent or if there is no need to send a receipt. |
||
75 | * @param DataObject $order Order |
||
76 | * @return DataObject | Null - DataObject = next OrderStep |
||
77 | **/ |
||
78 | public function nextStep(Order $order) |
||
82 | |||
83 | /** |
||
84 | * For some ordersteps this returns true... |
||
85 | * @return Boolean |
||
86 | **/ |
||
87 | protected function hasCustomerMessage() |
||
91 | |||
92 | /** |
||
93 | * Explains the current order step. |
||
94 | * @return String |
||
95 | */ |
||
96 | protected function myDescription() |
||
100 | |||
101 | public function convertArrayToHTMLList($array){ |
||
109 | } |
||
110 |
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.