ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.ilPortfolioPageConfig.php
Go to the documentation of this file.
1<?php
2
24{
27
28 public function init(): void
29 {
30 global $DIC;
31
32 $this->settings = $DIC->settings();
33 $this->rbacsystem = $DIC->rbac()->system();
34
35 $request = $DIC->portfolio()
36 ->internal()
37 ->gui()
38 ->standardRequest();
39
41
42 $prfa_set = new ilSetting("prfa");
43 $this->setPreventHTMLUnmasking(!(bool) $prfa_set->get("mask", false));
44
45 $this->setEnableInternalLinks(true);
46 $this->setIntLinkFilterWhiteList(true);
47 $this->addIntLinkFilter("User");
48 $this->addIntLinkFilter("PortfolioPage");
49 $this->removeIntLinkFilter("File");
50 $this->setIntLinkHelpDefaultId($request->getPortfolioId(), false);
51 $this->setIntLinkHelpDefaultType("PortfolioPage");
52 $this->setEnablePCType("Profile", true);
53 $this->setEditLockSupport(false);
55
56 $validator = new ilCertificateActiveValidator();
57 if (true === $validator->validate()) {
58 $this->setEnablePCType("Verification", true);
59 }
60 $skmg_set = new ilSetting("skmg");
61 if ($skmg_set->get("enable_skmg")) {
62 $this->setEnablePCType("Skills", true);
63 }
64
66 if ($settings->isEnabled() &&
67 $rbacsystem->checkAccess('add_consultation_hours', $settings->getCalendarSettingsId()) &&
68 $settings->areConsultationHoursEnabled()) {
69 $this->setEnablePCType("ConsultationHours", true);
70 }
71
72 $prfa_set = new ilSetting("prfa");
73 if ($prfa_set->get("mycrs", true)) {
74 $this->setEnablePCType("MyCourses", true);
75 }
76
77 $mset = new ilSetting("mobs");
78 if ($mset->get("mep_activate_pages")) {
79 $this->setEnablePCType("ContentInclude", true);
80 }
81
82 $this->setEnablePCType("LearningHistory", true);
83 }
84}
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
setEditLockSupport(bool $a_val)
setIntLinkHelpDefaultId(int $a_val, bool $a_is_ref=true)
Set internal link default id.
removeIntLinkFilter(string $a_val)
setIntLinkHelpDefaultType(string $a_val)
setEnablePCType(string $a_pc_type, bool $a_val)
setSectionProtection(int $a_val)
addIntLinkFilter(string $a_val)
Add internal links filter.
setIntLinkFilterWhiteList(bool $a_white_list)
Set internal links filter type list to white list.
setPreventHTMLUnmasking(bool $a_preventhtmlunmasking)
setEnableInternalLinks(bool $a_enabledinternallinks)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
class ilRbacSystem system function like checkAccess, addActiveRole ... Supporting system functions ar...
checkAccess(string $a_operations, int $a_ref_id, string $a_type="")
checkAccess represents the main method of the RBAC-system in ILIAS3 developers want to use With this ...
ILIAS Setting Class.
global $DIC
Definition: shib_login.php:26