1 | <?php |
||
17 | class Module |
||
18 | { |
||
19 | |||
20 | /** |
||
21 | * Library class instance |
||
22 | * @var \gplcart\core\Library $library |
||
23 | */ |
||
24 | protected $library; |
||
25 | |||
26 | /** |
||
27 | * @param Library $library |
||
28 | */ |
||
29 | public function __construct(Library $library) |
||
33 | |||
34 | /** |
||
35 | * Implements hook "library.list" |
||
36 | * @param array $libraries |
||
37 | */ |
||
38 | public function hookLibraryList(array &$libraries) |
||
55 | |||
56 | /** |
||
57 | * Implements hook "country.get.after" |
||
58 | * @param string $code |
||
59 | * @param array $result |
||
60 | */ |
||
61 | public function hookCountryGetAfter($code, &$result) |
||
65 | |||
66 | /** |
||
67 | * Implements hook "country.list" |
||
68 | * @param array $countries |
||
69 | */ |
||
70 | public function hookCountryList(array &$countries) |
||
74 | |||
75 | /** |
||
76 | * Implements hook "module.enable.after" |
||
77 | */ |
||
78 | public function hookModuleEnableAfter() |
||
82 | |||
83 | /** |
||
84 | * Implements hook "module.disable.after" |
||
85 | */ |
||
86 | public function hookModuleDisableAfter() |
||
90 | |||
91 | /** |
||
92 | * Implements hook "module.install.after" |
||
93 | */ |
||
94 | public function hookModuleInstallAfter() |
||
98 | |||
99 | /** |
||
100 | * Implements hook "module.uninstall.after" |
||
101 | */ |
||
102 | public function hookModuleUninstallAfter() |
||
106 | |||
107 | /** |
||
108 | * Returns an array of country flag images keyed by country code |
||
109 | */ |
||
110 | public function getCountryFlags() |
||
126 | |||
127 | /** |
||
128 | * Sets a country flag image |
||
129 | * @param string $code |
||
130 | * @param array $country |
||
131 | */ |
||
132 | protected function setCountryFlag($code, array &$country) |
||
140 | |||
141 | /** |
||
142 | * Sets flags for an array of images |
||
143 | * @param array $countries |
||
144 | */ |
||
145 | protected function setCountryFlags(array &$countries) |
||
155 | |||
156 | } |
||
157 |