ILIAS  release_10 Revision v10.1-43-ga1241a92c2f
Card.php
Go to the documentation of this file.
1 <?php
2 
19 declare(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 }
withHighlight(bool $status)
Get a Card like this with a highlight.
getSections()
Get the multiple sections of the card as array.
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.
getTitle()
Get the title in the heading section of the card.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
getTitleAction()
Returns the title action if given, otherwise null.
getImage()
Get the image of the card.
isHighlighted()
Returns whether the Card is highlighted.
withSections(array $sections)
Set multiple sections of the card as array.
withTitleAction($action)
Get a Card like this with a title action.
Definition: Card.php:154
withTitle($title)
Sets the title in the heading section of the card.
withImage(Image $image)
Set the image of the card.
withHiddenSections(array $sections)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition: Card.php:21