ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
All Data Structures Namespaces Files Functions Variables Modules Pages
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 }
static _getInstance()
get singleton instance
setEnablePCType($a_pc_type, $a_val)
Set enable pc type.
settings()
Definition: settings.php:2
setIntLinkHelpDefaultType($a_val)
Set internal link default type.
$_GET["client_id"]
removeIntLinkFilter($a_val)
Remove int link filter.
Config class for page editing.
setEnableInternalLinks($a_enabledinternallinks)
Set Enable internal links.
Portfolio page configuration.
global $ilSetting
Definition: privfeed.php:17
setPreventHTMLUnmasking($a_preventhtmlunmasking)
Set Prevent HTML Unmasking (true/false).
addIntLinkFilter($a_val)
Add internal links filter.
$DIC
Definition: xapitoken.php:46
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.