ILIAS  release_8 Revision v8.24
class.ilDclPluginFieldModel.php
Go to the documentation of this file.
1<?php
2
20{
21 public function getValidFieldProperties(): array
22 {
24 }
25
29 public function getCustomValidFieldProperties(): array
30 {
31 return array();
32 }
33
37 public function allowFilterInListView(): bool
38 {
39 return false;
40 }
41
42 public function getPresentationTitle(): string
43 {
44 global $DIC;
45 $plugin = $DIC["component.factory"]->getPlugin(ilDclFieldTypePlugin::getPluginId($this->getDatatype()->getTitle()));
46 if (str_ends_with($plugin->txt('field_type_name'), 'field_type_name-')) {
47 return $plugin->getPluginName();
48 }
49 return $plugin->txt('field_type_name');
50 }
51
52 public function getPresentationDescription(): string
53 {
54 global $DIC;
55 $plugin = $DIC["component.factory"]->getPlugin(ilDclFieldTypePlugin::getPluginId($this->getDatatype()->getTitle()));
56 if (str_ends_with($plugin->txt('field_type_info'), 'field_type_info-')) {
57 return '';
58 }
59 return $plugin->txt('field_type_info');
60 }
61}
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
static getPluginId(string $datatype)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
getValidFieldProperties()
Returns all valid properties for a field-type.
getCustomValidFieldProperties()
Method for adding custom fields to plugins.
global $DIC
Definition: feed.php:28