ILIAS  release_10 Revision v10.1-43-ga1241a92c2f
Slate.php
Go to the documentation of this file.
1 <?php
2 
3 declare(strict_types=1);
4 
22 
29 
34 {
38  public function getName(): string;
39 
43  public function getSymbol(): Symbol;
44 
48  public function getToggleSignal(): Signal;
49 
53  public function getEngageSignal(): Signal;
54 
58  public function withEngaged(bool $state): Slate;
59 
63  public function getEngaged(): bool;
64 
68  public function getContents(): array;
69 
73  public function getReplaceSignal(): ?Signal;
74 
78  public function appendOnInView(Signal $signal): Slate;
79 
84  public function withMainBarTreePosition(string $tree_pos): Slate;
85 
86  public function getMainBarTreePosition(): ?string;
87 }
This describes a symbol.
Definition: Symbol.php:29
getEngaged()
Should the slate be rendered as engaged?
withEngaged(bool $state)
Configures the slate to be rendered as engaged (or not).
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
trait JavaScriptBindable
Trait for components implementing JavaScriptBindable providing standard implementation.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
getName()
Get the name of this slate.
getToggleSignal()
Signal that toggles the slate when triggered.
getReplaceSignal()
Signal to replace the contents of the slate.
getSymbol()
Get the Symbol of the slate.
withMainBarTreePosition(string $tree_pos)
Slates in the main bar need to be addressable via JS, a.o.
appendOnInView(Signal $signal)
A Signal that is triggered when the slate "comes into view", i.e.
getEngageSignal()
Signal that engages the slate when triggered.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition: Combined.php:20