ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
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 
5 include_once("./Services/COPage/classes/class.ilPageConfig.php");
6 
15 {
19  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->setIntLinkHelpDefaultType("RepositoryItem");
31  $this->setEnablePCType("AMDPageList", true);
32  $this->setEnableUserLinks(true);
33  }
34 
40  function configureByObjectId($a_obj_id)
41  {
42  if ($a_obj_id > 0)
43  {
44  include_once("./Modules/Wiki/classes/class.ilObjWiki.php");
46  }
47  }
48 
49 }
50 
51 ?>
setEnablePCType($a_pc_type, $a_val)
Set enable pc type.
setEnableWikiLinks($a_enablewikilinks)
Set Enable Wiki Links.
setIntLinkHelpDefaultType($a_val)
Set internal link default type.
setEnableAnchors($a_val)
Set enable anchors.
configureByObjectId($a_obj_id)
Object specific configuration.
Wiki page configuration.
setEnablePageToc($a_val)
Set enable page toc.
Config class for page editing.
setEnableInternalLinks($a_enabledinternallinks)
Set Enable internal links.
setEnableUserLinks($a_val)
Set enable user links.
static _lookupPageToc($a_wiki_id)
Lookup whether important pages are activated.
setPreventHTMLUnmasking($a_preventhtmlunmasking)
Set Prevent HTML Unmasking (true/false).
addIntLinkFilter($a_val)
Add internal links filter.
setIntLinkFilterWhiteList($a_white_list)
Set internal links filter type list to white list.