ILIAS  trunk Revision v11.0_alpha-1831-g8615d53dadb
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
ilPortfolioPageConfig Class Reference

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...

+ Inheritance diagram for ilPortfolioPageConfig:
+ Collaboration diagram for ilPortfolioPageConfig:

Public Member Functions

 init ()
 
- Public Member Functions inherited from ilPageConfig
 __construct ()
 
 init ()
 
 setLayoutTemplateType (int $type)
 
 getLayoutTemplateType ()
 
 setEnablePCType (string $a_pc_type, bool $a_val)
 
 getEnablePCType (string $a_pc_type)
 
 getEnabledTopPCTypes ()
 
 setEnableKeywords (bool $a_val)
 
 getEnableKeywords ()
 
 setEnableAnchors (bool $a_val)
 
 getEnableAnchors ()
 
 setEnableInternalLinks (bool $a_enabledinternallinks)
 
 getEnableInternalLinks ()
 
 getEnableUserLinks ()
 
 setEnableWikiLinks (bool $a_enablewikilinks)
 
 getEnableWikiLinks ()
 
 addIntLinkFilter (string $a_val)
 Add internal links filter. More...
 
 removeIntLinkFilter (string $a_val)
 
 getIntLinkFilters ()
 
 setIntLinkFilterWhiteList (bool $a_white_list)
 Set internal links filter type list to white list. More...
 
 getIntLinkFilterWhiteList ()
 
 setPreventRteUsage (bool $a_val)
 
 getPreventRteUsage ()
 
 setLocalizationLanguage (string $a_val)
 
 getLocalizationLanguage ()
 
 setUseAttachedContent (bool $a_val)
 
 getUseAttachedContent ()
 
 setIntLinkHelpDefaultType (string $a_val)
 
 getIntLinkHelpDefaultType ()
 
 setIntLinkHelpDefaultId (int $a_val, bool $a_is_ref=true)
 Set internal link default id. More...
 
 getIntLinkHelpDefaultId ()
 
 getIntLinkHelpDefaultIdIsRef ()
 
 setEnableActivation (bool $a_val)
 Set enabled page activation. More...
 
 getEnableActivation ()
 
 setEnableScheduledActivation (bool $a_val)
 
 getEnableScheduledActivation ()
 
 setEnablePageToc (bool $a_val)
 
 getEnablePageToc ()
 
 setPreventHTMLUnmasking (bool $a_preventhtmlunmasking)
 
 getPreventHTMLUnmasking ()
 
 setEnableSelfAssessment (bool $a_enabledselfassessment, bool $a_scorm=true)
 
 getEnableSelfAssessment ()
 
 getEnableSelfAssessmentScorm ()
 Is self assessment used in SCORM mode? More...
 
 setDisableDefaultQuestionFeedback (bool $a_val)
 Set disable default question feedback. More...
 
 getDisableDefaultQuestionFeedback ()
 
 setMultiLangSupport (bool $a_val)
 
 getMultiLangSupport ()
 
 setSinglePageMode (bool $a_val)
 Set single page mode. More...
 
 getSinglePageMode ()
 
 setQuestionHTML (array $question_html)
 
 getQuestionHTML ()
 
 setUseStoredQuestionTries (bool $a_val)
 Set use stored answers/tries. More...
 
 getUseStoredQuestionTries ()
 
 setEnablePermissionChecks (bool $a_val)
 
 getEnablePermissionChecks ()
 
 setEditLockSupport (bool $a_val)
 
 getEditLockSupport ()
 
 setUsePageContainer (bool $a_val)
 Set if page container css class should be used. More...
 
 getUsePageContainer ()
 
 setSectionProtection (int $a_val)
 
 getSectionProtection ()
 
 setSectionProtectionInfo (string $a_val)
 
 getSectionProtectionInfo ()
 

Protected Attributes

ilSetting $settings
 
ilRbacSystem $rbacsystem
 
- Protected Attributes inherited from ilPageConfig
ILIAS COPage PC PCDefinition $pc_definition
 
int $layout_template_type = 0
 
bool $int_link_def_id_is_ref = false
 
ilLanguage $lng
 
array $int_link_filter = array("File", "PortfolioPage", "PortfolioTemplatePage")
 
bool $prevent_rte_usage = false
 
bool $use_attached_content = false
 
array $pc_defs = array()
 
array $pc_enabled = array()
 
bool $enabledinternallinks = false
 
bool $enable_keywords = false
 
bool $enable_anchors = false
 
bool $enablewikilinks = false
 
bool $page_toc = false
 
bool $activation = false
 
bool $scheduled_activation = false
 
bool $preventhtmlunmasking = false
 
bool $enabledselfassessment = false
 
bool $enabledselfassessment_scorm = false
 
string $int_link_def_type = ""
 
int $int_link_def_id = 0
 
bool $multi_lang_support = false
 
bool $single_page_mode = false
 
bool $disable_default_qfeedback = false
 
array $question_html = array()
 
bool $use_stored_tries = false
 
bool $enable_user_links = false
 
bool $edit_lock_support = true
 
bool $use_page_container = true
 
bool $enable_permission_checks = false
 
ilSetting $adve_set
 
string $page_obj_key = ""
 
bool $link_filter_white_list = false
 
string $localization_lang = ""
 
int $section_protection = self::SEC_PROTECT_NONE
 
string $section_protection_info = ""
 

Additional Inherited Members

- Data Fields inherited from ilPageConfig
const SEC_PROTECT_NONE = 0
 
const SEC_PROTECT_EDITABLE = 1
 
const SEC_PROTECT_PROTECTED = 2
 
- Protected Member Functions inherited from ilPageConfig
 loadPCDefs ()
 
 loadParentKey ()
 

Detailed Description

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.

ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.

If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning Portfolio page configuration

Author
Alexander Killing killi.nosp@m.ng@l.nosp@m.eifos.nosp@m..de

Definition at line 23 of file class.ilPortfolioPageConfig.php.

Member Function Documentation

◆ init()

ilPortfolioPageConfig::init ( )

Definition at line 28 of file class.ilPortfolioPageConfig.php.

References $DIC, $rbacsystem, ilCalendarSettings\_getInstance(), ilPageConfig\addIntLinkFilter(), ilRbacSystem\checkAccess(), ilPageConfig\removeIntLinkFilter(), ilPageConfig\SEC_PROTECT_PROTECTED, ilPageConfig\setEditLockSupport(), ilPageConfig\setEnableInternalLinks(), ilPageConfig\setEnablePCType(), ilPageConfig\setIntLinkFilterWhiteList(), ilPageConfig\setIntLinkHelpDefaultId(), ilPageConfig\setIntLinkHelpDefaultType(), ilPageConfig\setPreventHTMLUnmasking(), ilPageConfig\setSectionProtection(), and ILIAS\Repository\settings().

28  : 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  }
setPreventHTMLUnmasking(bool $a_preventhtmlunmasking)
setIntLinkHelpDefaultId(int $a_val, bool $a_is_ref=true)
Set internal link default id.
setEnableInternalLinks(bool $a_enabledinternallinks)
setIntLinkHelpDefaultType(string $a_val)
addIntLinkFilter(string $a_val)
Add internal links filter.
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 ...
global $DIC
Definition: shib_login.php:22
setIntLinkFilterWhiteList(bool $a_white_list)
Set internal links filter type list to white list.
setEditLockSupport(bool $a_val)
removeIntLinkFilter(string $a_val)
setEnablePCType(string $a_pc_type, bool $a_val)
setSectionProtection(int $a_val)
+ Here is the call graph for this function:

Field Documentation

◆ $rbacsystem

ilRbacSystem ilPortfolioPageConfig::$rbacsystem
protected

Definition at line 26 of file class.ilPortfolioPageConfig.php.

Referenced by init().

◆ $settings

ilSetting ilPortfolioPageConfig::$settings
protected

Definition at line 25 of file class.ilPortfolioPageConfig.php.


The documentation for this class was generated from the following file: