ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
class.ilPortfolioPageConfig.php
Go to the documentation of this file.
1<?php
2
3/* Copyright (c) 1998-2013 ILIAS open source, Extended GPL, see docs/LICENSE */
4
5include_once("./Services/COPage/classes/class.ilPageConfig.php");
6
15{
19 protected $settings;
20
24 protected $rbacsystem;
25
29 public function init()
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
78 $this->setEnablePCType("LearningHistory", true);
79 }
80}
$_GET["client_id"]
An exception for terminatinating execution or to throw for unit testing.
static _getInstance()
get singleton instance
Config class for page editing.
setPreventHTMLUnmasking($a_preventhtmlunmasking)
Set Prevent HTML Unmasking (true/false).
removeIntLinkFilter($a_val)
Remove int link filter.
addIntLinkFilter($a_val)
Add internal links filter.
setIntLinkHelpDefaultId($a_val, $a_is_ref=true)
Set internal link default id.
setEnableInternalLinks($a_enabledinternallinks)
Set Enable internal links.
setEditLockSupport($a_val)
setEnablePCType($a_pc_type, $a_val)
Set enable pc type.
setIntLinkFilterWhiteList($a_white_list)
Set internal links filter type list to white list.
setIntLinkHelpDefaultType($a_val)
Set internal link default type.
Portfolio page configuration.
ILIAS Setting Class.
global $ilSetting
Definition: privfeed.php:17
global $DIC
Definition: saml.php:7
settings()
Definition: settings.php:2