ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
class.ilWikiPageConfig.php
Go to the documentation of this file.
1<?php
2
3/* Copyright (c) 1998-2012 ILIAS open source, Extended GPL, see docs/LICENSE */
4
5include_once("./Services/COPage/classes/class.ilPageConfig.php");
6
15{
19 public function init()
20 {
21 $this->setEnablePCType("Map", true);
22 $this->setEnablePCType("Tabs", true);
23 $this->setPreventHTMLUnmasking(true);
24 $this->setEnableInternalLinks(true);
25 $this->setEnableAnchors(true);
26 $this->setEnableWikiLinks(true);
27 $this->setIntLinkFilterWhiteList(true);
28 $this->addIntLinkFilter("RepositoryItem");
29 $this->addIntLinkFilter("WikiPage");
30 $this->addIntLinkFilter("User");
31 $this->setIntLinkHelpDefaultType("RepositoryItem");
32 $this->setEnablePCType("AMDPageList", true);
33 }
34
40 public function configureByObjectId($a_obj_id)
41 {
42 if ($a_obj_id > 0) {
43 include_once("./Modules/Wiki/classes/class.ilObjWiki.php");
45 }
46 }
47}
An exception for terminatinating execution or to throw for unit testing.
static _lookupPageToc($a_wiki_id)
Lookup whether important pages are activated.
Config class for page editing.
setEnableWikiLinks($a_enablewikilinks)
Set Enable Wiki Links.
setPreventHTMLUnmasking($a_preventhtmlunmasking)
Set Prevent HTML Unmasking (true/false).
addIntLinkFilter($a_val)
Add internal links filter.
setEnableInternalLinks($a_enabledinternallinks)
Set Enable internal links.
setEnablePCType($a_pc_type, $a_val)
Set enable pc type.
setIntLinkFilterWhiteList($a_white_list)
Set internal links filter type list to white list.
setIntLinkHelpDefaultType($a_val)
Set internal link default type.
setEnableAnchors($a_val)
Set enable anchors.
setEnablePageToc($a_val)
Set enable page toc.
Wiki page configuration.
configureByObjectId($a_obj_id)
Object specific configuration.