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 | /** Function that returns total number of user invoices */ |
||
117 | public function totalUserInvoices($userid): int |
||
121 | |||
122 | |||
123 | |||
124 | |||
125 | /** Function to get given user invoices by status */ |
||
126 | public function getUserInvoiceByStatus($userid, $status) |
||
130 | |||
131 | |||
132 | |||
133 | |||
134 | /** Function to get given user invoices by status */ |
||
135 | public function sumUserInvoiceByStatus($userid, $status) |
||
139 | |||
140 | |||
141 | |||
142 | |||
143 | /** Function to get given user invoices by status */ |
||
144 | public function totalUserInvoiceByStatus($userid, $status) |
||
148 | |||
149 | /** Function that gets full billing history */ |
||
150 | |||
151 | public function getAllBillingHistory() |
||
156 | |||
157 | |||
158 | /** Function that gets full user billing history*/ |
||
159 | |||
160 | public function getUserBillingHistory($userid) |
||
165 | |||
166 | |||
167 | |||
168 | |||
169 | public function getUserBillingHistoryByStartDate($userid, $start_date) |
||
174 | |||
175 | |||
176 | /** Function to get payment history of a given user for a given period */ |
||
177 | |||
178 | public function getUserBillingHistoryBetweenDates($userid, $start_date, $enddate) |
||
183 | |||
184 | |||
185 | /** |
||
186 | * Returns the model instance to be updated |
||
187 | */ |
||
188 | public function updateBillingHistory($invoiceid): BillingPayment |
||
192 | |||
193 | |||
194 | /** |
||
195 | * Returns the model instance to be updated |
||
196 | */ |
||
197 | public function updateInvoiceByInstance($invoiceid): Invoice |
||
201 | |||
202 | |||
203 | public function getUserBillingHistoryByStatus($userid, $status) |
||
208 | |||
209 | /** Return OrderItems for particular order |
||
210 | *@param $orderid |
||
211 | **/ |
||
212 | public function getOrderItems($orderid){ |
||
216 | |||
217 | |||
218 | /** Return OrderItems for particular order gets invoiceid |
||
219 | *@param $invoiceid |
||
220 | **/ |
||
221 | public function getOrderItemsByInvoiceId($invoiceid){ |
||
225 | } |
||
226 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.