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}
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.
getTitle()
Gets the title in the heading section of the card.
getImage()
Get the image of the card.
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