ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
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 
5 include_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 }
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.
Config class for page editing.
setEnableInternalLinks($a_enabledinternallinks)
Set Enable internal links.
Portfolio page configuration.
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.