ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
class.ilDclCheckboxInputGUI.php
Go to the documentation of this file.
1 <?php
2 
20 {
21  public function checkInput(): bool
22  {
23  $has_postvar = $this->http->wrapper()->post()->has($this->getPostVar());
24  if ($this->getRequired() && !$has_postvar) {
25  global $DIC;
26  $lng = $DIC['lng'];
27  $this->setAlert($lng->txt("msg_input_is_required"));
28 
29  return false;
30  }
31 
32  return parent::checkInput();
33  }
34 }
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 class represents a checkbox property in a property form.
global $DIC
Definition: feed.php:28
static http()
Fetches the global http state from ILIAS.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...