ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
◀ ilDoc Overview
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
5
namespace
ILIAS\UI\Component\Deck
;
6
7
interface
Deck
extends
\ILIAS\UI\Component\Component
{
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
}
ILIAS\UI\Component\Deck\Deck\getCardsSize
getCardsSize()
Get the cards size.
$size
$size
Definition:
RandomTest.php:79
ILIAS\UI\Component\Deck\Deck\SIZE_L
const SIZE_L
Definition:
Deck.php:14
ILIAS\UI\Component\Deck\Deck\SIZE_M
const SIZE_M
Definition:
Deck.php:13
ILIAS\UI\Component\Component
A component is the most general form of an entity in the UI.
Definition:
Component.php:13
ILIAS\UI\Component\Deck\Deck\SIZE_FULL
const SIZE_FULL
Definition:
Deck.php:16
ILIAS\UI\Component\Deck\Deck\SIZE_XL
const SIZE_XL
Definition:
Deck.php:15
ILIAS\UI\Component\Deck
Definition:
Deck.php:5
ILIAS\UI\Component\Deck\Deck
Definition:
Deck.php:7
ILIAS\UI\Component\Deck\Deck\SIZE_S
const SIZE_S
Definition:
Deck.php:12
ILIAS\UI\Component\Deck\Deck\withCards
withCards($cards)
Set the cards to be displayed in the deck.
ILIAS\UI\Component\Deck\Deck\SIZE_XS
const SIZE_XS
Different sizes of the card.
Definition:
Deck.php:11
ILIAS\UI\Component\Deck\Deck\getCards
getCards()
php
ILIAS\UI\Component\Deck\Deck\withCardsSize
withCardsSize($size)
Set the cards size.
src
UI
Component
Deck
Deck.php
Generated on Fri Feb 21 2025 19:01:22 for ILIAS by
1.8.13 (using
Doxyfile
)