ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.ilDclFileFieldModel.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
25{
26 public function allowFilterInListView(): bool
27 {
28 return false;
29 }
30
31 public function getValidFieldProperties(): array
32 {
34 }
35
36 public function getSupportedExtensions(): array
37 {
39 return [];
40 }
41
43
44 return $this->parseSupportedExtensions($file_types);
45 }
46
47 protected function parseSupportedExtensions(string $input_value): array
48 {
49 $supported_extensions = explode(",", $input_value);
50
51 $trim_function = function ($value) {
52 return trim(trim(strtolower($value)), ".");
53 };
54
55 return array_map($trim_function, $supported_extensions);
56 }
57}
hasProperty(string $key)
Checks if a certain property for a field is set.
@noinspection AutoloadingIssuesInspection
parseSupportedExtensions(string $input_value)
getValidFieldProperties()
Returns all valid properties for a field-type.