ILIAS  trunk Revision v12.0_alpha-377-g3641b37b9db
class.ilDclDetailedViewDefinitionConfig.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22{
23 public function init(): void
24 {
25 $this->setPreventHTMLUnmasking(true);
26 $this->setEnableInternalLinks(false);
27 $this->setEnableWikiLinks(false);
28 $this->setEnableActivation(false);
29 }
30
31 public function getTextTemplates(): array
32 {
33 global $DIC;
34 $tableview = new ilDclTableView($DIC->http()->wrapper()->query()->retrieve('tableview_id', $DIC->refinery()->kindlyTo()->int()));
35 $placeholder = [];
36 foreach (ilDclCache::getTableCache($tableview->getTableId())->getFields() as $p) {
37 $placeholder[$p->getTitle()] = '[[' . $p->getTitle() . ']]';
38 }
39 return $placeholder;
40 }
41
42 public function getTextTemplatesDropdownCaption(): string
43 {
44 return $this->lng->txt('dcl_legend_placeholders');
45 }
46}
static getTableCache(?int $table_id=null)
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.
setEnableWikiLinks(bool $a_enablewikilinks)
setPreventHTMLUnmasking(bool $a_preventhtmlunmasking)
setEnableInternalLinks(bool $a_enabledinternallinks)
global $DIC
Definition: shib_login.php:26