ILIAS
trunk Revision v11.0_alpha-1838-g59fc79e306b
◀ ilDoc Overview
Main Page
Related Pages
Modules
+
Namespaces
Namespace List
+
Namespace Members
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Functions
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
x
+
Variables
$
c
e
g
h
j
l
m
p
s
t
u
v
+
Enumerations
a
c
e
f
i
j
l
m
n
o
p
r
s
t
u
v
z
+
Enumerator
a
c
d
e
f
g
i
l
m
n
o
p
q
s
t
u
v
y
+
Data Structures
Data Structures
Data Structure Index
Class Hierarchy
+
Data Fields
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Ö
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Variables
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Ö
Enumerations
Enumerator
+
Files
File List
+
Globals
+
All
$
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
z
+
Functions
a
b
c
d
e
f
g
h
i
m
n
p
r
s
t
u
v
+
Variables
$
a
c
e
g
h
i
m
n
o
p
r
s
t
u
v
z
Enumerations
Enumerator
Examples
•
All
Data Structures
Namespaces
Files
Functions
Variables
Enumerations
Enumerator
Modules
Pages
class.ilCountrySelectInputGUI.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
26
class
ilCountrySelectInputGUI
extends
ilSelectInputGUI
27
{
28
public
function
__construct
(
29
string
$a_title =
""
,
30
string
$a_postvar =
""
31
) {
32
global
$DIC
;
33
34
$this->
lng
= $DIC->language();
35
parent::__construct
($a_title, $a_postvar);
36
$this->
setType
(
"cselect"
);
37
}
38
39
public
function
getOptions
(): array
40
{
41
$lng
=
$this->lng
;
42
43
$lng
->
loadLanguageModule
(
"meta"
);
44
$lng
->
loadLanguageModule
(
"form"
);
45
46
foreach
(
ilCountry::getCountryCodes
() as
$c
) {
47
$options
[
$c
] =
$lng
->
txt
(
"meta_c_"
. $c);
48
}
49
asort(
$options
);
50
51
$options
= array(
""
=>
"- "
.
$lng
->
txt
(
"form_please_select"
) .
" -"
)
52
+
$options
;
53
54
return
$options
;
55
}
56
}
ilSelectInputGUI
This class represents a selection list property in a property form.
Definition:
class.ilSelectInputGUI.php:26
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:26
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:28
$c
$c
Definition:
deliver.php:25
ilFormPropertyGUI\setType
setType(string $a_type)
Definition:
class.ilFormPropertyGUI.php:98
ilCountrySelectInputGUI\getOptions
getOptions()
Definition:
class.ilCountrySelectInputGUI.php:39
ilSelectInputGUI\$options
array $options
Definition:
class.ilSelectInputGUI.php:29
ILIAS\Repository\lng
lng()
Definition:
trait.GlobalDICDomainServices.php:61
$DIC
global $DIC
Definition:
shib_login.php:22
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:36
components
ILIAS
Form
classes
class.ilCountrySelectInputGUI.php
Generated on Wed Apr 16 2025 23:02:49 for ILIAS by
1.8.13 (using
Doxyfile
)