ILIAS  release_7 Revision v7.30-3-g800a261c036
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}
$_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 $DIC
Definition: goto.php:24