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