ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
class.ilDclCheckboxInputGUI.php
Go to the documentation of this file.
1<?php
2
3
10{
11 public function checkInput()
12 {
13 if ($this->getRequired() && !isset($_POST[$this->getPostVar()])) {
14 global $DIC;
15 $lng = $DIC['lng'];
16 $this->setAlert($lng->txt("msg_input_is_required"));
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: saml.php:7