ILIAS
trunk Revision v11.0_alpha-2638-g80c1d007f79
◀ ilDoc Overview
class.ilCountrySelectInputGUI.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
27
class
ilCountrySelectInputGUI
extends
ilSelectInputGUI
28
{
29
public
function
__construct
(
30
string
$a_title =
""
,
31
string
$a_postvar =
""
32
) {
33
global
$DIC
;
34
35
$this->
lng
= $DIC->language();
36
parent::__construct
($a_title, $a_postvar);
37
$this->
setType
(
"cselect"
);
38
}
39
40
public
function
getOptions
(): array
41
{
42
$lng
=
$this->lng
;
43
44
$lng
->
loadLanguageModule
(
"meta"
);
45
$lng
->
loadLanguageModule
(
"form"
);
46
47
foreach
(
ilCountry::getCountryCodes
() as
$c
) {
48
$options
[
$c
] =
$lng
->
txt
(
"meta_c_"
. $c);
49
}
50
asort(
$options
);
51
52
$options
= array(
""
=>
"- "
.
$lng
->
txt
(
"form_please_select"
) .
" -"
)
53
+
$options
;
54
55
return
$options
;
56
}
57
}
ilSelectInputGUI
This class represents a selection list property in a property form.
Definition:
class.ilSelectInputGUI.php:27
ilLanguage\txt
txt(string $a_topic, string $a_default_lang_fallback_mod="")
gets the text for a given topic if the topic is not in the list, the topic itself with "-" will be re...
Definition:
class.ilLanguage.php:170
ilCountrySelectInputGUI
This class represents a selection list property in a property form.
Definition:
class.ilCountrySelectInputGUI.php:27
ilLanguage\loadLanguageModule
loadLanguageModule(string $a_module)
Load language module.
Definition:
class.ilLanguage.php:226
ilCountrySelectInputGUI\__construct
__construct(string $a_title="", string $a_postvar="")
Definition:
class.ilCountrySelectInputGUI.php:29
$c
$c
Definition:
deliver.php:25
ilFormPropertyGUI\setType
setType(string $a_type)
Definition:
class.ilFormPropertyGUI.php:99
ilCountrySelectInputGUI\getOptions
getOptions()
Definition:
class.ilCountrySelectInputGUI.php:40
ilSelectInputGUI\$options
array $options
Definition:
class.ilSelectInputGUI.php:30
ILIAS\Repository\lng
lng()
Definition:
trait.GlobalDICDomainServices.php:61
$DIC
global $DIC
Definition:
shib_login.php:26
ILIAS\GlobalScreen\Provider\__construct
__construct(Container $dic, ilPlugin $plugin)
Definition:
PluginProviderHelper.php:37
ilCountry\getCountryCodes
static getCountryCodes()
Get country codes (DIN EN 3166-1)
Definition:
class.ilCountry.php:29
ilFormPropertyGUI\$lng
ilLanguage $lng
Definition:
class.ilFormPropertyGUI.php:37
components
ILIAS
Form
classes
class.ilCountrySelectInputGUI.php
Generated on Sun Aug 31 2025 23:03:00 for ILIAS by
1.8.13 (using
Doxyfile
)