ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
ilPortfolioTemplatePageConfig 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 ilPortfolioTemplatePageConfig:
+ Collaboration diagram for ilPortfolioTemplatePageConfig:

Public Member Functions

 init ()
 
 getAvailablePlaceholderTypes ()
 
- Public Member Functions inherited from ilPortfolioPageConfig
 init ()
 
- Public Member Functions inherited from ilPageConfig
 __construct ()
 
 init ()
 
 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 ()
 

Additional Inherited Members

- Data Fields inherited from ilPageConfig
const SEC_PROTECT_NONE = 0
 
const SEC_PROTECT_EDITABLE = 1
 
const SEC_PROTECT_PROTECTED = 2
 
- Protected Attributes inherited from ilPortfolioPageConfig
ilSetting $settings
 
ilRbacSystem $rbacsystem
 
- Protected Attributes inherited from ilPageConfig
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 = ""
 

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 template page configuration

Author
Jörg Lützenkirchen luetz.nosp@m.enki.nosp@m.rchen.nosp@m.@lei.nosp@m.fos.c.nosp@m.om

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

Member Function Documentation

◆ getAvailablePlaceholderTypes()

ilPortfolioTemplatePageConfig::getAvailablePlaceholderTypes ( )

Definition at line 51 of file class.ilPortfolioTemplatePageConfig.php.

References ilPCPlaceHolderGUI\TYPE_MEDIA, ilPCPlaceHolderGUI\TYPE_TEXT, and ilPCPlaceHolderGUI\TYPE_VERIFICATION.

51  : array
52  {
53  // no questions
54  $all = array(
57  );
58 
59  $validator = new ilCertificateActiveValidator();
60  if (true === $validator->validate()) {
62  }
63 
64  return $all;
65  }

◆ init()

ilPortfolioTemplatePageConfig::init ( )

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

References $DIC, ilPageConfig\$lng, ilPageConfig\addIntLinkFilter(), ilLanguage\loadLanguageModule(), ilPageConfig\removeIntLinkFilter(), ilPageConfig\SEC_PROTECT_EDITABLE, ilPageConfig\setEnablePCType(), ilPageConfig\setIntLinkHelpDefaultId(), ilPageConfig\setIntLinkHelpDefaultType(), ilPageConfig\setSectionProtection(), ilPageConfig\setSectionProtectionInfo(), ILIAS\Repository\settings(), and ilLanguage\txt().

25  : void
26  {
27  global $DIC;
28 
29  $this->settings = $DIC->settings();
30  $lng = $DIC->language();
31  $lng->loadLanguageModule("prtf");
32  $request = $DIC->portfolio()
33  ->internal()
34  ->gui()
35  ->standardRequest();
36 
37  parent::init();
38  $this->setIntLinkHelpDefaultId($request->getRefId());
39  $this->addIntLinkFilter("PortfolioTemplatePage");
40  $this->removeIntLinkFilter("PortfolioPage");
41  $this->setIntLinkHelpDefaultType("PortfolioTemplatePage");
42 
43  $this->setEnablePCType("Verification", false);
44  $this->setEnablePCType("PlaceHolder", true);
45  $this->setEnablePCType("AMDForm", true);
46 
48  $this->setSectionProtectionInfo($lng->txt("prtf_sec_protected_info"));
49  }
setIntLinkHelpDefaultId(int $a_val, bool $a_is_ref=true)
Set internal link default id.
txt(string $a_topic, string $a_default_lang_fallback_mod="")
gets the text for a given topic if the topic is not in the list, the topic itself with "-" will be re...
loadLanguageModule(string $a_module)
Load language module.
setIntLinkHelpDefaultType(string $a_val)
addIntLinkFilter(string $a_val)
Add internal links filter.
global $DIC
Definition: feed.php:28
setSectionProtectionInfo(string $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:

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