ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
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 
8 
13 interface Card extends Component
14 {
15 
21  public function withTitle($title);
22 
27  public function getTitle();
28 
34  public function withTitleAction($url);
35 
40  public function getTitleAction();
41 
47  public function withSections(array $sections);
48 
53  public function getSections();
54 
60  public function withImage(\ILIAS\UI\Component\Image\Image $image);
61 
66  public function getImage();
67 
73  public function withImageAction($url);
74 
79  public function getImageAction();
80 
86  public function withHighlight($status);
87 
92  public function isHighlighted();
93 }
getSections()
Get the multiple sections of the card as array.
withImageAction($url)
Get a Card like this with an image action.
Class Factory.
Class BaseForm.
getTitle()
Get the title in the heading section of the card.
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.
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
getImageAction()
Returns the image action if given, otherwise null.