4 require_once
'Services/Form/classes/class.ilPropertyFormGUI.php';
31 $this->lng = $DIC->language();
32 $this->
user = $DIC->user();
55 $title->setRequired(
true);
56 $form->addItem($title);
59 $form->addItem($description);
82 $this->lng->loadLanguageModule(
'rep');
86 $title->setRequired(
true);
87 $form->addItem($title);
90 $form->addItem($description);
93 $cb->
setInfo($this->lng->txt(
'anonymous_hint'));
96 $txt->setRequired(
true);
97 $txt->setInfo($this->lng->txt(
'autogen_usernames_info'));
98 $cb->addSubItem(
$txt);
101 $cb =
new ilCheckboxInputGUI($this->lng->txt(
'allow_custom_usernames'),
'allow_custom_usernames');
104 $cb_history =
new ilCheckboxInputGUI($this->lng->txt(
'enable_history'),
'enable_history');
105 $form->addItem($cb_history);
107 $num_msg_history =
new ilNumberInputGUI($this->lng->txt(
'display_past_msgs'),
'display_past_msgs');
108 $num_msg_history->
setInfo($this->lng->txt(
'hint_display_past_msgs'));
109 $num_msg_history->setMinValue(0);
110 $num_msg_history->setMaxValue(100);
111 $form->addItem($num_msg_history);
113 $cb =
new ilCheckboxInputGUI($this->lng->txt(
'private_rooms_enabled'),
'private_rooms_enabled');
114 $cb->
setInfo($this->lng->txt(
'private_rooms_enabled_info'));
118 $section->setTitle($this->lng->txt(
'rep_activation_availability'));
121 $online =
new ilCheckboxInputGUI($this->lng->txt(
'rep_activation_online'),
'online_status');
122 $online->
setInfo($this->lng->txt(
'chtr_activation_online_info'));
123 $form->addItem($online);
125 require_once
'Services/Form/classes/class.ilDateDurationInputGUI.php';
128 $form->addItem($dur);
130 $visible =
new ilCheckboxInputGUI($this->lng->txt(
'rep_activation_limited_visibility'),
'access_visibility');
132 $visible->setInfo($this->lng->txt(
'chtr_activation_limited_visibility_info'));
133 $dur->addSubItem($visible);
147 $file_input->setPostVar(
'file_to_upload');
148 $file_input->setTitle($this->lng->txt(
'upload'));
149 $form->addItem($file_input);
150 $form->addCommandButton(
'UploadFile-uploadFile', $this->lng->txt(
'submit'));
152 $form->setTarget(
'_blank');
164 $form->setPreventDoubleSubmission(
false);
166 require_once
'Services/Form/classes/class.ilDateDurationInputGUI.php';
169 $duration->
setStartText($this->lng->txt(
'duration_from'));
170 $duration->setEndText($this->lng->txt(
'duration_to'));
171 $duration->setShowTime(
true);
172 $duration->setRequired(
true);
173 $form->addItem($duration);
187 $radio =
new ilRadioGroupInputGUI($this->lng->txt(
'select_custom_username'),
'custom_username_radio');
189 foreach ($name_options as $key => $option) {
191 $radio->addOption($opt);
194 $custom_opt =
new ilRadioOption($this->lng->txt(
'custom_username'),
'custom_username');
195 $radio->addOption($custom_opt);
197 $txt =
new ilTextInputGUI($this->lng->txt(
'custom_username'),
'custom_username_text');
198 $custom_opt->addSubItem(
$txt);
199 $form->addItem($radio);
201 if ($this->
user->isAnonymous()) {
202 $radio->setValue(
'anonymousName');
204 $radio->setValue(
'fullname');
218 $form->setPreventDoubleSubmission(
false);
227 $options[$session[
'connected'] .
',' .
231 $list->setOptions($options);
232 $list->setRequired(
true);
234 $form->addItem($list);
246 $enable_chat =
new ilCheckboxInputGUI($this->lng->txt(
'chat_enabled'),
'chat_enabled');
247 $form->addItem($enable_chat);
249 $enable_osc =
new ilCheckboxInputGUI($this->lng->txt(
'chatroom_enable_osc'),
'enable_osc');
250 $enable_osc->
setInfo($this->lng->txt(
'chatroom_enable_osc_info'));
251 $enable_chat->addSubItem($enable_osc);
253 $oscBrowserNotificationStatus = new \ilCheckboxInputGUI(
254 $this->lng->txt(
'osc_adm_browser_noti_label'),
255 'enable_browser_notifications' 257 $oscBrowserNotificationStatus->setInfo($this->lng->txt(
'osc_adm_browser_noti_info'));
258 $oscBrowserNotificationStatus->setValue(1);
259 $enable_osc->addSubItem($oscBrowserNotificationStatus);
261 $oscBrowserNotificationIdleTime = new \ilNumberInputGUI(
262 $this->lng->txt(
'osc_adm_conv_idle_state_threshold_label'),
263 'conversation_idle_state_in_minutes' 265 $oscBrowserNotificationIdleTime->allowDecimals(
false);
266 $oscBrowserNotificationIdleTime->setSuffix($this->lng->txt(
'minutes'));
267 $oscBrowserNotificationIdleTime->setMinValue(1);
268 $oscBrowserNotificationIdleTime->setSize(5);
269 $oscBrowserNotificationIdleTime->setInfo($this->lng->txt(
'osc_adm_conv_idle_state_threshold_info'));
270 $enable_osc->addSubItem($oscBrowserNotificationIdleTime);
273 $osd->
setInfo($this->lng->txt(
'hint_osd'));
274 $enable_chat->addSubItem($osd);
276 $interval =
new ilNumberInputGUI($this->lng->txt(
'osd_intervall'),
'osd_intervall');
278 $interval->setRequired(
true);
279 $interval->setSuffix($this->lng->txt(
'seconds'));
280 $interval->setSize(5);
281 $interval->setInfo($this->lng->txt(
'hint_osd_interval'));
282 $osd->addSubItem($interval);
284 $play_sound =
new ilCheckboxInputGUI($this->lng->txt(
'play_invitation_sound'),
'play_invitation_sound');
285 $play_sound->
setInfo($this->lng->txt(
'play_invitation_sound_info'));
286 $osd->addSubItem($play_sound);
288 $enable_smilies =
new ilCheckboxInputGUI($this->lng->txt(
'enable_smilies'),
'enable_smilies');
289 $enable_smilies->
setInfo($this->lng->txt(
'hint_enable_smilies'));
290 $enable_chat->addSubItem($enable_smilies);
292 $name = new \ilTextInputGUI($this->lng->txt(
'chatroom_client_name'),
'client_name');
293 $name->setInfo($this->lng->txt(
'chatroom_client_name_info'));
294 $name->setRequired(
true);
295 $name->setMaxLength(100);
296 $enable_chat->addSubItem(
$name);
298 require_once
'Modules/Chatroom/classes/class.ilChatroomAuthInputGUI.php';
300 $auth->setInfo($this->lng->txt(
'chat_auth_token_info'));
301 $auth->setCtrlPath(array(
'iladministrationgui',
'ilobjchatroomgui',
'ilpropertyformgui',
'ilformpropertydispatchgui',
'ilchatroomauthinputgui'));
302 $auth->setRequired(
true);
303 $enable_chat->addSubItem(
$auth);
This class represents an option in a radio group.
static formatPeriod(ilDateTime $start, ilDateTime $end, $a_skip_starting_day=false)
Format a period of two date Shows: 14.
This class represents a text area property in a property form.