ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
◀ ilDoc Overview
class.ilCharSelectorRadioGroupInputGUI.php
Go to the documentation of this file.
1
<?
php
2
/* Copyright (c) 1998-2013 ILIAS open source, Extended GPL, see docs/LICENSE */
3
7
class
ilCharSelectorRadioGroupInputGUI
extends
ilRadioGroupInputGUI
8
{
9
13
public
function
__construct
($a_title =
""
, $a_postvar =
""
)
14
{
15
global
$DIC
;
16
17
parent::__construct($a_title, $a_postvar);
18
$this->lng = $DIC->language();
19
}
20
26
public
function
checkInput
()
27
{
28
$lng
=
$this->lng
;
29
if
(!parent::checkInput()) {
30
return
false
;
31
}
32
33
if
(
$_POST
[
'char_selector_availability'
] ==
ilCharSelectorConfig::ENABLED
34
and
trim(implode(
$_POST
[
'char_selector_blocks'
])) ==
""
35
and
trim(
$_POST
[
'char_selector_custom_items'
]) ==
''
) {
36
$this->
setAlert
(
$lng
->txt(
"char_selector_msg_blocks_or_custom_needed"
));
37
return
false
;
38
}
else
{
39
return
true
;
40
}
41
}
42
}
ilCharSelectorConfig\ENABLED
const ENABLED
Definition:
ilCharSelectorConfig.php:12
ilFormPropertyGUI\$lng
$lng
Definition:
class.ilFormPropertyGUI.php:21
$DIC
global $DIC
Definition:
saml.php:7
ilCharSelectorRadioGroupInputGUI\checkInput
checkInput()
Additional check for either block or custom chars.
Definition:
class.ilCharSelectorRadioGroupInputGUI.php:26
ilCharSelectorRadioGroupInputGUI
Radio input for character seelctor definition.
Definition:
class.ilCharSelectorRadioGroupInputGUI.php:7
ilFormPropertyGUI\setAlert
setAlert($a_alert)
Set Alert Text.
Definition:
class.ilFormPropertyGUI.php:165
ilRadioGroupInputGUI
This class represents a property in a property form.
Definition:
class.ilRadioGroupInputGUI.php:33
ilCharSelectorRadioGroupInputGUI\__construct
__construct($a_title="", $a_postvar="")
Constructor.
Definition:
class.ilCharSelectorRadioGroupInputGUI.php:13
php
and
$_POST
$_POST["username"]
Definition:
cfg.phpunit.template.php:11
Services
UIComponent
CharSelector
classes
class.ilCharSelectorRadioGroupInputGUI.php
Generated on Thu Jan 30 2025 19:02:07 for ILIAS by
1.8.13 (using
Doxyfile
)