28 self::NAME_AUTH_PROP_1 =>
'',
29 self::NAME_AUTH_PROP_2 =>
'' 53 '%04x%04x-%04x-%04x-%04x-%04x%04x%04x',
61 mt_rand(0, 0x0fff) | 0x4000,
65 mt_rand(0, 0x3fff) | 0x8000,
94 $this->values = array(
95 self::NAME_AUTH_PROP_1 => $a_values[$this->
getPostVar()][self::NAME_AUTH_PROP_1],
96 self::NAME_AUTH_PROP_2 => $a_values[$this->
getPostVar()][self::NAME_AUTH_PROP_2]
100 $item->setValueByArray($a_values);
116 if ($this->
getRequired() && 2 > count(array_filter(array_map(
'trim',
$post)))) {
117 $this->
setAlert($DIC->language()->txt(
'msg_input_is_required'));
141 $tpl =
new ilTemplate(
'tpl.chatroom_auth_input.html',
true,
true,
'Modules/Chatroom');
143 for (
$i = 1;
$i <= count($this->values);
$i++) {
144 $const =
'NAME_AUTH_PROP_' .
$i;
145 $const_val = constant(
'self::' . $const);
147 $tpl->setVariable(
'TXT_AUTH_PROP_' .
$i, $DIC->language()->txt(
'chatroom_auth_' . $const_val));
148 $tpl->setVariable(
'ID_AUTH_PROP_' .
$i, $const_val);
149 $tpl->setVariable(
'NAME_AUTH_PROP_' .
$i, $const_val);
150 $tpl->setVariable(
'VALUE_AUTH_PROP_' .
$i, $this->values[$const_val]);
153 $DIC->ctrl()->setParameterByClass(
'ilformpropertydispatchgui',
'postvar', $this->
getPostVar());
154 $tpl->setVariable(
'URL', $DIC->ctrl()->getLinkTargetByClass($this->ctrl_path,
'getRandomValues',
'',
true,
false));
156 $tpl->setVariable(
'TXT_BTN', $DIC->language()->txt(
'chatroom_auth_btn_txt'));
160 $tpl->setVariable(
'DISABLED',
' disabled="disabled"');
setVariable($variable, $value='')
Sets a variable value.
special template class to simplify handling of ITX/PEAR
static stripSlashes($a_str, $a_strip_html=true, $a_allow="")
strip slashes if magic qoutes is enabled
setCurrentBlock($part="DEFAULT")
Überladene Funktion, die sich hier lokal noch den aktuellen Block merkt.
parseCurrentBlock($part="DEFAULT")
Überladene Funktion, die auf den aktuelle Block vorher noch ein replace ausführt public...