ILIAS
release_8 Revision v8.23
◀ ilDoc Overview
class.ilCharSelectorRadioGroupInputGUI.php
Go to the documentation of this file.
1
<?php
2
22
class
ilCharSelectorRadioGroupInputGUI
extends
ilRadioGroupInputGUI
23
{
24
public
function
__construct
(
25
string
$a_title =
""
,
26
string
$a_postvar =
""
27
) {
28
global
$DIC
;
29
30
parent::__construct
($a_title, $a_postvar);
31
$this->
lng
= $DIC->language();
32
}
33
34
public
function
checkInput
(): bool
35
{
36
$lng
=
$this->lng
;
37
if
(!parent::checkInput()) {
38
return
false
;
39
}
40
41
if
($this->
int
(
'char_selector_availability'
) ===
ilCharSelectorConfig::ENABLED
42
&& trim(implode(
""
, $this->
strArray
(
'char_selector_blocks'
))) ===
""
43
&& trim($this->
str
(
'char_selector_custom_items'
)) ===
''
) {
44
$this->
setAlert
(
$lng
->
txt
(
"char_selector_msg_blocks_or_custom_needed"
));
45
return
false
;
46
}
else
{
47
return
true
;
48
}
49
}
50
}
ilCharSelectorConfig\ENABLED
const ENABLED
Definition:
ilCharSelectorConfig.php:27
ilFormPropertyGUI\strArray
strArray($key)
Definition:
class.ilFormPropertyGUI.php:490
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:172
ilFormPropertyGUI\setAlert
setAlert(string $a_alert)
Definition:
class.ilFormPropertyGUI.php:139
ilCharSelectorRadioGroupInputGUI\checkInput
checkInput()
Definition:
class.ilCharSelectorRadioGroupInputGUI.php:34
ilCharSelectorRadioGroupInputGUI
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition:
class.ilCharSelectorRadioGroupInputGUI.php:22
$DIC
global $DIC
Definition:
feed.php:28
ilRadioGroupInputGUI
This class represents a property in a property form.
Definition:
class.ilRadioGroupInputGUI.php:26
ILIAS\Repository\lng
lng()
Definition:
trait.GlobalDICDomainServices.php:56
ILIAS\GlobalScreen\Provider\__construct
__construct(Container $dic, ilPlugin $plugin)
Definition:
PluginProviderHelper.php:37
ilCharSelectorRadioGroupInputGUI\__construct
__construct(string $a_title="", string $a_postvar="")
Definition:
class.ilCharSelectorRadioGroupInputGUI.php:24
ilFormPropertyGUI\str
str($key)
Definition:
class.ilFormPropertyGUI.php:469
ilFormPropertyGUI\$lng
ilLanguage $lng
Definition:
class.ilFormPropertyGUI.php:36
Services
UIComponent
CharSelector
classes
class.ilCharSelectorRadioGroupInputGUI.php
Generated on Wed Sep 3 2025 22:02:46 for ILIAS by
1.8.13 (using
Doxyfile
)