28 self::NAME_AUTH_PROP_1 =>
'',
29 self::NAME_AUTH_PROP_2 =>
''
51 $response->{self::NAME_AUTH_PROP_2} = $this->uuidV4();
64 '%04x%04x-%04x-%04x-%04x-%04x%04x%04x',
72 mt_rand(0, 0x0fff) | 0x4000,
76 mt_rand(0, 0x3fff) | 0x8000,
89 $this->ctrl_path = $ctrl_path;
97 $this->values = array(
98 self::NAME_AUTH_PROP_1 => $a_values[$this->getPostVar()][self::NAME_AUTH_PROP_1],
99 self::NAME_AUTH_PROP_2 => $a_values[$this->getPostVar()][self::NAME_AUTH_PROP_2]
102 foreach ($this->getSubItems() as $item) {
103 $item->setValueByArray($a_values);
117 $post =
$_POST[$this->getPostVar()];
119 if ($this->getRequired() && 2 > count(array_filter(array_map(
'trim', $post)))) {
120 $this->setAlert(
$DIC->language()->txt(
'msg_input_is_required'));
124 return $this->checkSubItemsInput();
133 $a_tpl->
setVariable(
'PROP_GENERIC', $this->render());
144 $tpl =
new ilTemplate(
'tpl.chatroom_auth_input.html',
true,
true,
'Modules/Chatroom');
146 for (
$i = 1;
$i <= count($this->values);
$i++) {
147 $const =
'NAME_AUTH_PROP_' .
$i;
148 $const_val = constant(
'self::' . $const);
150 $tpl->setVariable(
'TXT_AUTH_PROP_' .
$i,
$DIC->language()->txt(
'chatroom_auth_' . $const_val));
151 $tpl->setVariable(
'ID_AUTH_PROP_' .
$i, $const_val);
152 $tpl->setVariable(
'NAME_AUTH_PROP_' .
$i, $const_val);
153 $tpl->setVariable(
'VALUE_AUTH_PROP_' .
$i, $this->values[$const_val]);
156 if (!$this->isReadOnly && !$this->getDisabled()) {
157 for (
$i = 1;
$i <= count($this->values);
$i++) {
158 $const =
'NAME_AUTH_PROP_' .
$i;
159 $const_val = constant(
'self::' . $const);
161 $tpl->setVariable(
'ID_AUTH_PROP_' .
$i .
'_BTN', $const_val);
164 $DIC->ctrl()->setParameterByClass(
'ilformpropertydispatchgui',
'postvar', $this->getPostVar());
167 $DIC->ctrl()->getLinkTargetByClass($this->ctrl_path,
'getRandomValues',
'',
true,
false)
169 $tpl->setVariable(
'ID_BTN', $this->getFieldId() .
'_btn');
170 $tpl->setVariable(
'TXT_BTN',
$DIC->language()->txt(
'chatroom_auth_btn_txt'));
173 $tpl->setVariable(
'POST_VAR', $this->getPostVar());
174 $tpl->setVariable(
'SIZE', $this->getSize());
176 if ($this->getDisabled()) {
177 $tpl->setVariable(
'DISABLED',
' disabled="disabled"');
An exception for terminatinating execution or to throw for unit testing.
setVariable($variable, $value='')
Sets a variable value.
special template class to simplify handling of ITX/PEAR
parseCurrentBlock($part="DEFAULT")
Überladene Funktion, die auf den aktuelle Block vorher noch ein replace ausführt @access public.
setCurrentBlock($part="DEFAULT")
Überladene Funktion, die sich hier lokal noch den aktuellen Block merkt.
static stripSlashes($a_str, $a_strip_html=true, $a_allow="")
strip slashes if magic qoutes is enabled
if($DIC->http() ->request() ->getMethod()=="GET" &&isset($DIC->http() ->request() ->getQueryParams()['tex'])) $tpl