ILIAS  release_7 Revision v7.30-3-g800a261c036
class.ilContainerPageConfig.php
Go to the documentation of this file.
1<?php
2
3/* Copyright (c) 1998-2013 ILIAS open source, Extended GPL, see docs/LICENSE */
4
5include_once("./Services/COPage/classes/class.ilPageConfig.php");
6
15{
19 protected $settings;
20
24 public function init()
25 {
26 global $DIC;
27
28 $this->settings = $DIC->settings();
29
30 $this->setEnableInternalLinks(true);
31 $this->setIntLinkHelpDefaultType("RepositoryItem");
32 $this->setEnablePCType("FileList", false);
33 $this->setEnablePCType("Map", true);
34 $this->setEnablePCType("Resources", true);
35 $this->setMultiLangSupport(true);
36 $this->setSinglePageMode(true);
37 $this->setEnablePermissionChecks(true);
38 $this->setUsePageContainer(false);
39
40 $mset = new ilSetting("mobs");
41 if ($mset->get("mep_activate_pages")) {
42 $this->setEnablePCType("ContentInclude", true);
43 }
44 }
45}
An exception for terminatinating execution or to throw for unit testing.
Container page configuration.
Config class for page editing.
setEnableInternalLinks($a_enabledinternallinks)
Set Enable internal links.
setEnablePermissionChecks($a_val)
Set enable permission checks.
setUsePageContainer($a_val)
Set if page container css class should be used.
setSinglePageMode($a_val)
Set single page mode.
setEnablePCType($a_pc_type, $a_val)
Set enable pc type.
setMultiLangSupport($a_val)
Set multi language support.
setIntLinkHelpDefaultType($a_val)
Set internal link default type.
ILIAS Setting Class.
global $DIC
Definition: goto.php:24
settings()
Definition: settings.php:2