ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
Deck.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
24
25interface 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}
A component is the most general form of an entity in the UI.
Definition: Component.php:28
withSmallCardsSize()
Set the cards size to small: 2 (xs-6) 4 (sm-3) 4 (md-3) 6 (lg-2)
withLargeCardsSize()
Set the cards size to large: 1 (xs-12) 2 (sm-6) 2 (md-6) 3 (lg-4)
const SIZE_XS
Different sizes of the card.
Definition: Deck.php:42
withExtraSmallCardsSize()
Set the cards size to extra small: 3 (xs-4) 6 (sm-2) 6 (md-2) 12 (lg-1)
withExtraLargeCardsSize()
Set the cards size to extra large: 1 (xs-12) 1 (sm-12) 2 (md-6) 2 (lg-6)
withFullSizedCardsSize()
Set the cards size to full:
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)
getCardsSize()
Get the cards size.