1 | <?php |
||
24 | class Queries extends Stats |
||
25 | { |
||
26 | |||
27 | public function orders() |
||
32 | |||
33 | |||
34 | public function orders_orderby($orderby) |
||
37 | |||
38 | |||
39 | |||
40 | public function orders_today() |
||
44 | |||
45 | |||
46 | public function get_orders_with_status($status) |
||
50 | |||
51 | public function pending_orders() |
||
55 | |||
56 | public function cancelled_orders() |
||
60 | |||
61 | public function completed_orders() |
||
65 | |||
66 | public function getOrderById($orderid) |
||
70 | |||
71 | public function getOrdersOnDate($date) |
||
75 | |||
76 | |||
77 | public function getOrdersOnDateRange($startdate, $enddate) |
||
80 | |||
81 | |||
82 | /** Function to get an invoice */ |
||
83 | public function getInvoiceById($invoiceid) |
||
87 | |||
88 | |||
89 | /** |
||
90 | * |
||
91 | * User Queries |
||
92 | */ |
||
93 | |||
94 | |||
95 | /** Function to get given user orders */ |
||
96 | public function getUserOrders($userid) |
||
100 | |||
101 | |||
102 | /** Function to get given user orders by status */ |
||
103 | public function getUserOrdersByStatus($userid, $status) |
||
107 | |||
108 | |||
109 | /** Function to get given user invoices */ |
||
110 | public function getUserInvoices($userid) |
||
114 | |||
115 | |||
116 | |||
117 | /** Function to get given user invoices by status */ |
||
118 | public function getUserInvoiceByStatus($userid, $status) |
||
122 | |||
123 | |||
124 | |||
125 | |||
126 | /** Function to get given user invoices by status */ |
||
127 | public function sumUserInvoiceByStatus($userid, $status) |
||
131 | |||
132 | |||
133 | |||
134 | |||
135 | /** Function to get given user invoices by status */ |
||
136 | public function totalUserInvoiceByStatus($userid, $status) |
||
140 | |||
141 | |||
142 | public function getAllBillingHistory() |
||
147 | |||
148 | |||
149 | public function getUserBillingHistory($userid) |
||
154 | |||
155 | |||
156 | |||
157 | public function getUserBillingHistoryByStatus($userid, $status) |
||
162 | } |
||
163 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.