1 | <?php |
||
13 | class OrderStatusLog_Submitted extends OrderStatusLog |
||
|
|||
14 | { |
||
15 | private static $db = array( |
||
16 | 'OrderAsHTML' => 'HTMLText', |
||
17 | 'OrderAsString' => 'Text', |
||
18 | 'SequentialOrderNumber' => 'Int', |
||
19 | 'Total' => 'Currency', |
||
20 | 'SubTotal' => 'Currency', |
||
21 | ); |
||
22 | |||
23 | private static $defaults = array( |
||
24 | 'InternalUseOnly' => true, |
||
25 | ); |
||
26 | |||
27 | private static $casting = array( |
||
28 | 'HTMLRepresentation' => 'HTMLText', |
||
29 | ); |
||
30 | |||
31 | private static $singular_name = 'Submitted Order'; |
||
32 | public function i18n_singular_name() |
||
36 | |||
37 | private static $plural_name = 'Submitted Orders'; |
||
38 | public function i18n_plural_name() |
||
42 | |||
43 | /** |
||
44 | * Standard SS variable. |
||
45 | * |
||
46 | * @var string |
||
47 | */ |
||
48 | private static $description = 'The record that the order has been submitted by the customer. This is important in e-commerce, because from here, nothing can change to the order.'; |
||
49 | |||
50 | /** |
||
51 | * Standard SS method. |
||
52 | * |
||
53 | * @param Member $member |
||
54 | * |
||
55 | * @return bool |
||
56 | */ |
||
57 | public function canDelete($member = null) |
||
61 | |||
62 | /** |
||
63 | * Standard SS method. |
||
64 | * |
||
65 | * @param Member $member |
||
66 | * |
||
67 | * @return bool |
||
68 | */ |
||
69 | public function canEdit($member = null) |
||
73 | |||
74 | /** |
||
75 | * Standard SS method. |
||
76 | * |
||
77 | * @param Member $member |
||
78 | * |
||
79 | * @return bool |
||
80 | */ |
||
81 | public function canCreate($member = null) |
||
93 | |||
94 | /** |
||
95 | * can only be created when the order is submitted. |
||
96 | * |
||
97 | *@return string |
||
98 | **/ |
||
99 | public function HTMLRepresentation() |
||
113 | |||
114 | /** |
||
115 | * adding a sequential order number. |
||
116 | */ |
||
117 | public function onBeforeWrite() |
||
148 | } |
||
149 |
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.