ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
Deck.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{
12 const SIZE_XS = 1; //12 Cards per row on normal screen, 6 cards on small screens, 1 card on very small screens.
13 const SIZE_S = 2; //6 Cards per row, 3 cards on small screens, 1 card on very small screens
14 const SIZE_M = 3; //4 Cards per row,
15 const SIZE_L = 4; //3 Cards per row
16 const SIZE_XL = 6; //2 Cards per row
17 const SIZE_FULL = 12; //1 Card per row
18
24 public function withCards($cards);
25
26 /***
27 * Get the cards to be displayed in the deck
28 * @return \ILIAS\UI\Component\Card\Card[]
29 */
30 public function getCards();
31
41 public function withExtraSmallCardsSize();
42
52 public function withSmallCardsSize();
53
63 public function withNormalCardsSize();
64
74 public function withLargeCardsSize();
75
85 public function withExtraLargeCardsSize();
86
96 public function withFullSizedCardsSize();
97
104 public function getCardsSize();
105}
An exception for terminatinating execution or to throw for unit testing.
A component is the most general form of an entity in the UI.
Definition: Component.php:14
withSmallCardsSize()
Set the cards size to small:
withLargeCardsSize()
Set the cards size to large:
const SIZE_XS
Different sizes of the card.
Definition: Deck.php:12
withCards($cards)
Set the cards to be displayed in the deck.
withExtraSmallCardsSize()
Set the cards size to extra small:
withExtraLargeCardsSize()
Set the cards size to extra large:
withFullSizedCardsSize()
Set the cards size to full:
withNormalCardsSize()
Set the cards size to normal:
getCardsSize()
Get the cards size.