ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
Wrapper.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
25use ILIAS\UI\Component\Dropzone\File\Wrapper as WrapperDropzone;
30
34class Wrapper extends File implements WrapperDropzone
35{
39 protected array $content;
40
44 public function __construct(
46 FieldFactory $field_factory,
47 NameSource $name_source,
48 string $title,
50 string $post_url,
51 FileInput $file_input,
52 ?FormInput $additional_input
53 ) {
56 $field_factory,
57 $name_source,
58 $title,
59 $post_url,
60 $file_input,
61 $additional_input,
62 );
63
64 $content = $this->toArray($content);
65 $this->checkArgListElements('content', $content, [Component::class]);
66 $this->content = $content;
67 }
68
72 public function getContent(): array
73 {
74 return $this->content;
75 }
76}
SignalGeneratorInterface $signal_generator
Definition: File.php:48
__construct(SignalGeneratorInterface $signal_generator, FieldFactory $field_factory, NameSource $name_source, string $title, $content, string $post_url, FileInput $file_input, ?FormInput $additional_input)
Definition: Wrapper.php:44
A component is the most general form of an entity in the UI.
Definition: Component.php:28
A wrapper file dropzone wraps around any other component from the UI framework, e....
Definition: Wrapper.php:32
This describes inputs that can be used in forms.
Definition: FormInput.php:33
This is what a factory for input fields looks like.
Definition: Factory.php:31
This describes file field.
Definition: File.php:29
Describes a source for input names.
Definition: NameSource.php:27
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc