ILIAS
release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
◀ ilDoc Overview
class.ilCountrySelectInputGUI.php
Go to the documentation of this file.
1
<?php
2
3
/* Copyright (c) 1998-2010 ILIAS open source, Extended GPL, see docs/LICENSE */
4
5
6
include_once(
"./Services/Form/classes/class.ilSelectInputGUI.php"
);
7
15
class
ilCountrySelectInputGUI
extends
ilSelectInputGUI
16
{
17
24
function
__construct
($a_title =
""
, $a_postvar =
""
)
25
{
26
parent::__construct($a_title, $a_postvar);
27
$this->
setType
(
"cselect"
);
28
}
29
35
public
function
getOptions
()
36
{
37
global
$lng
;
38
39
$lng
->loadLanguageModule(
"meta"
);
40
$lng
->loadLanguageModule(
"form"
);
41
42
include_once(
"./Services/Utilities/classes/class.ilCountry.php"
);
43
44
foreach
(
ilCountry::getCountryCodes
() as $c)
45
{
46
$options
[$c] =
$lng
->txt(
"meta_c_"
.$c);
47
}
48
asort(
$options
);
49
50
$options
= array(
""
=>
"- "
.
$lng
->txt(
"form_please_select"
).
" -"
)
51
+
$options
;
52
53
return
$options
;
54
}
55
}
ilCountrySelectInputGUI
This class represents a selection list property in a property form.
Definition:
class.ilCountrySelectInputGUI.php:16
ilCountrySelectInputGUI\getOptions
getOptions()
Get Options.
Definition:
class.ilCountrySelectInputGUI.php:35
ilCountrySelectInputGUI\__construct
__construct($a_title="", $a_postvar="")
Constructor.
Definition:
class.ilCountrySelectInputGUI.php:24
ilCountry\getCountryCodes
static getCountryCodes()
Get country codes (DIN EN 3166-1)
Definition:
class.ilCountry.php:18
ilFormPropertyGUI\setType
setType($a_type)
Set Type.
Definition:
class.ilFormPropertyGUI.php:58
ilSelectInputGUI
This class represents a selection list property in a property form.
Definition:
class.ilSelectInputGUI.php:18
ilSelectInputGUI\$options
$options
Definition:
class.ilSelectInputGUI.php:20
$lng
global $lng
Definition:
privfeed.php:40
Services
Form
classes
class.ilCountrySelectInputGUI.php
Generated on Wed Sep 24 2025 19:00:56 for ILIAS by
1.9.4 (using
Doxyfile
)