ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
ilPortfolioPageConfig Class Reference

Portfolio page configuration. More...

+ Inheritance diagram for ilPortfolioPageConfig:
+ Collaboration diagram for ilPortfolioPageConfig:

Public Member Functions

 init ()
 Init. 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...
 
 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, $a_is_ref=true)
 Set internal link default id. More...
 
 getIntLinkHelpDefaultId ()
 Get internal link default id. More...
 
 getIntLinkHelpDefaultIdIsRef ()
 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...
 
 setEditLockSupport ($a_val)
 
 getEditLockSupport ()
 

Protected Attributes

 $settings
 
 $rbacsystem
 
- Protected Attributes inherited from ilPageConfig
 $lng
 
 $int_link_filter = array("File", "PortfolioPage", "PortfolioTemplatePage")
 
 $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
 
 $edit_lock_support = true
 
 $enable_permission_checks = false
 
 $adve_set
 
 $page_obj_key = ""
 

Detailed Description

Portfolio 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.ilPortfolioPageConfig.php.

Member Function Documentation

◆ init()

ilPortfolioPageConfig::init ( )

Init.

Definition at line 29 of file class.ilPortfolioPageConfig.php.

References $_GET, $DIC, $ilSetting, $rbacsystem, $settings, ilCalendarSettings\_getInstance(), ilPageConfig\addIntLinkFilter(), ilPageConfig\removeIntLinkFilter(), ilPageConfig\setEditLockSupport(), ilPageConfig\setEnableInternalLinks(), ilPageConfig\setEnablePCType(), ilPageConfig\setIntLinkFilterWhiteList(), ilPageConfig\setIntLinkHelpDefaultId(), ilPageConfig\setIntLinkHelpDefaultType(), ilPageConfig\setPreventHTMLUnmasking(), and settings().

30  {
31  global $DIC;
32 
33  $this->settings = $DIC->settings();
34  $this->rbacsystem = $DIC->rbac()->system();
35 
38 
39  $prfa_set = new ilSetting("prfa");
40  $this->setPreventHTMLUnmasking(!(bool) $prfa_set->get("mask", false));
41 
42  $this->setEnableInternalLinks(true);
43  $this->setIntLinkFilterWhiteList(true);
44  $this->addIntLinkFilter("User");
45  $this->addIntLinkFilter("PortfolioPage");
46  $this->removeIntLinkFilter("File");
47  $this->setIntLinkHelpDefaultId($_GET["prt_id"], false);
48  $this->setIntLinkHelpDefaultType("PortfolioPage");
49  $this->setEnablePCType("Profile", true);
50  $this->setEditLockSupport(false);
51 
52  if (!$ilSetting->get('disable_wsp_certificates')) {
53  $this->setEnablePCType("Verification", true);
54  }
55  $skmg_set = new ilSetting("skmg");
56  if ($skmg_set->get("enable_skmg")) {
57  $this->setEnablePCType("Skills", true);
58  }
59 
60  include_once './Services/Calendar/classes/class.ilCalendarUserSettings.php';
62  if ($settings->isEnabled() &&
63  $rbacsystem->checkAccess('add_consultation_hours', $settings->getCalendarSettingsId()) &&
64  $settings->areConsultationHoursEnabled()) {
65  $this->setEnablePCType("ConsultationHours", true);
66  }
67 
68  $prfa_set = new ilSetting("prfa");
69  if ($prfa_set->get("mycrs", true)) {
70  $this->setEnablePCType("MyCourses", true);
71  }
72 
73  $mset = new ilSetting("mobs");
74  if ($mset->get("mep_activate_pages")) {
75  $this->setEnablePCType("ContentInclude", true);
76  }
77  }
static _getInstance()
get singleton instance
setEnablePCType($a_pc_type, $a_val)
Set enable pc type.
global $DIC
Definition: saml.php:7
setIntLinkHelpDefaultType($a_val)
Set internal link default type.
$_GET["client_id"]
removeIntLinkFilter($a_val)
Remove int link filter.
setEnableInternalLinks($a_enabledinternallinks)
Set Enable internal links.
settings()
Definition: settings.php:2
global $ilSetting
Definition: privfeed.php:17
setPreventHTMLUnmasking($a_preventhtmlunmasking)
Set Prevent HTML Unmasking (true/false).
addIntLinkFilter($a_val)
Add internal links filter.
setEditLockSupport($a_val)
setIntLinkFilterWhiteList($a_white_list)
Set internal links filter type list to white list.
setIntLinkHelpDefaultId($a_val, $a_is_ref=true)
Set internal link default id.
+ Here is the call graph for this function:

Field Documentation

◆ $rbacsystem

ilPortfolioPageConfig::$rbacsystem
protected

Definition at line 24 of file class.ilPortfolioPageConfig.php.

Referenced by init().

◆ $settings

ilPortfolioPageConfig::$settings
protected

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