ILIAS  release_8 Revision v8.24
ILIAS\UI\examples\Deck Namespace Reference

Functions

 base ()
 
 repository ()
 
 user ()
 
 xl_card ()
 

Function Documentation

◆ base()

ILIAS\UI\examples\Deck\base ( )

Definition at line 7 of file base.php.

8{
9 //Init Factory and Renderer
10 global $DIC;
11 $f = $DIC->ui()->factory();
12 $renderer = $DIC->ui()->renderer();
13
14 //Generate some content
15 $content = $f->listing()->descriptive(
16 array(
17 "Entry 1" => "Some text",
18 "Entry 2" => "Some more text",
19 )
20 );
21
22 //Define the some responsive image
23 $image = $f->image()->responsive(
24 "./templates/default/images/HeaderIcon.svg",
25 "Thumbnail Example"
26 );
27
28 //Define the card by using the content and the image
29 $card = $f->card()->standard(
30 "Title",
31 $image
32 )->withSections(array(
33 $content,
34 ));
35
36 //Define the deck
37 $deck = $f->deck(array($card,$card,$card,$card,$card,
38 $card,$card,$card,$card));
39
40 //Render
41 return $renderer->render($deck);
42}
global $DIC
Definition: feed.php:28

References $DIC, and Vendor\Package\$f.

◆ repository()

ILIAS\UI\examples\Deck\repository ( )

Definition at line 7 of file repository.php.

8{
9 //Init Factory and Renderer
10 global $DIC;
11 $f = $DIC->ui()->factory();
12 $renderer = $DIC->ui()->renderer();
13
14 $icon = $f->symbol()->icon()->standard('crs', 'Course');
15
16 $items = array(
17 $f->button()->shy("Go to Course", "#"),
18 $f->button()->shy("Go to Portfolio", "#"),
19 $f->divider()->horizontal(),
20 $f->button()->shy("ilias.de", "http://www.ilias.de")
21 );
22
23 $dropdown = $f->dropdown()->standard($items);
24
25
26 $content = $f->listing()->descriptive(
27 array(
28 "Entry 1" => "Some text",
29 "Entry 2" => "Some more text",
30 )
31 );
32
33 $image = $f->image()->responsive(
34 "./templates/default/images/HeaderIcon.svg",
35 "Thumbnail Example"
36 );
37
38 $card = $f->card()->repositoryObject(
39 "Title",
40 $image
41 )->withObjectIcon(
42 $icon
43 )->withActions(
44 $dropdown
45 )->withCertificateIcon(
46 true
47 )->withSections(
48 array(
49 $content,
50 $content,
51 )
52 );
53
54 //Define the deck
55 $deck = $f->deck(array($card,$card,$card,$card,$card,
56 $card,$card,$card,$card))->withNormalCardsSize();
57
58 //Render
59 return $renderer->render($deck);
60}

References $DIC, and Vendor\Package\$f.

Referenced by ilObjEmployeeTalkGUI\__construct(), ilMathJaxSettingsGUI\__construct(), ilMMSubitemFormGUI\__construct(), ilMMTopItemFormGUI\__construct(), ilMailTemplateService\__construct(), ilMMItemTranslationGUI\__construct(), ilMMAbstractItemGUI\__construct(), ilEmployeeTalkMyStaffUserGUI\__construct(), ilPDSelectedItemsBlockMembershipsProvider\__construct(), ilUnitConfigurationGUI\__construct(), ilWebDAVMountInstructionsModalGUI\__construct(), ilObjEmployeeTalk\__construct(), ilObjEmployeeTalkSeries\__construct(), ilUnitConfigurationGUI\addCategory(), ilUnitConfigurationGUI\addUnit(), ilMMSubItemGUI\applyFilter(), ilUnitConfigurationGUI\confirmDeleteCategories(), ilUnitConfigurationGUI\confirmDeleteUnits(), ilMMSubItemGUI\delete(), ilMMTopItemGUI\delete(), ilUnitConfigurationGUI\deleteCategories(), ilMailTemplateService\deleteTemplatesByIds(), ilMMItemTranslationGUI\deleteTranslations(), ilUnitConfigurationGUI\deleteUnits(), ilMathJaxSettingsGUI\editSettings(), ilMMSubItemGUI\executeCommand(), ilMMTopItemGUI\executeCommand(), ilMMAbstractItemGUI\flush(), ilUnitConfigurationGUI\getCategoryById(), ilMMAbstractItemGUI\getMMItemFromRequest(), ilPDSelectedItemsBlockMembershipsProvider\getObjectsByMembership(), ilMMSubitemFormGUI\getTypeGroups(), ilMMTopItemFormGUI\getTypeGroups(), ilGlobalUnitConfigurationGUI\getUniqueId(), ilLocalUnitConfigurationGUI\getUniqueId(), ilLocalUnitConfigurationGUI\handleSubtabs(), ilLocalUnitConfigurationGUI\importGlobalCategories(), ilMMSubItemGUI\index(), ilMMTopItemGUI\index(), ilMMSubitemFormGUI\initForm(), ilMailTemplateService\listAllTemplatesAsArray(), ilMailTemplateService\loadTemplateForId(), ilMailTemplateService\loadTemplatesForContextId(), ilMMSubItemGUI\move(), ilMMTopItemGUI\move(), ilObjEmployeeTalk\read(), ilMMSubItemGUI\resetFilter(), ilMMSubitemFormGUI\save(), ilMMTopItemFormGUI\save(), ilUnitConfigurationGUI\saveCategory(), ilMMItemTranslationGUI\saveLanguages(), ilUnitConfigurationGUI\saveOrder(), ilMMSubItemGUI\saveTable(), ilMMTopItemGUI\saveTable(), ilUnitConfigurationGUI\saveUnit(), ilMailTemplateService\setAsContextDefault(), ilBuddyList\setRepository(), ilUnitConfigurationGUI\showUnitModificationForm(), ilMailTemplateService\unsetAsContextDefault(), ilObjEmployeeTalkGUI\validateCustom(), and ilEmployeeTalkMyStaffUserGUI\view().

+ Here is the caller graph for this function:

◆ user()

ILIAS\UI\examples\Deck\user ( )

Definition at line 7 of file user.php.

8{
9 //Init Factory and Renderer
10 global $DIC;
11 $f = $DIC->ui()->factory();
12 $renderer = $DIC->ui()->renderer();
13
14 $address = $f->listing()->descriptive(
15 array(
16 "Address" => "Hochschlustrasse 6",
17 "" => "3006 Bern",
18 "Contact" => "timon.amstutz@ilub.unibe.ch"
19 )
20 );
21
22 //Define the some responsive image
23 $image = $f->image()->responsive(
24 "./templates/default/images/HeaderIcon.svg",
25 "Thumbnail Example"
26 );
27
28 //Define the card by using the image and add a new section with a button
29 $card = $f->card()->standard(
30 "Timon Amstutz",
31 $image
32 )->withSections(array($address,$f->button()->standard("Request Contact", "")));
33
34 //Create a deck with large cards
35 $deck = $f->deck(array($card,$card,$card,$card,$card,$card,$card))->withLargeCardsSize();
36
37 //Render
38 return $renderer->render($deck);
39}

References $DIC, and Vendor\Package\$f.

◆ xl_card()

ILIAS\UI\examples\Deck\xl_card ( )

Definition at line 7 of file xl_card.php.

8{
9 //Init Factory and Renderer
10 global $DIC;
11 $f = $DIC->ui()->factory();
12 $renderer = $DIC->ui()->renderer();
13
14 //Generate some content
15 $content = $f->listing()->descriptive(
16 array(
17 "Entry 1" => "Some text",
18 "Entry 2" => "Some more text",
19 )
20 );
21
22 //Define the some responsive image
23 $image = $f->image()->responsive(
24 "./templates/default/images/HeaderIcon.svg",
25 "Thumbnail Example"
26 );
27
28 //Define the card by using the content and the image
29 $card = $f->card()->standard(
30 "Title",
31 $image
32 )->withSections(array(
33 $content
34 ));
35
36 //Define the extra large deck
37 $deck = $f->deck(array($card,$card,$card))->withExtraLargeCardsSize();
38
39 //Render
40 return $renderer->render($deck);
41}

References $DIC, and Vendor\Package\$f.