ILIAS  release_8 Revision v8.24
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->addIntLinkFilter("RepositoryItem");
36 $this->addIntLinkFilter("WikiPage");
37 $this->addIntLinkFilter("User");
38 $this->setIntLinkHelpDefaultType("RepositoryItem");
39 $this->setEnablePCType("AMDPageList", true);
40 }
41
45 public function configureByObjectId(int $a_obj_id): void
46 {
47 global $DIC;
48
49 if ($a_obj_id > 0) {
50 $access = $DIC->access();
51 $lng = $DIC->language();
52 $request = $DIC->wiki()->internal()->gui()->editing()->request();
53
55 if ($access->checkAccess("write", "", $request->getRefId())) {
57 $lng->loadLanguageModule("wiki");
58 $this->setSectionProtectionInfo($lng->txt("wiki_sec_protect_info"));
59 } else {
61 }
62 }
63 }
64}
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.
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)
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: feed.php:28