1 | <?php |
||
15 | class Main |
||
16 | { |
||
17 | |||
18 | /** |
||
19 | * Implements hook "library.list" |
||
20 | * @param array $libraries |
||
21 | */ |
||
22 | public function hookLibraryList(array &$libraries) |
||
37 | |||
38 | /** |
||
39 | * Implements hook "country.get.after" |
||
40 | * @param string $code |
||
41 | * @param array $result |
||
42 | */ |
||
43 | public function hookCountryGetAfter($code, &$result) |
||
47 | |||
48 | /** |
||
49 | * Implements hook "country.list" |
||
50 | * @param array $countries |
||
51 | */ |
||
52 | public function hookCountryList(array &$countries) |
||
56 | |||
57 | /** |
||
58 | * Returns an array of country flag images keyed by country code |
||
59 | */ |
||
60 | public function getCountryFlags() |
||
77 | |||
78 | /** |
||
79 | * Sets a country flag image |
||
80 | * @param string $code |
||
81 | * @param array $country |
||
82 | */ |
||
83 | protected function setCountryFlag($code, array &$country) |
||
92 | |||
93 | /** |
||
94 | * Sets flags for an array of images |
||
95 | * @param array $countries |
||
96 | */ |
||
97 | protected function setCountryFlags(array &$countries) |
||
108 | |||
109 | } |
||
110 |