ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
Standard.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
28use ILIAS\UI\Component\Dropdown\Standard as DropdownStandard;
30use ILIAS\UI\Component\Button\Standard as ButtonStandard;
31use ILIAS\UI\Component\Link\Standard as LinkStandard;
32
37interface Standard extends Item
38{
42 public function withColor(Color $color): Standard;
43
47 public function getColor(): ?Color ;
48
52 public function withLeadImage(Image $image): Standard;
53
57 public function withAudioPlayer(Audio $audio): Standard;
58
62 public function withLeadIcon(Icon $icon): Standard;
63
67 public function withLeadAvatar(Avatar $avatar): Standard;
68
72 public function withLeadText(string $text): Standard;
73
77 public function withNoLead(): Standard;
78
82 public function getLead();
83
84 public function getAudioPlayer(): ?Audio;
85
89 public function withProgress(ProgressMeter $chart): Standard;
90
91 public function getProgress(): ?ProgressMeter;
92
96 public function withActions(DropdownStandard $actions): Standard;
97
101 public function getActions(): ?DropdownStandard;
102
103 public function withMainAction(ButtonStandard|LinkStandard $button): Standard;
104
105 public function getMainAction(): ButtonStandard|LinkStandard|null;
106}
Color expresses a certain color by giving the mixing ratio in the RGB color space.
Definition: Color.php:30
This describes a standard button.
Definition: Standard.php:27
This describes a Standard Dropdown.
Definition: Standard.php:27
Common interface to all items.
Definition: Item.php:32
withProgress(ProgressMeter $chart)
Set progress meter chart.
getActions()
Get the actions of the item.
withMainAction(ButtonStandard|LinkStandard $button)
withColor(Color $color)
Set a color.
withLeadAvatar(Avatar $avatar)
Set avatar as lead.
withActions(DropdownStandard $actions)
Create a new appointment item with a set of actions to perform on it.
withLeadIcon(Icon $icon)
Set icon as lead.
withLeadText(string $text)
Set image as lead.
withAudioPlayer(Audio $audio)
Set audio player.
withLeadImage(Image $image)
Set image as lead.
withNoLead()
Reset lead to null.
getColor()
Return the given color.
This describes how a letter or a picture avatar could be modified during construction of UI.
Definition: Avatar.php:29
This describes how an icon could be modified during construction of UI.
Definition: Icon.php:29