ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
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
5include_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")) {
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}
$_GET["client_id"]
An exception for terminatinating execution or to throw for unit testing.
Learning module page configuration.
configureByObjectId($a_obj_id)
Object specific configuration.
static isOnlineHelpModule($a_id, $a_as_obj_id=false)
Is module an online module.
static _lookupDisableDefaultFeedback($a_id)
Lookup disable default feedback.
Config class for page editing.
setUseAttachedContent($a_val)
Set use attached content.
setDisableDefaultQuestionFeedback($a_val)
Set disable default question feedback.
setPreventHTMLUnmasking($a_preventhtmlunmasking)
Set Prevent HTML Unmasking (true/false).
removeIntLinkFilter($a_val)
Remove int link filter.
setEnableActivation($a_val)
Set enabled actication.
setEnableSelfAssessment($a_enabledselfassessment, $a_scorm=true)
Set Enable Self Assessment Questions.
setEnableKeywords($a_val)
Set enable keywords handling.
setPreventRteUsage($a_val)
Set prevent rte usage.
setIntLinkHelpDefaultId($a_val, $a_is_ref=true)
Set internal link default id.
setEnableInternalLinks($a_enabledinternallinks)
Set Enable internal links.
setEnablePCType($a_pc_type, $a_val)
Set enable pc type.
setMultiLangSupport($a_val)
Set multi language support.
setIntLinkHelpDefaultType($a_val)
Set internal link default type.
setEnableAnchors($a_val)
Set enable anchors.
setEnableScheduledActivation($a_val)
Set enable scheduled page activation.
ILIAS Setting Class.
$lm_set