ILIAS  trunk Revision v11.0_alpha-1749-g1a06bdef097
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
Standard.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
21 namespace ILIAS\UI\Component\Item;
22 
32 
37 interface 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 }
withActions(DropdownStandard $actions)
Create a new appointment item with a set of actions to perform on it.
withProgress(ProgressMeter $chart)
Set progress meter chart.
getColor()
Return the given color.
withLeadText(string $text)
Set image as lead.
Color expresses a certain color by giving the mixing ratio in the RGB color space.
Definition: Color.php:29
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
withNoLead()
Reset lead to null.
withMainAction(ButtonStandard|LinkStandard $button)
This describes how a letter or a picture avatar could be modified during construction of UI...
Definition: Avatar.php:28
withColor(Color $color)
Set a color.
Common interface to all items.
Definition: Item.php:31
withLeadImage(Image $image)
Set image as lead.
withLeadAvatar(Avatar $avatar)
Set avatar as lead.
withLeadIcon(Icon $icon)
Set icon as lead.
This describes a Standard Dropdown.
Definition: Standard.php:26
getActions()
Get the actions of the item.
withAudioPlayer(Audio $audio)
Set audio player.