ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
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  {
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 }
global $DIC
Definition: saml.php:7
checkInput()
Additional check for either block or custom chars.
Radio input for character seelctor definition.
setAlert($a_alert)
Set Alert Text.
This class represents a property in a property form.
__construct($a_title="", $a_postvar="")
Constructor.
$_POST["username"]