ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
Card.php
Go to the documentation of this file.
1 <?php
2 
3 declare(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 }
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.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
getTitle()
Get the title in the heading section of the card.
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:136
withTitle($title)
Sets the title in the heading section of the card.
withImage(Image $image)
Set the image of the card.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition: Card.php:21