4require_once
'Services/Form/classes/class.ilPropertyFormGUI.php';
27 public function getCreationForm()
36 $title->setRequired(
true);
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()
88 $title->setRequired(
true);
89 $form->addItem($title);
92 $form->addItem($description);
95 $cb->setInfo(
$lng->txt(
'anonymous_hint'));
98 $txt->setRequired(
true);
99 $txt->setInfo(
$lng->txt(
'autogen_usernames_info'));
100 $cb->addSubItem(
$txt);
107 $form->addItem($cb_history);
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);
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';
181 $duration->setStartText(
$lng->txt(
'duration_from'));
182 $duration->setEndText(
$lng->txt(
'duration_to'));
183 $duration->setShowTime(
true);
194 public function getUserChatNameSelectionForm(array $name_options)
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);
216 $custom_opt->addSubItem(
$txt);
221 $radio->setValue(
'anonymousName');
225 $radio->setValue(
'fullname');
236 public function getSessionForm(array $sessions)
249 foreach($sessions as $session)
254 $options[$session[
'connected'] .
',' .
259 $list->setRequired(
true);
270 public function getGeneralSettingsForm()
280 $address->setRequired(
true);
284 $port->setMinValue(1);
285 $port->setMaxValue(65535);
286 $port->setRequired(
true);
287 $port->setInfo(
$lng->txt(
'port_info'));
292 $priv_hosts->setRequired(
true);
296 $keystore->setRequired(
true);
298 $keypass->setRequired(
true);
300 $storepass->setRequired(
true);
305 $https->addSubItem($keystore);
306 $https->addSubItem($keypass);
307 $https->addSubItem($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);
341 $cb1->setInfo(
$lng->txt(
'play_invitation_sound'));
342 $cb->addSubItem($cb1);
345 $cb->setInfo(
$lng->txt(
'hint_enable_smilies'));
349 $name->setRequired(
true);
350 $name->setValidationRegexp(
'/^[a-z0-9_-]+$/i');
351 $name->setInfo(
$lng->txt(
'hint_unique_name'));
355 $url->setRequired(
true);
359 $user->setInfo(
$lng->txt(
'soap_user_hint'));
360 $user->setRequired(
true);
364 $password->setSkipSyntaxCheck(
true);
365 $password->setRequired(
true);
static formatPeriod(ilDateTime $start, ilDateTime $end)
Format a period of two date Shows: 14.
@classDescription Date and time handling
This class represents an option in a radio group.
This class represents a text area property in a property form.
This class represents a text property in a property form.
if(!is_array($argv)) $options