ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
All Data Structures Namespaces Files Functions Variables Modules Pages
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 
13 {
17  public function init()
18  {
19  $lm_set = new ilSetting("lm");
20 
21  $this->setPreventHTMLUnmasking(false);
22  $this->setPreventRteUsage(true);
23  $this->setUseAttachedContent(true);
24  $this->setIntLinkHelpDefaultType("StructureObject");
25  $this->setIntLinkHelpDefaultId($_GET["ref_id"]);
26  $this->removeIntLinkFilter("File");
27  $this->setEnableActivation(true);
28  $this->setEnableSelfAssessment(true, false);
29  $this->setEnableInternalLinks(true);
30  $this->setEnableKeywords(true);
31  $this->setEnableInternalLinks(true);
32  $this->setEnableAnchors(true);
33  $this->setMultiLangSupport(true);
34  if ($lm_set->get("time_scheduled_page_activation")) {
35  $this->setEnableScheduledActivation(true);
36  }
37 
38  $mset = new ilSetting("mobs");
39  if ($mset->get("mep_activate_pages")) {
40  $this->setEnablePCType("ContentInclude", true);
41  }
42  }
43 
49  public function configureByObjectId($a_obj_id)
50  {
51  if ($a_obj_id > 0) {
53 
54  if (ilObjContentObject::isOnlineHelpModule($a_obj_id, true)) {
55  $this->setEnableSelfAssessment(false, false);
56  }
57  }
58  }
59 }
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.