ILIAS  trunk Revision v11.0_alpha-1769-g99a433fe2dc
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
Deck.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
22 
24 
25 interface Deck extends Component
26 {
42  public const SIZE_XS = 1;
43  public const SIZE_S = 2;
44  public const SIZE_M = 3;
45  public const SIZE_L = 4;
46  public const SIZE_XL = 6;
47  public const SIZE_FULL = 12;
48 
54  public function withCards(array $cards): Deck;
55 
56  /***
57  * Get the cards to be displayed in the deck
58  * @return \ILIAS\UI\Component\Card\Card[]
59  */
60  public function getCards(): array;
61 
66  public function withExtraSmallCardsSize(): Deck;
67 
72  public function withSmallCardsSize(): Deck;
73 
78  public function withNormalCardsSize(): Deck;
79 
84  public function withLargeCardsSize(): Deck;
85 
90  public function withExtraLargeCardsSize(): Deck;
91 
96  public function withFullSizedCardsSize(): Deck;
97 
102  public function getCardsSize(): int;
103 }
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)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
withExtraSmallCardsSize()
Set the cards size to extra small: 3 (xs-4) 6 (sm-2) 6 (md-2) 12 (lg-1)
withCards(array $cards)
Set the cards to be displayed in the deck.
withNormalCardsSize()
Set the cards size to normal: 1 (xs-12) 2 (sm-6) 3 (md-4) 4 (lg-3)
withFullSizedCardsSize()
Set the cards size to full:
const SIZE_XS
Different sizes of the card.
Definition: Deck.php:42