1 | <?php |
||
23 | class Stats |
||
24 | { |
||
25 | |||
26 | /** |
||
27 | * Gets total count of orders |
||
28 | */ |
||
29 | public function total_orders() |
||
34 | |||
35 | /** |
||
36 | * Gets total count of cancelled orders |
||
37 | */ |
||
38 | public function total_cancelled_orders() |
||
42 | |||
43 | /** |
||
44 | * Gets total count of pending orders |
||
45 | */ |
||
46 | public function total_pending_orders() |
||
50 | |||
51 | /** |
||
52 | * Gets total sum of pending orders |
||
53 | */ |
||
54 | public function sum_of_pending_amount(){ |
||
58 | |||
59 | public function total_completed_orders() |
||
63 | |||
64 | /** |
||
65 | * Gets total count of orders today |
||
66 | */ |
||
67 | |||
68 | public function total_orders_today() |
||
72 | |||
73 | |||
74 | /** |
||
75 | * Gets total count of orders on a particular day |
||
76 | */ |
||
77 | public function total_orders_on_date($date) |
||
81 | |||
82 | /** |
||
83 | * Gets total count of orders on this month |
||
84 | */ |
||
85 | |||
86 | public function total_orders_this_month() |
||
90 | |||
91 | |||
92 | /** |
||
93 | * Gets total count of orders on a particular month and year |
||
94 | */ |
||
95 | public function total_orders_on_month($month, $year) |
||
99 | |||
100 | |||
101 | /** |
||
102 | * Gets total count of orders on given year |
||
103 | */ |
||
104 | public function total_orders_on_year($year) |
||
108 | |||
109 | |||
110 | /** |
||
111 | * Gets total count of invoices |
||
112 | */ |
||
113 | public function total_invoices() |
||
117 | |||
118 | |||
119 | /** |
||
120 | * Gets total count of invoices today |
||
121 | */ |
||
122 | |||
123 | public function total_invoices_today() |
||
127 | |||
128 | |||
129 | /** |
||
130 | * Gets total count of pending orders |
||
131 | */ |
||
132 | public function total_pending_invoices() |
||
136 | |||
137 | /** |
||
138 | * Gets total sum of pending orders |
||
139 | */ |
||
140 | public function sum_of_pending_invoice_amount(){ |
||
144 | |||
145 | |||
146 | } |
||
147 |