134 $form->setFormAction($this->dic->ctrl()->getFormAction($this));
137 $ne->
setValue($this->
language->txt(
'type_' . $this->object->getContentType()));
146 $item->setMaxLength(128);
147 $item->setRequired(
true);
148 $item->setInfo($this->
language->txt(
'title_info'));
149 $item->setValue($this->
object->getTitle());
150 $form->addItem($item);
156 $item->setValue($this->
object->getDescription());
157 $form->addItem($item);
160 $item->setRequired(
true);
162 $item->setMaxLength(128);
164 $item->setInfo($this->
language->txt(
'activity_id_info'));
165 $item->setValue($this->
object->getActivityId());
166 $form->addItem($item);
170 $item->setValue(
"1");
171 if (!$this->
object->getOfflineStatus()) {
172 $item->setChecked(
true);
174 $form->addItem($item);
178 if ($this->
object->isKeepLpStatusEnabled()) {
179 $lpDeterioration->setChecked(
true);
185 $item->setTitle($this->
language->txt(
"obj_presentation"));
186 $form->addItem($item);
189 $this->dic->object()->commonSettings()->legacyForm($form, $this->
object)->addTileImage();
191 if (!$this->
object->isSourceTypeExternal()) {
194 $item->setTitle($this->
language->txt(
"launch_options"));
195 $form->addItem($item);
197 if ($this->
object->isSourceTypeRemote()) {
200 $item->setMaxLength(128);
201 $item->setRequired(
true);
202 $item->setInfo($this->
language->txt(
'launch_url_info'));
203 $item->setValue($this->
object->getLaunchUrl());
204 $form->addItem($item);
210 $item->setValue(
"1");
212 if ($this->
object->isAuthFetchUrlEnabled()) {
213 $item->setChecked(
true);
215 $form->addItem($item);
220 $display->setValue($this->
object->getLaunchMethod());
223 $display->addOption($optOwnWindow);
226 $display->addOption($optAnyWindow);
227 $form->addItem($display);
231 $launchMode->setValue($this->
object->getLaunchMode());
233 $optNormal->
setInfo($this->
language->txt(
'conf_launch_mode_normal_info'));
235 $optNormal->addSubItem($lpDeterioration);
237 $launchMode->addOption($optNormal);
239 $optBrowse->
setInfo($this->
language->txt(
'conf_launch_mode_browse_info'));
240 $launchMode->addOption($optBrowse);
242 $optReview->
setInfo($this->
language->txt(
'conf_launch_mode_review_info'));
243 $launchMode->addOption($optReview);
244 $form->addItem($launchMode);
246 $form->addItem($lpDeterioration);
251 $switchMode->
setInfo($this->
language->txt(
"conf_switch_to_review_info"));
252 if ($this->
object->isSwitchToReviewEnabled()) {
253 $switchMode->setChecked(
true);
256 $optNormal->addSubItem($switchMode);
259 $masteryScore->
setInfo($this->
language->txt(
'conf_mastery_score_info'));
260 $masteryScore->setSuffix(
'%');
261 $masteryScore->allowDecimals(
true);
262 $masteryScore->setDecimals(2);
263 $masteryScore->setMinvalueShouldBeGreater(
false);
264 $masteryScore->setMinValue(0);
265 $masteryScore->setMaxvalueShouldBeLess(
false);
266 $masteryScore->setMaxValue(100);
267 $masteryScore->setSize(4);
268 if (empty($this->
object->getMasteryScore())) {
271 $masteryScore->setValue((
string) $this->
object->getMasteryScorePercent());
272 $optNormal->addSubItem($masteryScore);
275 if (!$this->
object->isSourceTypeExternal()) {
278 $sectionHeader->setTitle($this->
language->txt(
'sect_learning_progress_options'));
279 $form->addItem($sectionHeader);
283 $bypassProxy->addOption($opt1);
285 $bypassProxy->addOption($opt2);
286 $bypassProxy->
setValue((
string) ((
int) $this->
object->isBypassProxyEnabled()));
288 $form->addItem($bypassProxy);
289 if ($this->
object->getLrsType()->isBypassProxyEnabled()) {
290 $bypassProxy->setDisabled(
true);
295 $item->setTitle($this->
language->txt(
"privacy_options"));
296 $form->addItem($item);
300 $this->
language->txt(
'conf_privacy_ident_il_uuid_user_id'),
303 $op->
setInfo($this->
language->txt(
'conf_privacy_ident_il_uuid_user_id_info'));
304 $userIdent->addOption($op);
306 $this->
language->txt(
'conf_privacy_ident_il_uuid_login'),
309 $op->
setInfo($this->
language->txt(
'conf_privacy_ident_il_uuid_login_info'));
310 $userIdent->addOption($op);
312 $this->
language->txt(
'conf_privacy_ident_il_uuid_ext_account'),
315 $op->
setInfo($this->
language->txt(
'conf_privacy_ident_il_uuid_ext_account_info'));
316 $userIdent->addOption($op);
318 $this->
language->txt(
'conf_privacy_ident_il_uuid_sha256'),
321 $op->
setInfo($this->
language->txt(
'conf_privacy_ident_il_uuid_sha256_info'));
322 $userIdent->addOption($op);
324 $this->
language->txt(
'conf_privacy_ident_il_uuid_sha256url'),
327 $op->
setInfo($this->
language->txt(
'conf_privacy_ident_il_uuid_sha256url_info'));
328 $userIdent->addOption($op);
330 $this->
language->txt(
'conf_privacy_ident_il_uuid_random'),
333 $op->
setInfo($this->
language->txt(
'conf_privacy_ident_il_uuid_random_info'));
334 $userIdent->addOption($op);
336 $this->
language->txt(
'conf_privacy_ident_real_email'),
339 $op->
setInfo($this->
language->txt(
'conf_privacy_ident_real_email_info'));
340 $userIdent->addOption($op);
341 $userIdent->setValue((
string) $this->
object->getPrivacyIdent());
345 $userIdent->setRequired(
false);
346 $form->addItem($userIdent);
350 $this->
language->txt(
'conf_privacy_name_none'),
354 $userName->addOption($op);
356 $this->
language->txt(
'conf_privacy_name_firstname'),
359 $op->
setInfo($this->
language->txt(
'conf_privacy_name_firstname_info'));
360 $userName->addOption($op);
362 $this->
language->txt(
'conf_privacy_name_lastname'),
366 $userName->addOption($op);
368 $this->
language->txt(
'conf_privacy_name_fullname'),
372 $userName->addOption($op);
373 $userName->setValue((
string) $this->
object->getPrivacyName());
374 $userName->setInfo($this->
language->txt(
'conf_privacy_name_info'));
375 $userName->setRequired(
false);
376 $form->addItem($userName);
378 if ($this->
object->getLrsType()->getForcePrivacySettings()) {
379 $userIdent->setDisabled(
true);
380 $userName->setDisabled(
true);
385 $item->setChecked($this->
object->getOnlyMoveon());
389 $subitem->setChecked($this->
object->getAchieved());
390 if ($this->
object->getLrsType()->getForcePrivacySettings()) {
391 $subitem->setDisabled(
true);
393 $item->addSubItem($subitem);
397 $subitem->setChecked($this->
object->getAnswered());
398 if ($this->
object->getLrsType()->getForcePrivacySettings()) {
399 $subitem->setDisabled(
true);
401 $item->addSubItem($subitem);
405 $subitem->setChecked($this->
object->getCompleted());
406 if ($this->
object->getLrsType()->getForcePrivacySettings()) {
407 $subitem->setDisabled(
true);
409 $item->addSubItem($subitem);
413 $subitem->setChecked($this->
object->getFailed());
414 if ($this->
object->getLrsType()->getForcePrivacySettings()) {
415 $subitem->setDisabled(
true);
417 $item->addSubItem($subitem);
421 $subitem->setChecked($this->
object->getInitialized());
422 if ($this->
object->getLrsType()->getForcePrivacySettings()) {
423 $subitem->setDisabled(
true);
425 $item->addSubItem($subitem);
429 $subitem->setChecked($this->
object->getPassed());
430 if ($this->
object->getLrsType()->getForcePrivacySettings()) {
431 $subitem->setDisabled(
true);
433 $item->addSubItem($subitem);
437 $subitem->setChecked($this->
object->getProgressed());
438 if ($this->
object->getLrsType()->getForcePrivacySettings()) {
439 $subitem->setDisabled(
true);
441 $item->addSubItem($subitem);
445 $subitem->setChecked($this->
object->getSatisfied());
446 if ($this->
object->getLrsType()->getForcePrivacySettings()) {
447 $subitem->setDisabled(
true);
449 $item->addSubItem($subitem);
453 $subitem->setChecked($this->
object->getTerminated());
454 if ($this->
object->getLrsType()->getForcePrivacySettings()) {
455 $subitem->setDisabled(
true);
457 $item->addSubItem($subitem);
459 if ($this->
object->getLrsType()->getForcePrivacySettings()) {
460 $item->setDisabled(
true);
462 $form->addItem($item);
466 $item->setChecked($this->
object->getHideData());
470 $subitem->setChecked($this->
object->getTimestamp());
471 if ($this->
object->getLrsType()->getForcePrivacySettings()) {
472 $subitem->setDisabled(
true);
474 $item->addSubItem($subitem);
478 $subitem->setChecked($this->
object->getDuration());
479 if ($this->
object->getLrsType()->getForcePrivacySettings()) {
480 $subitem->setDisabled(
true);
482 $item->addSubItem($subitem);
484 if ($this->
object->getLrsType()->getForcePrivacySettings()) {
485 $item->setDisabled(
true);
487 $form->addItem($item);
491 $item->setChecked($this->
object->getNoSubstatements());
492 if ($this->
object->getLrsType()->getForcePrivacySettings()) {
493 $item->setDisabled(
true);
495 $form->addItem($item);
499 $item->setTitle($this->
language->txt(
"log_options"));
500 $form->addItem($item);
504 $item->setValue(
"1");
505 if ($this->
object->isStatementsReportEnabled()) {
506 $item->setChecked(
true);
508 $form->addItem($item);
512 $highscore->setChecked($this->
object->getHighscoreEnabled());
513 $highscore->setInfo($this->
language->txt(
"highscore_description"));
514 $form->addItem($highscore);
517 $highscore_tables->setValue((
string) $this->
object->getHighscoreMode());
519 $this->
language->txt(
'highscore_own_table'),
522 $highscore_table_own->setInfo($this->
language->txt(
'highscore_own_table_description'));
523 $highscore_tables->addOption($highscore_table_own);
525 $this->
language->txt(
'highscore_top_table'),
528 $highscore_table_other->setInfo($this->
language->txt(
'highscore_top_table_description'));
529 $highscore_tables->addOption($highscore_table_other);
531 $this->
language->txt(
'highscore_all_tables'),
534 $highscore_table_other->setInfo($this->
language->txt(
'highscore_all_tables_description'));
535 $highscore_tables->addOption($highscore_table_other);
536 $highscore->addSubItem($highscore_tables);
538 $highscore_top_num->
setSize(4);
539 $highscore_top_num->setRequired(
true);
540 $highscore_top_num->setMinValue(1);
541 $highscore_top_num->setSuffix($this->
language->txt(
"highscore_top_num_unit"));
542 $highscore_top_num->setValue((
string) $this->
object->getHighscoreTopNum(null));
543 $highscore_top_num->setInfo($this->
language->txt(
"highscore_top_num_description"));
544 $highscore->addSubItem($highscore_top_num);
546 $highscore_achieved_ts->
setValue(
"1");
547 $highscore_achieved_ts->setChecked($this->
object->getHighscoreAchievedTS());
548 $highscore_achieved_ts->setInfo($this->
language->txt(
"highscore_achieved_ts_description"));
549 $highscore->addSubItem($highscore_achieved_ts);
551 $highscore_percentage->
setValue(
"1");
552 $highscore_percentage->setChecked($this->
object->getHighscorePercentage());
553 $highscore_percentage->setInfo($this->
language->txt(
"highscore_percentage_description"));
554 $highscore->addSubItem($highscore_percentage);
557 $highscore_wtime->setChecked($this->
object->getHighscoreWTime());
558 $highscore_wtime->setInfo($this->
language->txt(
"highscore_wtime_description"));
559 $highscore->addSubItem($highscore_wtime);
562 $form->setTitle($this->
language->txt(
'settings'));
563 $form->addCommandButton(self::CMD_SAVE, $this->
language->txt(
"save"));
564 $form->addCommandButton(self::CMD_SHOW, $this->
language->txt(
"cancel"));
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
const PRIVACY_IDENT_REAL_EMAIL
const HIGHSCORE_SHOW_OWN_TABLE
const LAUNCH_METHOD_NEW_WIN
const PRIVACY_NAME_FULLNAME
const PRIVACY_NAME_LASTNAME
const PRIVACY_IDENT_IL_UUID_USER_ID
setValue(string $a_value)
const LAUNCH_METHOD_OWN_WIN
const PRIVACY_IDENT_IL_UUID_SHA256URL
const HIGHSCORE_SHOW_ALL_TABLES
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This class represents a text area property in a property form.
const PRIVACY_IDENT_IL_UUID_EXT_ACCOUNT
const PRIVACY_IDENT_IL_UUID_SHA256
const PRIVACY_IDENT_IL_UUID_RANDOM
const PRIVACY_NAME_FIRSTNAME
const HIGHSCORE_SHOW_TOP_TABLE
const PRIVACY_IDENT_IL_UUID_LOGIN