ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.ilBlogPostingConfig.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
26{
27 public function init(): void
28 {
29 global $DIC;
30
31 $req = $DIC->blog()->internal()->gui()->standardRequest();
32
33 $this->setEnablePCType("Map", true);
34 $this->setEnableInternalLinks($req->getRefId() > 0); // #15668
35 $this->setPreventHTMLUnmasking(false);
36 $this->setEnableActivation(true);
37
38 $blga_set = new ilSetting("blga");
39 $this->setPreventHTMLUnmasking(!$blga_set->get("mask", "0"));
40 }
41}
Blog posting page configuration.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
setEnableActivation(bool $a_val)
Set enabled page activation.
setEnablePCType(string $a_pc_type, bool $a_val)
setPreventHTMLUnmasking(bool $a_preventhtmlunmasking)
setEnableInternalLinks(bool $a_enabledinternallinks)
ILIAS Setting Class.
catch(\Exception $e) $req
Definition: xapiproxy.php:91
global $DIC
Definition: shib_login.php:26