ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
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 }
withExtraLargeCardsSize()
Set the cards size to extra large:
withSmallCardsSize()
Set the cards size to small:
getCardsSize()
Get the cards size.
withLargeCardsSize()
Set the cards size to large:
A component is the most general form of an entity in the UI.
Definition: Component.php:13
withExtraSmallCardsSize()
Set the cards size to extra small:
withNormalCardsSize()
Set the cards size to normal:
withCards($cards)
Set the cards to be displayed in the deck.
withFullSizedCardsSize()
Set the cards size to full:
const SIZE_XS
Different sizes of the card.
Definition: Deck.php:12