ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
FieldSelection.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
26use ILIAS\Data\Factory as DataFactory;
27use ILIAS\Refinery\Factory as Refinery;
30
32{
34 protected string $button_label = '';
35
36 public function __construct(
37 DataFactory $data_factory,
39 SignalGeneratorInterface $signal_generator,
40 protected array $options
41 ) {
42 parent::__construct($data_factory, $refinery);
43 $this->internal_selection_signal = $signal_generator->create();
44 }
45
46 protected function isClientSideValueOk($value): bool
47 {
48 return is_null($value) || is_array($value);
49 }
50
51 public function getInternalSignal(): Signal
52 {
54 }
55
56 public function getOptions(): array
57 {
58 return $this->options;
59 }
60
61 public function getButtonLabel(): string
62 {
64 }
65
66 public function withButtonLabel(string $button_label): self
67 {
68 $clone = clone $this;
69 $clone->button_label = $button_label;
70 return $clone;
71 }
72
73 public function withAriaLabel(string $label): self
74 {
75 $clone = clone $this;
76 $clone->label = $label;
77 return $clone;
78 }
79}
Builds data types.
Definition: Factory.php:36
isClientSideValueOk($value)
Check if the value is good to be displayed client side.
__construct(DataFactory $data_factory, Refinery $refinery, SignalGeneratorInterface $signal_generator, protected array $options)
A transformation is a function from one datatype to another.
This describes commonalities between all inputs.
Definition: Input.php:47
This describes a Field Selection View Control.
create(string $class='')
Create a signal, each created signal MUST have a unique ID.
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition: Factory.php:21
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition: Factory.php:21