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 | public function total_completed_orders() |
||
55 | |||
56 | /** |
||
57 | * Gets total count of orders today |
||
58 | */ |
||
59 | |||
60 | public function total_orders_today() |
||
64 | |||
65 | |||
66 | /** |
||
67 | * Gets total count of orders on a particular day |
||
68 | */ |
||
69 | public function total_orders_on_date($date) |
||
73 | |||
74 | /** |
||
75 | * Gets total count of orders on this month |
||
76 | */ |
||
77 | |||
78 | public function total_orders_this_month() |
||
82 | |||
83 | |||
84 | /** |
||
85 | * Gets total count of orders on a particular month and year |
||
86 | */ |
||
87 | public function total_orders_on_month($month, $year) |
||
91 | |||
92 | |||
93 | /** |
||
94 | * Gets total count of orders on given year |
||
95 | */ |
||
96 | public function total_orders_on_year($year) |
||
100 | |||
101 | |||
102 | /** |
||
103 | * Gets total count of invoices |
||
104 | */ |
||
105 | public function total_invoices() |
||
109 | |||
110 | |||
111 | /** |
||
112 | * Gets total count of invoices today |
||
113 | */ |
||
114 | |||
115 | public function total_invoices_today() |
||
119 | } |
||
120 |