ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.ilDclPluginFieldModel.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22{
23 public function getValidFieldProperties(): array
24 {
26 }
27
31 public function getCustomValidFieldProperties(): array
32 {
33 return [];
34 }
35
39 public function allowFilterInListView(): bool
40 {
41 return false;
42 }
43
44 public function getPresentationTitle(): string
45 {
46 global $DIC;
47 $plugin = $DIC["component.factory"]->getPlugin(ilDclFieldTypePlugin::getPluginId($this->getDatatype()->getTitle()));
48 if (str_ends_with($plugin->txt('field_type_name'), 'field_type_name-')) {
49 return $plugin->getPluginName();
50 }
51 return $plugin->txt('field_type_name');
52 }
53
54 public function getPresentationDescription(): string
55 {
56 global $DIC;
57 $plugin = $DIC["component.factory"]->getPlugin(ilDclFieldTypePlugin::getPluginId($this->getDatatype()->getTitle()));
58 if (str_ends_with($plugin->txt('field_type_info'), 'field_type_info-')) {
59 return '';
60 }
61 return $plugin->txt('field_type_info');
62 }
63}
static getPluginId(string $datatype)
getValidFieldProperties()
Returns all valid properties for a field-type.
getCustomValidFieldProperties()
Method for adding custom fields to plugins.
global $DIC
Definition: shib_login.php:26