ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
class.ilLMPageConfig.php
Go to the documentation of this file.
1 <?php
2 
25 {
26  public function init(): void
27  {
28  global $DIC;
29 
30  $req = $DIC
31  ->learningModule()
32  ->internal()
33  ->gui()
34  ->presentation()
35  ->request();
36 
37  $lm_set = new ilSetting("lm");
38 
39  $this->setPreventHTMLUnmasking(false);
40  $this->setPreventRteUsage(true);
41  $this->setUseAttachedContent(true);
42  $this->setIntLinkHelpDefaultType("StructureObject");
43  $this->setIntLinkHelpDefaultId($req->getRefId());
44  $this->removeIntLinkFilter("File");
45  $this->setEnableActivation(true);
46  $this->setEnableSelfAssessment(true, false);
47  $this->setEnableInternalLinks(true);
48  $this->setEnableKeywords(true);
49  $this->setEnableInternalLinks(true);
50  $this->setEnableAnchors(true);
51  $this->setMultiLangSupport(true);
52  if ($lm_set->get("time_scheduled_page_activation")) {
53  $this->setEnableScheduledActivation(true);
54  }
55 
56  $mset = new ilSetting("mobs");
57  if ($mset->get("mep_activate_pages")) {
58  $this->setEnablePCType("ContentInclude", true);
59  }
60  }
61 
65  public function configureByObjectId(int $a_obj_id): void
66  {
67  if ($a_obj_id > 0) {
69 
70  if (ilObjContentObject::isOnlineHelpModule($a_obj_id, true)) {
71  $this->setEnableSelfAssessment(false, false);
72  }
73  }
74  }
75 }
setPreventHTMLUnmasking(bool $a_preventhtmlunmasking)
setIntLinkHelpDefaultId(int $a_val, bool $a_is_ref=true)
Set internal link default id.
setDisableDefaultQuestionFeedback(bool $a_val)
Set disable default question feedback.
static _lookupDisableDefaultFeedback(int $a_id)
setEnableInternalLinks(bool $a_enabledinternallinks)
setPreventRteUsage(bool $a_val)
setIntLinkHelpDefaultType(string $a_val)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
setEnableSelfAssessment(bool $a_enabledselfassessment, bool $a_scorm=true)
catch(\Exception $e) $req
Definition: xapiproxy.php:93
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
global $DIC
Definition: feed.php:28
setEnableScheduledActivation(bool $a_val)
setMultiLangSupport(bool $a_val)
setUseAttachedContent(bool $a_val)
$lm_set
setEnableAnchors(bool $a_val)
setEnableActivation(bool $a_val)
Set enabled page activation.
setEnableKeywords(bool $a_val)
removeIntLinkFilter(string $a_val)
configureByObjectId(int $a_obj_id)
Object specific configuration.
setEnablePCType(string $a_pc_type, bool $a_val)
static isOnlineHelpModule(int $a_id, bool $a_as_obj_id=false)
Is module an online module.