ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
class.ilPortfolioPageConfig.php
Go to the documentation of this file.
1<?php
2
3/* Copyright (c) 1998-2019 ILIAS open source, Extended GPL, see docs/LICENSE */
4
11{
15 protected $settings;
16
20 protected $rbacsystem;
21
25 public function init()
26 {
27 global $DIC;
28
29 $this->settings = $DIC->settings();
30 $this->rbacsystem = $DIC->rbac()->system();
31
34
35 $prfa_set = new ilSetting("prfa");
36 $this->setPreventHTMLUnmasking(!(bool) $prfa_set->get("mask", false));
37
38 $this->setEnableInternalLinks(true);
39 $this->setIntLinkFilterWhiteList(true);
40 $this->addIntLinkFilter("User");
41 $this->addIntLinkFilter("PortfolioPage");
42 $this->removeIntLinkFilter("File");
43 $this->setIntLinkHelpDefaultId($_GET["prt_id"], false);
44 $this->setIntLinkHelpDefaultType("PortfolioPage");
45 $this->setEnablePCType("Profile", true);
46 $this->setEditLockSupport(false);
47
48 if (!$ilSetting->get('disable_wsp_certificates')) {
49 $this->setEnablePCType("Verification", true);
50 }
51 $skmg_set = new ilSetting("skmg");
52 if ($skmg_set->get("enable_skmg")) {
53 $this->setEnablePCType("Skills", true);
54 }
55
57 if ($settings->isEnabled() &&
58 $rbacsystem->checkAccess('add_consultation_hours', $settings->getCalendarSettingsId()) &&
59 $settings->areConsultationHoursEnabled()) {
60 $this->setEnablePCType("ConsultationHours", true);
61 }
62
63 $prfa_set = new ilSetting("prfa");
64 if ($prfa_set->get("mycrs", true)) {
65 $this->setEnablePCType("MyCourses", true);
66 }
67
68 $mset = new ilSetting("mobs");
69 if ($mset->get("mep_activate_pages")) {
70 $this->setEnablePCType("ContentInclude", true);
71 }
72
73 $this->setEnablePCType("LearningHistory", true);
74 }
75}
$_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
settings()
Definition: settings.php:2
$DIC
Definition: xapitoken.php:46