1 | <?php |
||
5 | class OrderStepFeefo extends OrderStep |
||
|
|||
6 | { |
||
7 | |||
8 | /** |
||
9 | * The OrderStatusLog that is relevant to the particular step. |
||
10 | * |
||
11 | * @var string |
||
12 | */ |
||
13 | protected $relevantLogEntryClassName = 'OrderStatusLog_FeefoLog'; |
||
14 | |||
15 | private static $db = array( |
||
16 | 'SendData' => 'Boolean', |
||
17 | 'FeedbackDelay' => 'Int' |
||
18 | ); |
||
19 | |||
20 | |||
21 | private static $defaults = array( |
||
22 | 'CustomerCanEdit' => 0, |
||
23 | 'CustomerCanCancel' => 0, |
||
24 | 'CustomerCanPay' => 0, |
||
25 | 'Name' => 'Send Order To Feefo', |
||
26 | 'Code' => 'FEEFO', |
||
27 | "ShowAsInProcessOrder" => true, |
||
28 | "HideStepFromCustomer" => true |
||
29 | ); |
||
30 | |||
31 | |||
32 | public function getCMSFields() |
||
54 | |||
55 | public function initStep(Order $order) |
||
59 | |||
60 | public function doStep(Order $order) |
||
85 | |||
86 | /** |
||
87 | * can continue if emails has been sent or if there is no need to send a receipt. |
||
88 | * @param DataObject $order Order |
||
89 | * @return DataObject | Null - DataObject = next OrderStep |
||
90 | **/ |
||
91 | public function nextStep(Order $order) |
||
95 | |||
96 | /** |
||
97 | * For some ordersteps this returns true... |
||
98 | * @return Boolean |
||
99 | **/ |
||
100 | protected function hasCustomerMessage() |
||
104 | |||
105 | /** |
||
106 | * Explains the current order step. |
||
107 | * @return String |
||
108 | */ |
||
109 | protected function myDescription() |
||
113 | |||
114 | public function convertArrayToHTMLList($array) |
||
123 | } |
||
124 |
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.