ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
class.ilLMPageConfig.php
Go to the documentation of this file.
1 <?php
2 
3 /* Copyright (c) 1998-2012 ILIAS open source, Extended GPL, see docs/LICENSE */
4 
5 include_once("./Services/COPage/classes/class.ilPageConfig.php");
6 
15 {
19  public function init()
20  {
21  $lm_set = new ilSetting("lm");
22 
23  $this->setPreventHTMLUnmasking(false);
24  $this->setPreventRteUsage(true);
25  $this->setUseAttachedContent(true);
26  $this->setIntLinkHelpDefaultType("StructureObject");
27  $this->setIntLinkHelpDefaultId($_GET["ref_id"]);
28  $this->removeIntLinkFilter("File");
29  $this->setEnableActivation(true);
30  $this->setEnableSelfAssessment(true, false);
31  $this->setEnableInternalLinks(true);
32  $this->setEnableKeywords(true);
33  $this->setEnableInternalLinks(true);
34  $this->setEnableAnchors(true);
35  $this->setMultiLangSupport(true);
36  if ($lm_set->get("time_scheduled_page_activation")) {
37  $this->setEnableScheduledActivation(true);
38  }
39 
40  $mset = new ilSetting("mobs");
41  if ($mset->get("mep_activate_pages")) {
42  $this->setEnablePCType("ContentInclude", true);
43  }
44  }
45 
51  public function configureByObjectId($a_obj_id)
52  {
53  if ($a_obj_id > 0) {
54  include_once("./Modules/LearningModule/classes/class.ilObjLearningModule.php");
56 
57  if (ilObjContentObject::isOnlineHelpModule($a_obj_id, true)) {
58  $this->setEnableSelfAssessment(false, false);
59  }
60  }
61  }
62 }
setUseAttachedContent($a_val)
Set use attached content.
static _lookupDisableDefaultFeedback($a_id)
Lookup disable default feedback.
setEnablePCType($a_pc_type, $a_val)
Set enable pc type.
setEnableSelfAssessment($a_enabledselfassessment, $a_scorm=true)
Set Enable Self Assessment Questions.
setEnableKeywords($a_val)
Set enable keywords handling.
setIntLinkHelpDefaultType($a_val)
Set internal link default type.
$_GET["client_id"]
setEnableAnchors($a_val)
Set enable anchors.
setEnableScheduledActivation($a_val)
Set enable scheduled page activation.
setMultiLangSupport($a_val)
Set multi language support.
Learning module page configuration.
removeIntLinkFilter($a_val)
Remove int link filter.
Config class for page editing.
setEnableInternalLinks($a_enabledinternallinks)
Set Enable internal links.
setEnableActivation($a_val)
Set enabled actication.
setDisableDefaultQuestionFeedback($a_val)
Set disable default question feedback.
static isOnlineHelpModule($a_id, $a_as_obj_id=false)
Is module an online module.
$lm_set
setPreventHTMLUnmasking($a_preventhtmlunmasking)
Set Prevent HTML Unmasking (true/false).
configureByObjectId($a_obj_id)
Object specific configuration.
setPreventRteUsage($a_val)
Set prevent rte usage.
setIntLinkHelpDefaultId($a_val, $a_is_ref=true)
Set internal link default id.