ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
Card.php
Go to the documentation of this file.
1 <?php
2 
3 /* Copyright (c) 2016 Timon Amstutz <timon.amstutz@ilub.unibe.ch> Extended GPL, see docs/LICENSE */
4 
6 
12 {
13 
19  public function withTitle($title);
20 
25  public function getTitle();
26 
32  public function withTitleAction($url);
33 
38  public function getTitleAction();
39 
45  public function withSections(array $sections);
46 
51  public function getSections();
52 
58  public function withImage(\ILIAS\UI\Component\Image\Image $image);
59 
64  public function getImage();
65 
71  public function withHighlight($status);
72 
77  public function isHighlighted();
78 }
getSections()
Get the multiple sections of the card as array.
Class Factory.
Class BaseForm.
getTitle()
Gets the title in the heading section of the card.
A component is the most general form of an entity in the UI.
Definition: Component.php:13
getTitleAction()
Returns the title action if given, otherwise null.
withImage(\ILIAS\UI\Component\Image\Image $image)
Set the image of the card.
getImage()
Get the image of the card.
isHighlighted()
Returns whether or not the Card is highlighted.
withSections(array $sections)
Set multiple sections of the card as array.
Create styles array
The data for the language used.
withTitleAction($url)
Get a Card like this with a title action.
withTitle($title)
Sets the title in the heading section of the card.
withHighlight($status)
Get a Card like this with a highlight.
$url