ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
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 $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}
$_POST["username"]
An exception for terminatinating execution or to throw for unit testing.
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.
global $lng
Definition: privfeed.php:17
global $DIC