ILIAS  release_8 Revision v8.23
class.ilCharSelectorRadioGroupInputGUI.php
Go to the documentation of this file.
1 <?php
2 
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 }
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...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
global $DIC
Definition: feed.php:28
This class represents a property in a property form.
__construct(Container $dic, ilPlugin $plugin)
__construct(string $a_title="", string $a_postvar="")