ILIAS  release_8 Revision v8.24
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 protected array $options;
36
37 public function __construct(
38 DataFactory $data_factory,
39 Refinery $refinery,
40 SignalGeneratorInterface $signal_generator,
41 array $options
42 ) {
44 $this->options =$options;
45 $this->internal_selection_signal = $signal_generator->create();
46 }
47
48 protected function isClientSideValueOk($value): bool
49 {
50 return is_null($value) || is_array($value);
51 }
52
53 public function getInternalSignal(): Signal
54 {
56 }
57
58 public function getOptions(): array
59 {
60 return $this->options;
61 }
62
63 public function getButtonLabel(): string
64 {
66 }
67
68 public function withButtonLabel(string $button_label): self
69 {
70 $clone = clone $this;
71 $clone->button_label = $button_label;
72 return $clone;
73 }
74
75 public function withAriaLabel(string $label): self
76 {
77 $clone = clone $this;
78 $clone->label = $label;
79 return $clone;
80 }
81}
Builds data types.
Definition: Factory.php:21
isClientSideValueOk($value)
Check if the value is good to be displayed client side.
__construct(DataFactory $data_factory, Refinery $refinery, SignalGeneratorInterface $signal_generator, array $options)
A transformation is a function from one datatype to another.
This describes commonalities between all inputs.
Definition: Input.php:49
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