ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
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  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  {
38  $this->setEnableScheduledActivation(true);
39  }
40 
41  $mset = new ilSetting("mobs");
42  if ($mset->get("mep_activate_pages"))
43  {
44  $this->setEnablePCType("ContentInclude", true);
45  }
46  }
47 
53  function configureByObjectId($a_obj_id)
54  {
55  if ($a_obj_id > 0)
56  {
57  include_once("./Modules/LearningModule/classes/class.ilObjLearningModule.php");
59 
60  if (ilObjContentObject::isOnlineHelpModule($a_obj_id, true))
61  {
62  $this->setEnableSelfAssessment(false, false);
63  }
64  }
65  }
66 
67 }
68 
69 ?>
setUseAttachedContent($a_val)
Set use attached content.
ILIAS Setting Class.
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.
setIntLinkHelpDefaultId($a_val)
Set internal link default id.
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.