ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
Card.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
29
35{
40 public function withTitle($title): Card;
41
46 public function getTitle();
47
52 public function withTitleAction($action): Card;
53
58 public function getTitleAction();
59
64 public function withSections(array $sections): Card;
65
70 public function getSections(): array;
71
75 public function withHiddenSections(array $sections): Card;
76
80 public function getHiddenSections(): array;
81
85 public function withImage(Image $image): Card;
86
90 public function getImage(): ?Image;
91
95 public function withHighlight(bool $status): Card;
96
100 public function isHighlighted(): bool;
101}
getSections()
Get the multiple sections of the card as array.
getTitleAction()
Returns the title action if given, otherwise null.
isHighlighted()
Returns whether the Card is highlighted.
withTitleAction($action)
Get a Card like this with a title action.
Definition: Card.php:154
withHiddenSections(array $sections)
getTitle()
Get the title in the heading section of the card.
getImage()
Get the image of the card.
withSections(array $sections)
Set multiple sections of the card as array.
withHighlight(bool $status)
Get a Card like this with a highlight.
withTitle($title)
Sets the title in the heading section of the card.
withImage(Image $image)
Set the image of the card.
A component is the most general form of an entity in the UI.
Definition: Component.php:28
Interface to be extended by components that have the possibility to bind to Javascript.
trait JavaScriptBindable
Trait for components implementing JavaScriptBindable providing standard implementation.