55 'ae' => _(
"United Arab Emirates"),
56 'af' => _(
"Afghanistan"),
57 'ag' => _(
"Antigua & Barbuda"),
58 'ai' => _(
"Anguilla"),
61 'an' => _(
"Netherlands Antilles"),
63 'aq' => _(
"Antarctica"),
64 'ar' => _(
"Argentina"),
65 'as' => _(
"American Samoa"),
67 'au' => _(
"Australia"),
69 'az' => _(
"Azerbaijan"),
70 'ba' => _(
"Bosnia and Herzegovina"),
71 'bb' => _(
"Barbados"),
72 'bd' => _(
"Bangladesh"),
74 'bf' => _(
"Burkina Faso"),
75 'bg' => _(
"Bulgaria"),
80 'bn' => _(
"Brunei Darussalam"),
85 'bv' => _(
"Bouvet Island"),
86 'bw' => _(
"Botswana"),
90 'cc' => _(
"Cocos (Keeling) Islands"),
91 'cf' => _(
"Central African Republic"),
93 'ch' => _(
"Switzerland"),
94 'ci' => _(
"Côte D\'ivoire (Ivory Coast)"),
95 'ck' => _(
"Cook Iislands"),
97 'cm' => _(
"Cameroon"),
99 'co' => _(
"Colombia"),
100 'cr' => _(
"Costa Rica"),
102 'cv' => _(
"Cape Verde"),
103 'cx' => _(
"Christmas Island"),
105 'cz' => _(
"Czech Republic"),
106 'de' => _(
"Germany"),
107 'dj' => _(
"Djibouti"),
108 'dk' => _(
"Denmark"),
109 'dm' => _(
"Dominica"),
110 'do' => _(
"Dominican Republic"),
111 'dz' => _(
"Algeria"),
112 'ec' => _(
"Ecuador"),
113 'ee' => _(
"Estonia"),
115 'eh' => _(
"Western Sahara"),
116 'er' => _(
"Eritrea"),
118 'et' => _(
"Ethiopia"),
119 'fi' => _(
"Finland"),
121 'fk' => _(
"Falkland Islands"),
122 'fm' => _(
"Micronesia"),
123 'fo' => _(
"Faroe Islands"),
125 'fx' => _(
"France, Metropolitan"),
127 'gb' => _(
"United Kingdom"),
128 'gd' => _(
"Grenada"),
129 'ge' => _(
"Georgia"),
130 'gf' => _(
"French Guiana"),
132 'gi' => _(
"Gibraltar"),
133 'gl' => _(
"Greenland"),
136 'gp' => _(
"Guadeloupe"),
137 'gq' => _(
"Equatorial Guinea"),
139 'gs' => _(
"South Georgia and the South Sandwich Islands"),
140 'gt' => _(
"Guatemala"),
142 'gw' => _(
"Guinea-Bissau"),
144 'hk' => _(
"Hong Kong"),
145 'hm' => _(
"Heard & McDonald Islands"),
146 'hn' => _(
"Honduras"),
147 'hr' => _(
"Croatia"),
149 'hu' => _(
"Hungary"),
150 'id' => _(
"Indonesia"),
151 'ie' => _(
"Ireland"),
154 'io' => _(
"British Indian Ocean Territory"),
156 'ir' => _(
"Islamic Republic of Iran"),
157 'is' => _(
"Iceland"),
159 'jm' => _(
"Jamaica"),
163 'kg' => _(
"Kyrgyzstan"),
164 'kh' => _(
"Cambodia"),
165 'ki' => _(
"Kiribati"),
166 'km' => _(
"Comoros"),
167 'kn' => _(
"St. Kitts and Nevis"),
168 'kp' => _(
"Korea, Democratic People\'s Republic of"),
169 'kr' => _(
"Korea, Republic of"),
171 'ky' => _(
"Cayman Islands"),
172 'kz' => _(
"Kazakhstan"),
173 'la' => _(
"Lao People\'s Democratic Republic"),
174 'lb' => _(
"Lebanon"),
175 'lc' => _(
"Saint Lucia"),
176 'li' => _(
"Liechtenstein"),
177 'lk' => _(
"Sri Lanka"),
178 'lr' => _(
"Liberia"),
179 'ls' => _(
"Lesotho"),
180 'lt' => _(
"Lithuania"),
181 'lu' => _(
"Luxembourg"),
183 'ly' => _(
"Libyan Arab Jamahiriya"),
184 'ma' => _(
"Morocco"),
186 'md' => _(
"Moldova, Republic of"),
187 'mg' => _(
"Madagascar"),
188 'mh' => _(
"Marshall Islands"),
190 'mn' => _(
"Mongolia"),
191 'mm' => _(
"Myanmar"),
193 'mp' => _(
"Northern Mariana Islands"),
194 'mq' => _(
"Martinique"),
195 'mr' => _(
"Mauritania"),
196 'ms' => _(
"Monserrat"),
198 'mu' => _(
"Mauritius"),
199 'mv' => _(
"Maldives"),
202 'my' => _(
"Malaysia"),
203 'mz' => _(
"Mozambique"),
204 'na' => _(
"Namibia"),
205 'nc' => _(
"New Caledonia"),
207 'nf' => _(
"Norfolk Island"),
208 'ng' => _(
"Nigeria"),
209 'ni' => _(
"Nicaragua"),
210 'nl' => _(
"Netherlands"),
215 'nz' => _(
"New Zealand"),
219 'pf' => _(
"French Polynesia"),
220 'pg' => _(
"Papua New Guinea"),
221 'ph' => _(
"Philippines"),
222 'pk' => _(
"Pakistan"),
224 'pm' => _(
"St. Pierre & Miquelon"),
225 'pn' => _(
"Pitcairn"),
226 'pr' => _(
"Puerto Rico"),
227 'pt' => _(
"Portugal"),
229 'py' => _(
"Paraguay"),
231 're' => _(
"Réunion"),
232 'ro' => _(
"Romania"),
233 'ru' => _(
"Russian Federation"),
235 'sa' => _(
"Saudi Arabia"),
236 'sb' => _(
"Solomon Islands"),
237 'sc' => _(
"Seychelles"),
240 'sg' => _(
"Singapore"),
241 'sh' => _(
"St. Helena"),
242 'si' => _(
"Slovenia"),
243 'sj' => _(
"Svalbard & Jan Mayen Islands"),
244 'sk' => _(
"Slovakia"),
245 'sl' => _(
"Sierra Leone"),
246 'sm' => _(
"San Marino"),
247 'sn' => _(
"Senegal"),
248 'so' => _(
"Somalia"),
249 'sr' => _(
"Suriname"),
250 'st' => _(
"Sao Tome & Principe"),
251 'sv' => _(
"El Salvador"),
252 'sy' => _(
"Syrian Arab Republic"),
253 'sz' => _(
"Swaziland"),
254 'tc' => _(
"Turks & Caicos Islands"),
256 'tf' => _(
"French Southern Territories"),
258 'th' => _(
"Thailand"),
259 'tj' => _(
"Tajikistan"),
260 'tk' => _(
"Tokelau"),
261 'tm' => _(
"Turkmenistan"),
262 'tn' => _(
"Tunisia"),
264 'tp' => _(
"East Timor"),
266 'tt' => _(
"Trinidad & Tobago"),
268 'tw' => _(
"Taiwan, Province of China"),
269 'tz' => _(
"Tanzania, United Republic of"),
270 'ua' => _(
"Ukraine"),
272 'um' => _(
"United States Minor Outlying Islands"),
273 'us' => _(
"United States of America"),
274 'uy' => _(
"Uruguay"),
275 'uz' => _(
"Uzbekistan"),
276 'va' => _(
"Vatican City State (Holy See)"),
277 'vc' => _(
"St. Vincent & the Grenadines"),
278 've' => _(
"Venezuela"),
279 'vg' => _(
"British Virgin Islands"),
280 'vi' => _(
"United States Virgin Islands"),
281 'vn' => _(
"Viet Nam"),
282 'vu' => _(
"Vanuatu"),
283 'wf' => _(
"Wallis & Futuna Islands"),
286 'yt' => _(
"Mayotte"),
287 'yu' => _(
"Yugoslavia"),
288 'za' => _(
"South Africa"),
291 'zw' => _(
"Zimbabwe")
296 if (is_array($iso)) {
297 return array_intersect_key($countries, $iso);
299 return isset($countries[$iso]) ? $countries[$iso] :
'';
316 parent::__construct(
$name, $parameters, $form);
318 if (isset($parameters[
'defaultValue'])) {
319 $this->defaults[
'defaultValue'] = $parameters[
'defaultValue'];
322 if (isset($parameters[
'priorityCountries'])) {
323 $this->defaults[
'priorityCountries'] = $parameters[
'priorityCountries'];
326 $this->list = isset($parameters[
'countries'])
327 ? $parameters[
'countries']
331 $this->list = array_change_key_case($this->list, CASE_LOWER);
337 if (defined(
"DEPAGE_LANG") && isset($parameters[
'priorityCountries'][DEPAGE_LANG])) {
338 $priorityCountries = array_reverse($parameters[
'priorityCountries'][DEPAGE_LANG],
true);
340 $priorityCountries = array_change_key_case($priorityCountries, CASE_LOWER);
342 foreach ($priorityCountries as &$country_code) {
343 if (isset($this->list[$country_code])) {
344 $top = array($country_code => $this->list[$country_code]);
345 unset($this->list[$country_code]);
351 $this->list = array(
'' => _(
"Please Select")) +
$this->list;
365 parent::setDefaults();
367 $this->defaults[
'skin'] =
'select';
HTML-multiple-choice country input select .
$list
Contains list of ISO countries.
__construct($name, $parameters, $form)
multiple class constructor
static getCountries($iso=null)
Gets the Default Countries list.
setDefaults()
collects initial values across subclasses.
HTML-single-choice input type i.e.
Classes for HTML input-elements.