ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
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
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 {
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}
$_POST["username"]
An exception for terminatinating execution or to throw for unit testing.
Radio input for character seelctor definition.
checkInput()
Additional check for either block or custom chars.
__construct($a_title="", $a_postvar="")
Constructor.
setAlert($a_alert)
Set Alert Text.
This class represents a property in a property form.
global $DIC
Definition: saml.php:7