ILIAS  release_7 Revision v7.30-3-g800a261c036
All Data Structures Namespaces Files Functions Variables Modules Pages
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 {
24  public const SIZE_XS = 1;
25  public const SIZE_S = 2;
26  public const SIZE_M = 3;
27  public const SIZE_L = 4;
28  public const SIZE_XL = 6;
29  public const SIZE_FULL = 12;
30 
36  public function withCards($cards);
37 
38  /***
39  * Get the cards to be displayed in the deck
40  * @return \ILIAS\UI\Component\Card\Card[]
41  */
42  public function getCards();
43 
51  public function withExtraSmallCardsSize();
52 
60  public function withSmallCardsSize();
61 
69  public function withNormalCardsSize();
70 
78  public function withLargeCardsSize();
79 
87  public function withExtraLargeCardsSize();
88 
96  public function withFullSizedCardsSize();
97 
104  public function getCardsSize();
105 }
withExtraLargeCardsSize()
Set the cards size to extra large: 1 (xs-12) 1 (sm-12) 2 (md-6) 2 (lg-6)
withSmallCardsSize()
Set the cards size to small: 2 (xs-6) 4 (sm-3) 4 (md-3) 6 (lg-2)
getCardsSize()
Get the cards size.
withLargeCardsSize()
Set the cards size to large: 1 (xs-12) 2 (sm-6) 2 (md-6) 3 (lg-4)
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: 3 (xs-4) 6 (sm-2) 6 (md-2) 12 (lg-1)
withNormalCardsSize()
Set the cards size to normal: 1 (xs-12) 2 (sm-6) 3 (md-4) 4 (lg-3)
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:24