ILIAS  release_5-0 Revision 5.0.0-1144-gc4397b1f87
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 $lng;
17  $this->setAlert($lng->txt("msg_input_is_required"));
18  return false;
19  }
20 
21  return parent::checkInput();
22  }
23 
24 }
$_POST['username']
Definition: cron.php:12
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:40
Class ilDclCheckboxInputGUI.