ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
class.ilDclCheckboxInputGUI.php
Go to the documentation of this file.
1 <?php
2 
9 {
10  public function checkInput()
11  {
12  if ($this->getRequired() && !isset($_POST[$this->getPostVar()])) {
13  global $DIC;
14  $lng = $DIC['lng'];
15  $this->setAlert($lng->txt("msg_input_is_required"));
16 
17  return false;
18  }
19 
20  return parent::checkInput();
21  }
22 }
global $DIC
Definition: saml.php:7
getPostVar()
Get Post Variable.
This class represents a checkbox property in a property form.
setAlert($a_alert)
Set Alert Text.
Class ilDclCheckboxInputGUI.
$_POST["username"]