ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
class.ilBlogPostingConfig.php
Go to the documentation of this file.
1 <?php
2 
24 {
25  public function init(): void
26  {
27  global $DIC;
28 
29  $req = $DIC->blog()->internal()->gui()->standardRequest();
30 
31  $this->setEnablePCType("Map", true);
32  $this->setEnableInternalLinks($req->getRefId() > 0); // #15668
33  $this->setPreventHTMLUnmasking(false);
34  $this->setEnableActivation(true);
35 
36  $blga_set = new ilSetting("blga");
37  $this->setPreventHTMLUnmasking(!(bool) $blga_set->get("mask", false));
38  }
39 }
setPreventHTMLUnmasking(bool $a_preventhtmlunmasking)
setEnableInternalLinks(bool $a_enabledinternallinks)
catch(\Exception $e) $req
Definition: xapiproxy.php:93
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
global $DIC
Definition: feed.php:28
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)