ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.ilWikiPageConfig.php
Go to the documentation of this file.
1<?php
2
25{
26 public function init(): void
27 {
28 $this->setEnablePCType("Map", true);
29 $this->setEnablePCType("Tabs", true);
30 $this->setPreventHTMLUnmasking(true);
31 $this->setEnableInternalLinks(true);
32 $this->setEnableAnchors(true);
33 $this->setEnableWikiLinks(true);
34 $this->setIntLinkFilterWhiteList(true);
35 $this->setMultiLangSupport(true);
36 $this->addIntLinkFilter("RepositoryItem");
37 $this->addIntLinkFilter("WikiPage");
38 $this->addIntLinkFilter("User");
39 $this->setIntLinkHelpDefaultType("RepositoryItem");
40 $this->setEnablePCType("AMDPageList", true);
41 $mset = new ilSetting("mobs");
42 if ($mset->get("mep_activate_pages")) {
43 $this->setEnablePCType("ContentInclude", true);
44 }
45 }
46
50 public function configureByObjectId(int $a_obj_id): void
51 {
52 global $DIC;
53
54 if ($a_obj_id > 0) {
55 $access = $DIC->access();
56 $lng = $DIC->language();
57 $request = $DIC->wiki()->internal()->gui()->request();
58
60 if ($access->checkAccess("write", "", $request->getRefId())) {
62 $lng->loadLanguageModule("wiki");
63 $this->setSectionProtectionInfo($lng->txt("wiki_sec_protect_info"));
64 } else {
66 }
67 }
68 }
69}
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...
static _lookupPageToc(int $a_wiki_id)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
setIntLinkHelpDefaultType(string $a_val)
setEnablePCType(string $a_pc_type, bool $a_val)
setSectionProtection(int $a_val)
addIntLinkFilter(string $a_val)
Add internal links filter.
setMultiLangSupport(bool $a_val)
setEnableAnchors(bool $a_val)
setIntLinkFilterWhiteList(bool $a_white_list)
Set internal links filter type list to white list.
setEnableWikiLinks(bool $a_enablewikilinks)
setSectionProtectionInfo(string $a_val)
setEnablePageToc(bool $a_val)
setPreventHTMLUnmasking(bool $a_preventhtmlunmasking)
setEnableInternalLinks(bool $a_enabledinternallinks)
ILIAS Setting Class.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
configureByObjectId(int $a_obj_id)
Object specific configuration.
global $DIC
Definition: shib_login.php:26