37 $this->field_factory = $DIC->ui()->factory()->input()->field();
43 return $this->field_factory->section(
51 $possible = $this->
settings->isPreviewPossible();
53 $activated = $this->field_factory
55 $this->
language->txt(
'enable_preview'),
56 $this->
language->txt(
'enable_preview_info')
58 ->withDisabled(!$possible)
59 ->withValue($this->
settings->isPreviewEnabled())
61 $this->
refinery->custom()->transformation(
function ($v):
void {
62 $this->
settings->setPreviewEnabled($v);
66 $image_size = $this->field_factory
68 $this->
language->txt(
'preview_image_size'),
69 $this->
language->txt(
'preview_image_size_info')
71 ->withDisabled(!$possible)
73 ->withValue($this->
settings->getImageSize())
75 $this->
refinery->custom()->transformation(
function ($v):
void {
80 $persisting = $this->field_factory
82 $this->
language->txt(
'preview_persisting'),
83 $this->
language->txt(
'preview_persisting_info')
85 ->withDisabled(!$possible)
86 ->withValue($this->
settings->isPersisting())
88 $this->
refinery->custom()->transformation(
function ($v):
void {
93 $max_previews = $this->field_factory
95 $this->
language->txt(
'max_previews_per_object'),
96 $this->
language->txt(
'max_previews_per_object_info')
98 ->withDisabled(!$possible)
99 ->withValue($this->
settings->getMaximumPreviews())
101 $this->
refinery->custom()->transformation(
function ($v):
void {
102 $this->
settings->setMaximumPreviews($v);
106 $tile_previews = $this->field_factory
108 $this->
language->txt(
'previews_for_tiles'),
109 $this->
language->txt(
'previews_for_tiles_info')
111 ->withDisabled(!$possible)
112 ->withValue($this->
settings->hasTilePreviews())
114 $this->
refinery->custom()->transformation(
function ($v):
void {
115 $this->
settings->setTilePreviews($v);
119 return $this->field_factory->group(
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...