ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
ilLMPageConfig Class Reference

Learning module page configuration. More...

+ Inheritance diagram for ilLMPageConfig:
+ Collaboration diagram for ilLMPageConfig:

Public Member Functions

 init ()
 Init. More...
 
 configureByObjectId ($a_obj_id)
 Object specific configuration. More...
 
- Public Member Functions inherited from ilPageConfig
 __construct ()
 Constructor. More...
 
 init ()
 Init. More...
 
 setEnablePCType ($a_pc_type, $a_val)
 Set enable pc type. More...
 
 getEnablePCType ($a_pc_type)
 Get enable pc type. More...
 
 setEnableKeywords ($a_val)
 Set enable keywords handling. More...
 
 getEnableKeywords ()
 Get enable keywords handling. More...
 
 setEnableAnchors ($a_val)
 Set enable anchors. More...
 
 getEnableAnchors ()
 Get enable anchors. More...
 
 setEnableInternalLinks ($a_enabledinternallinks)
 Set Enable internal links. More...
 
 getEnableInternalLinks ()
 Get Enable internal links. More...
 
 setEnableUserLinks ($a_val)
 Set enable user links. More...
 
 getEnableUserLinks ()
 Get enable user links. More...
 
 setEnableWikiLinks ($a_enablewikilinks)
 Set Enable Wiki Links. More...
 
 getEnableWikiLinks ()
 Get Enable Wiki Links. More...
 
 addIntLinkFilter ($a_val)
 Add internal links filter. More...
 
 removeIntLinkFilter ($a_val)
 Remove int link filter. More...
 
 getIntLinkFilters ()
 Get internal links filter. More...
 
 setIntLinkFilterWhiteList ($a_white_list)
 Set internal links filter type list to white list. More...
 
 getIntLinkFilterWhiteList ()
 Get internal links filter type list to white list. More...
 
 setPreventRteUsage ($a_val)
 Set prevent rte usage. More...
 
 getPreventRteUsage ()
 Get prevent rte usage. More...
 
 setLocalizationLanguage ($a_val)
 Set localizazion language. More...
 
 getLocalizationLanguage ()
 Get localizazion language. More...
 
 setUseAttachedContent ($a_val)
 Set use attached content. More...
 
 getUseAttachedContent ()
 Get use attached content. More...
 
 setIntLinkHelpDefaultType ($a_val)
 Set internal link default type. More...
 
 getIntLinkHelpDefaultType ()
 Get internal link default type. More...
 
 setIntLinkHelpDefaultId ($a_val)
 Set internal link default id. More...
 
 getIntLinkHelpDefaultId ()
 Get internal link default id. More...
 
 setEnableActivation ($a_val)
 Set enabled actication. More...
 
 getEnableActivation ()
 Get enabled actication. More...
 
 setEnableScheduledActivation ($a_val)
 Set enable scheduled page activation. More...
 
 getEnableScheduledActivation ()
 Get enable scheduled page activation. More...
 
 setEnablePageToc ($a_val)
 Set enable page toc. More...
 
 getEnablePageToc ()
 Get enable page toc. More...
 
 setPreventHTMLUnmasking ($a_preventhtmlunmasking)
 Set Prevent HTML Unmasking (true/false). More...
 
 getPreventHTMLUnmasking ()
 Get Prevent HTML Unmasking (true/false). More...
 
 setEnableSelfAssessment ($a_enabledselfassessment, $a_scorm=true)
 Set Enable Self Assessment Questions. More...
 
 getEnableSelfAssessment ()
 Get Enable Self Assessment Questions. More...
 
 getEnableSelfAssessmentScorm ()
 Is self assessment used in SCORM mode? More...
 
 setDisableDefaultQuestionFeedback ($a_val)
 Set disable default question feedback. More...
 
 getDisableDefaultQuestionFeedback ()
 Get disable default question feedback. More...
 
 setMultiLangSupport ($a_val)
 Set multi language support. More...
 
 getMultiLangSupport ()
 Get multi language support. More...
 
 setSinglePageMode ($a_val)
 Set single page mode. More...
 
 getSinglePageMode ()
 Get single page mode. More...
 
 setQuestionHTML ($question_html)
 
 getQuestionHTML ()
 
 setUseStoredQuestionTries ($a_val)
 Set use stored answers/tries. More...
 
 getUseStoredQuestionTries ()
 Get use stored answers/tries. More...
 
 setEnablePermissionChecks ($a_val)
 Set enable permission checks. More...
 
 getEnablePermissionChecks ()
 Get enable permission checks. More...
 

Additional Inherited Members

- Protected Attributes inherited from ilPageConfig
 $int_link_filter = array("File")
 
 $prevent_rte_usage = false
 
 $use_attached_content = false
 
 $pc_defs = array()
 
 $pc_enabled = array()
 
 $enabledinternallinks = false
 
 $enable_keywords = false
 
 $enable_anchors = false
 
 $enablewikilinks = false
 
 $page_toc = false
 
 $activation = false
 
 $scheduled_activation = false
 
 $preventhtmlunmasking = false
 
 $enabledselfassessment = false
 
 $enabledselfassessment_scorm = false
 
 $int_link_def_type = ""
 
 $int_link_def_id = 0
 
 $multi_lang_support = false
 
 $single_page_mode = false
 
 $disable_default_qfeedback = false
 
 $question_html = array()
 
 $use_stored_tries = false
 
 $enable_user_links = false
 
 $enable_permission_checks = false
 

Detailed Description

Learning module page configuration.

Author
Alex Killing alex..nosp@m.kill.nosp@m.ing@g.nosp@m.mx.d.nosp@m.e
Version
$Id$

Definition at line 14 of file class.ilLMPageConfig.php.

Member Function Documentation

◆ configureByObjectId()

ilLMPageConfig::configureByObjectId (   $a_obj_id)

Object specific configuration.

Parameters
int$a_obj_idobject id

Definition at line 53 of file class.ilLMPageConfig.php.

References ilObjContentObject\_lookupDisableDefaultFeedback(), ilObjContentObject\isOnlineHelpModule(), ilPageConfig\setDisableDefaultQuestionFeedback(), and ilPageConfig\setEnableSelfAssessment().

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  }
static _lookupDisableDefaultFeedback($a_id)
Lookup disable default feedback.
setEnableSelfAssessment($a_enabledselfassessment, $a_scorm=true)
Set Enable Self Assessment Questions.
setDisableDefaultQuestionFeedback($a_val)
Set disable default question feedback.
static isOnlineHelpModule($a_id, $a_as_obj_id=false)
Is module an online module.
+ Here is the call graph for this function:

◆ init()

ilLMPageConfig::init ( )

Init.

Definition at line 19 of file class.ilLMPageConfig.php.

References $_GET, $lm_set, ilPageConfig\removeIntLinkFilter(), ilPageConfig\setEnableActivation(), ilPageConfig\setEnableAnchors(), ilPageConfig\setEnableInternalLinks(), ilPageConfig\setEnableKeywords(), ilPageConfig\setEnablePCType(), ilPageConfig\setEnableScheduledActivation(), ilPageConfig\setEnableSelfAssessment(), ilPageConfig\setIntLinkHelpDefaultId(), ilPageConfig\setIntLinkHelpDefaultType(), ilPageConfig\setMultiLangSupport(), ilPageConfig\setPreventHTMLUnmasking(), ilPageConfig\setPreventRteUsage(), and ilPageConfig\setUseAttachedContent().

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  }
setUseAttachedContent($a_val)
Set use attached content.
ILIAS Setting Class.
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.
removeIntLinkFilter($a_val)
Remove int link filter.
setIntLinkHelpDefaultId($a_val)
Set internal link default id.
setEnableInternalLinks($a_enabledinternallinks)
Set Enable internal links.
setEnableActivation($a_val)
Set enabled actication.
$lm_set
setPreventHTMLUnmasking($a_preventhtmlunmasking)
Set Prevent HTML Unmasking (true/false).
setPreventRteUsage($a_val)
Set prevent rte usage.
+ Here is the call graph for this function:

The documentation for this class was generated from the following file: