ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
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
11 const SIZE_XS = 1; //12 Cards per row
12 const SIZE_S = 2; //6 Cards per row
13 const SIZE_M = 3; //4 Cards per row
14 const SIZE_L = 4; //3 Cards per row
15 const SIZE_XL = 6; //2 Cards per row
16 const SIZE_FULL = 12; //1 Card per row
17
23 public function withCards($cards);
24
25 /***
26 * Get the cards to be displayed in the deck
27 * @return \ILIAS\UI\Component\Card\Card[]
28 */
29 public function getCards();
30
35 public function withCardsSize($size);
36
41 public function getCardsSize();
42}
$size
Definition: RandomTest.php:79
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:13
withCardsSize($size)
Set the cards size.
const SIZE_XS
Different sizes of the card.
Definition: Deck.php:11
withCards($cards)
Set the cards to be displayed in the deck.
getCardsSize()
Get the cards size.