/** * Constructor */ function __construct($a_id = 0, $a_old_nr = 0, $a_wiki_ref_id = 0) { global $tpl; // needed for notifications $this->setWikiRefId($a_wiki_ref_id); $this->setPageToc(ilObjWiki::_lookupPageToc(ilObject::_lookupObjId($a_wiki_ref_id))); parent::__construct("wpg", $a_id, $a_old_nr); // content style include_once "./Services/Style/classes/class.ilObjStyleSheet.php"; $tpl->setCurrentBlock("SyntaxStyle"); $tpl->setVariable("LOCATION_SYNTAX_STYLESHEET", ilObjStyleSheet::getSyntaxStylePath()); $tpl->parseCurrentBlock(); $this->setEnabledMaps(true); $this->setPreventHTMLUnmasking(true); $this->setEnabledInternalLinks(true); $this->setEnableAnchors(true); $this->setEnabledWikiLinks(true); $this->setEnabledPCTabs(true); $cfg = new ilPageConfig(); $cfg->setIntLinkFilterWhiteList(true); $cfg->addIntLinkFilter("RepositoryItem"); $this->setPageConfig($cfg); $this->setIntLinkHelpDefault("RepositoryItem", 0); }