ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ViewControlInput.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
28
29abstract class ViewControlInput extends Input implements ViewControlInputInterface
30{
32 use Triggerer;
33
34 protected ?Signal $change_signal = null;
35
36 public function withOnChange(Signal $change_signal): self
37 {
38 $clone = clone $this;
39 $clone->change_signal = $change_signal;
40 return $clone;
41 }
42
43 public function getOnChangeSignal(): Signal
44 {
45 if (!$this->change_signal) {
46 throw new \LogicException('View Control must be inside of View Control Container');
47 }
49 }
50}
This implements commonalities between inputs.
Definition: Input.php:43
This describes the basis of all View Control Inputs.
This describes commonalities between all inputs.
Definition: Input.php:47
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition: Factory.php:21
trait JavaScriptBindable
Trait for components implementing JavaScriptBindable providing standard implementation.