1 | <?php |
||
20 | class Label extends Controller |
||
21 | { |
||
22 | |||
23 | /** |
||
24 | * Shippo Api model instance |
||
25 | * @var \gplcart\modules\shippo\models\Api $api |
||
26 | */ |
||
27 | protected $api; |
||
28 | |||
29 | /** |
||
30 | * Order model instance |
||
31 | * @var \gplcart\core\models\Order $order |
||
32 | */ |
||
33 | protected $order; |
||
34 | |||
35 | /** |
||
36 | * @var array |
||
37 | */ |
||
38 | protected $data_limit; |
||
39 | |||
40 | /** |
||
41 | * Label constructor. |
||
42 | * @param Order $order |
||
43 | * @param Api $api |
||
44 | */ |
||
45 | public function __construct(Order $order, Api $api) |
||
52 | |||
53 | /** |
||
54 | * Route page callback to display the shipping label overview page |
||
55 | */ |
||
56 | public function listLabel() |
||
68 | |||
69 | /** |
||
70 | * Sets pager |
||
71 | */ |
||
72 | protected function setPagerLabel() |
||
76 | |||
77 | /** |
||
78 | * Set filter on the label overview page |
||
79 | */ |
||
80 | protected function setFilterListLabel() |
||
85 | |||
86 | /** |
||
87 | * Returns an array of Shippo shipping methods |
||
88 | * @return array |
||
89 | */ |
||
90 | protected function getOrderListLabel() |
||
98 | |||
99 | /** |
||
100 | * Returns total number of orders |
||
101 | * @return integer |
||
102 | */ |
||
103 | protected function getTotalListLabel() |
||
112 | |||
113 | /** |
||
114 | * Set title on the shipping label overview page |
||
115 | */ |
||
116 | protected function setTitleListLabel() |
||
120 | |||
121 | /** |
||
122 | * Set breadcrumbs on the shipping label overview page |
||
123 | */ |
||
124 | protected function setBreadcrumbListLabel() |
||
140 | |||
141 | /** |
||
142 | * Handles different actions |
||
143 | */ |
||
144 | protected function actionLabel() |
||
188 | |||
189 | /** |
||
190 | * Render and output the shipping label overview page |
||
191 | */ |
||
192 | protected function outputListLabel() |
||
196 | |||
197 | } |
||
198 |