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 7/** 8 * Wiki page configuration 9 * 10 * @author Alex Killing <alex.killing@gmx.de> 11 * @version $Id$ 12 * @ingroup ModulesWiki 13 */ 14class ilWikiPageConfig extends ilPageConfig 15{ 16 /** 17 * Init 18 */ 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 35 /** 36 * Object specific configuration 37 * 38 * @param int $a_obj_id object id 39 */ 40 public function configureByObjectId($a_obj_id) 41 { 42 if ($a_obj_id > 0) { 43 include_once("./Modules/Wiki/classes/class.ilObjWiki.php"); 44 $this->setEnablePageToc(ilObjWiki::_lookupPageToc($a_obj_id)); 45 } 46 } 47} 48