ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
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
5include_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}
55
56?>
static _getInstance()
get singleton instance
Config class for page editing.
setPreventHTMLUnmasking($a_preventhtmlunmasking)
Set Prevent HTML Unmasking (true/false).
setEnableInternalLinks($a_enabledinternallinks)
Set Enable internal links.
setEnablePCType($a_pc_type, $a_val)
Set enable pc type.
Portfolio page configuration.
ILIAS Setting Class.
global $ilSetting
Definition: privfeed.php:40