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
13interface 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}
An exception for terminatinating execution or to throw for unit testing.
getSections()
Get the multiple sections of the card as array.
withHighlight($status)
Get a Card like this with a highlight.
getTitleAction()
Returns the title action if given, otherwise null.
isHighlighted()
Returns whether or not the Card is highlighted.
withTitleAction($url)
Get a Card like this with a title action.
withImageAction($url)
Get a Card like this with an image action.
getTitle()
Get the title in the heading section of the card.
getImage()
Get the image of the card.
getImageAction()
Returns the image action if given, otherwise null.
withSections(array $sections)
Set multiple sections of the card as array.
withTitle($title)
Sets the title in the heading section of the card.
withImage(\ILIAS\UI\Component\Image\Image $image)
Set the image of the card.
A component is the most general form of an entity in the UI.
Definition: Component.php:14
Class BaseForm.
Class Factory.
$url