4 require_once
'Services/Form/classes/class.ilPropertyFormGUI.php';
27 public function getCreationForm()
37 $form->addItem($title);
40 $form->addItem($description);
42 return $this->addDefaultBehaviour($form);
52 foreach($values as $key => $value)
60 switch(strtolower(get_class($field)))
62 case 'ilcheckboxinputgui':
65 $field->setChecked(
true);
70 $field->setValue($value);
79 public function getSettingsForm()
89 $form->addItem($title);
92 $form->addItem($description);
95 $cb->
setInfo($lng->txt(
'anonymous_hint'));
99 $txt->setRequired(
true);
100 $txt->setInfo($lng->txt(
'autogen_usernames_info'));
101 $form->addItem(
$txt);
103 $cb =
new ilCheckboxInputGUI($lng->txt(
'allow_custom_usernames'),
'allow_custom_usernames');
107 $form->addItem($cb_history);
109 $num_msg_history =
new ilNumberInputGUI($lng->txt(
'display_past_msgs'),
'display_past_msgs');
110 $num_msg_history->
setInfo($lng->txt(
'hint_display_past_msgs'));
111 $num_msg_history->setMinValue(0);
112 $num_msg_history->setMaxValue(100);
113 $form->addItem($num_msg_history);
115 $cb =
new ilCheckboxInputGUI($lng->txt(
'private_rooms_enabled'),
'private_rooms_enabled');
116 $cb->
setInfo($lng->txt(
'private_rooms_enabled_info'));
126 public function getFileUploadForm()
136 $file_input->setPostVar(
'file_to_upload');
137 $file_input->setTitle($lng->txt(
'upload'));
138 $form->addItem($file_input);
139 $form->addCommandButton(
'UploadFile-uploadFile', $lng->txt(
'submit'));
141 $form->setTarget(
'_blank');
168 public function getPeriodForm()
178 require_once
'Services/Form/classes/class.ilDateDurationInputGUI.php';
182 $duration->setEndText($lng->txt(
'duration_to'));
183 $duration->setShowTime(
true);
194 public function getUserChatNameSelectionForm(array $name_options)
204 $radio =
new ilRadioGroupInputGUI($lng->txt(
'select_custom_username'),
'custom_username_radio');
206 foreach($name_options as $key => $option)
209 $radio->addOption($opt);
212 $custom_opt =
new ilRadioOption($lng->txt(
'custom_username'),
'custom_username');
213 $radio->addOption($custom_opt);
219 if($ilUser->isAnonymous())
221 $radio->setValue(
'anonymousName');
225 $radio->setValue(
'fullname');
236 public function getSessionForm(array $sessions)
249 foreach($sessions as $session)
254 $options[$session[
'connected'] .
',' .
258 $list->setOptions($options);
259 $list->setRequired(
true);
270 public function getGeneralSettingsForm()
279 $address =
new ilTextInputGUI($lng->txt(
'chatserver_address'),
'address');
285 $port->setMaxValue(65535);
286 $port->setRequired(
true);
287 $port->setInfo($lng->txt(
'port_info'));
291 $priv_hosts =
new ilTextInputGUI($lng->txt(
'priv_hosts'),
'priv_hosts');
295 $keystore =
new ilTextInputGUI($lng->txt(
'keystore'),
'keystore');
299 $storepass =
new ilTextInputGUI($lng->txt(
'storepass'),
'storepass');
308 $protocol->addOption($http);
309 $protocol->addOption($https);
318 public function getClientSettingsForm()
331 $cb->
setInfo($lng->txt(
'hint_osd'));
335 $txt->setMinValue(1);
336 $txt->setRequired(
true);
337 $txt->setInfo($lng->txt(
'hint_osd_interval'));
338 $cb->addSubItem(
$txt);
340 $cb1 =
new ilCheckboxInputGUI($lng->txt(
'play_invitation_sound'),
'play_invitation_sound');
341 $cb1->
setInfo($lng->txt(
'play_invitation_sound'));
342 $cb->addSubItem($cb1);
345 $cb->
setInfo($lng->txt(
'hint_enable_smilies'));
350 $name->setValidationRegexp(
'/^[a-z0-9_-]+$/i');
351 $name->setInfo($lng->txt(
'hint_unique_name'));
359 $user->
setInfo($lng->txt(
'soap_user_hint'));
360 $user->setRequired(
true);
365 $password->setRequired(
true);
This class represents an option in a radio group.
static formatPeriod(ilDateTime $start, ilDateTime $end)
Format a period of two date Shows: 14.
if(!is_array($argv)) $options
addSubItem($a_item)
Add Subitem.
This class represents a text property in a property form.
This class represents a text area property in a property form.