ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
class.ilDclCheckboxInputGUI.php
Go to the documentation of this file.
1<?php
2
3require_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}
This class represents a checkbox property in a property form.
Class ilDclCheckboxInputGUI.
checkInput()
Check input, strip slashes etc.
getPostVar()
Get Post Variable.
setAlert($a_alert)
Set Alert Text.
$_POST['username']
Definition: cron.php:12
global $lng
Definition: privfeed.php:40