1 | <?php |
||
21 | class OrderReport_Popup extends Controller |
||
|
|||
22 | { |
||
23 | |||
24 | //basic security for controller |
||
25 | public static $allowed_actions = array( |
||
26 | 'index' => 'SHOPADMIN', |
||
27 | 'packingslip' => 'SHOPADMIN', |
||
28 | 'invoice' => 'SHOPADMIN' |
||
29 | ); |
||
30 | |||
31 | public function init() |
||
46 | |||
47 | /** |
||
48 | * This is the default action of this |
||
49 | * controller without calling any |
||
50 | * explicit action, such as "show". |
||
51 | * |
||
52 | * This default "action" will show |
||
53 | * order information in a printable view. |
||
54 | */ |
||
55 | public function index() |
||
60 | |||
61 | |||
62 | public function Link($action = null) |
||
66 | |||
67 | /** |
||
68 | * This method is used primarily for cheque orders. |
||
69 | * |
||
70 | * @return unknown |
||
71 | */ |
||
72 | public function SingleOrder() |
||
95 | |||
96 | /** |
||
97 | * @TODO Get orders by ID or using current filter if ID is not numeric (for getting all orders) |
||
98 | * @TODO Define what the role of this method is. Is it for templates, is it for a report? |
||
99 | * |
||
100 | * @return unknown |
||
101 | */ |
||
102 | public function DisplayFinalisedOrder() |
||
117 | |||
118 | public function SiteConfig() |
||
122 | } |
||
123 |
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.