ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
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  function init()
20  {
21  global $ilSetting, $rbacsystem;
22 
23  $prfa_set = new ilSetting("prfa");
24  $this->setPreventHTMLUnmasking(!(bool)$prfa_set->get("mask", false));
25 
26  $this->setEnableInternalLinks(false);
27  $this->setEnablePCType("Profile", true);
28 
29  if(!$ilSetting->get('disable_wsp_certificates'))
30  {
31  $this->setEnablePCType("Verification", true);
32  }
33  $skmg_set = new ilSetting("skmg");
34  if($skmg_set->get("enable_skmg"))
35  {
36  $this->setEnablePCType("Skills", true);
37  }
38 
39  include_once './Services/Calendar/classes/class.ilCalendarUserSettings.php';
41  if($settings->isEnabled() &&
42  $rbacsystem->checkAccess('add_consultation_hours', $settings->getCalendarSettingsId()) &&
43  $settings->areConsultationHoursEnabled())
44  {
45  $this->setEnablePCType("ConsultationHours", true);
46  }
47 
48  $prfa_set = new ilSetting("prfa");
49  if($prfa_set->get("mycrs", true))
50  {
51  $this->setEnablePCType("MyCourses", true);
52  }
53 
54  $mset = new ilSetting("mobs");
55  if ($mset->get("mep_activate_pages"))
56  {
57  $this->setEnablePCType("ContentInclude", true);
58  }
59  }
60 }
61 
62 ?>
ILIAS Setting Class.
static _getInstance()
get singleton instance
setEnablePCType($a_pc_type, $a_val)
Set enable pc type.
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).