1 | <?php |
||
5 | class OrderStep_QuickDispatch extends OrderStep_Sent implements OrderStepInterface |
||
|
|||
6 | { |
||
7 | |||
8 | private static $defaults = array( |
||
9 | 'CustomerCanEdit' => 0, |
||
10 | 'CustomerCanPay' => 0, |
||
11 | 'CustomerCanCancel' => 0, |
||
12 | 'Name' => 'Dispatch', |
||
13 | 'Code' => 'QUICK_DISPATCH', |
||
14 | 'ShowAsInProcessOrder' => 1, |
||
15 | ); |
||
16 | |||
17 | |||
18 | /** |
||
19 | * Can run this step once any items have been submitted. |
||
20 | * makes sure the step is ready to run.... (e.g. check if the order is ready to be emailed as receipt). |
||
21 | * should be able to run this function many times to check if the step is ready. |
||
22 | * |
||
23 | * @see Order::doNextStatus |
||
24 | * |
||
25 | * @param Order object |
||
26 | * |
||
27 | * @return bool - true if the current step is ready to be run... |
||
28 | **/ |
||
29 | public function initStep(Order $order) |
||
33 | |||
34 | /** |
||
35 | * Add a member to the order - in case he / she is not a shop admin. |
||
36 | * |
||
37 | * @param Order object |
||
38 | * |
||
39 | * @return bool - true if run correctly. |
||
40 | **/ |
||
41 | public function doStep(Order $order) |
||
52 | |||
53 | /** |
||
54 | * go to next step if order has been submitted. |
||
55 | * |
||
56 | * @param Order $order |
||
57 | * |
||
58 | * @return OrderStep | Null (next step OrderStep) |
||
59 | **/ |
||
60 | public function nextStep(Order $order) |
||
64 | |||
65 | |||
66 | /** |
||
67 | * Explains the current order step. |
||
68 | * |
||
69 | * @return string |
||
70 | */ |
||
71 | protected function myDescription() |
||
75 | |||
76 | |||
77 | |||
78 | } |
||
79 |
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.