ILIAS  release_8 Revision v8.24
Card.php
Go to the documentation of this file.
1<?php
2
3declare(strict_types=1);
4
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 withImage(Image $image): Card;
76
80 public function getImage(): ?Image;
81
85 public function withHighlight(bool $status): Card;
86
90 public function isHighlighted(): bool;
91}
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:136
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.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition: Card.php:21
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.