ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.ilPortfolioTemplatePageConfig.php
Go to the documentation of this file.
1<?php
2
24{
25 public function init(): 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
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 }
50
51 public function getAvailablePlaceholderTypes(): 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 }
66}
loadLanguageModule(string $a_module)
Load language module.
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...
setIntLinkHelpDefaultId(int $a_val, bool $a_is_ref=true)
Set internal link default id.
removeIntLinkFilter(string $a_val)
setIntLinkHelpDefaultType(string $a_val)
setEnablePCType(string $a_pc_type, bool $a_val)
setSectionProtection(int $a_val)
addIntLinkFilter(string $a_val)
Add internal links filter.
setSectionProtectionInfo(string $a_val)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
global $DIC
Definition: shib_login.php:26