ILIAS  release_10 Revision v10.1-43-ga1241a92c2f
ILIAS\UI\examples\Deck Namespace Reference

Functions

 base ()
 

description: > Example for rendering a base deck. More...

 
 repository ()
 

description: > Example for rendering a repository card More...

 
 user ()
 

description: > Example for rendering a user card More...

 
 xl_card ()
 

description: > Example for rendering a XL card More...

 

Function Documentation

◆ base()

ILIAS\UI\examples\Deck\base ( )


description: > Example for rendering a base deck.

expected output: > ILIAS shows nine "Cards" with a title and text each. According to the browser window/desktop size a different

number of cards will be displayed per line.

Definition at line 17 of file base.php.

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

18 {
19  //Init Factory and Renderer
20  global $DIC;
21  $f = $DIC->ui()->factory();
22  $renderer = $DIC->ui()->renderer();
23 
24  //Generate some content
25  $content = $f->listing()->descriptive(
26  array(
27  "Entry 1" => "Some text",
28  "Entry 2" => "Some more text",
29  )
30  );
31 
32  //Define the some responsive image
33  $image = $f->image()->responsive(
34  "./assets/images/logo/HeaderIcon.svg",
35  "Thumbnail Example"
36  );
37 
38  //Define the card by using the content and the image
39  $card = $f->card()->standard(
40  "Title",
41  $image
42  )->withSections(array(
43  $content,
44  ));
45 
46  //Define the deck
47  $deck = $f->deck(array($card,$card,$card,$card,$card,
48  $card,$card,$card,$card));
49 
50  //Render
51  return $renderer->render($deck);
52 }
$renderer
global $DIC
Definition: shib_login.php:25

◆ repository()

ILIAS\UI\examples\Deck\repository ( )


description: > Example for rendering a repository card

expected output: > ILIAS shows nine base cards. Additionally every single card includes outlined icons, certificate

glyphs and action menus. You can open the menus via click.

Definition at line 17 of file repository.php.

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

Referenced by ilPDSelectedItemsBlockMembershipsProvider\__construct(), ilWebDAVMountInstructionsModalGUI\__construct(), ILIAS\GlobalScreen\UI\Footer\Groups\GroupForm\__construct(), ILIAS\MetaData\Services\Derivation\Derivator\__construct(), ILIAS\MetaData\Services\Derivation\SourceSelector\__construct(), ILIAS\GlobalScreen\UI\Footer\Entries\EntryForm\__construct(), ILIAS\Poll\Image\Repository\Element\Wrapper\IRSS\Factory\__construct(), ILIAS\Poll\Image\Repository\Wrapper\DB\Factory\__construct(), ILIAS\MetaData\Services\Manipulator\Manipulator\__construct(), ILIAS\Poll\Image\Repository\Element\Wrapper\Factory\__construct(), ILIAS\Poll\Image\Repository\Wrapper\Factory\__construct(), ILIAS\Poll\Image\Handler\__construct(), ILIAS\Poll\Image\Repository\Element\Factory\__construct(), ILIAS\Poll\Image\Repository\Wrapper\DB\Handler\__construct(), ILIAS\MetaData\Services\Manipulator\Factory\__construct(), ILIAS\MetaData\Services\Search\Searcher\__construct(), ILIAS\Poll\Image\Repository\Element\Wrapper\IRSS\Handler\__construct(), ilObjEmployeeTalkSeries\__construct(), ILIAS\User\Profile\Prompt\StartUpStep\__construct(), ILIAS\MetaData\Editor\Manipulator\Manipulator\__construct(), ILIAS\Export\ExportHandler\Consumer\ExportWriter\Handler\__construct(), ilEmployeeTalkMyStaffBaseGUI\__construct(), ILIAS\MetaData\Editor\Digest\CopyrightHandler\__construct(), ilObjFooterAdministrationGUI\__construct(), ilMathJaxSettingsGUI\__construct(), ilMDCopyrightTableGUI\__construct(), ilMMItemTranslationGUI\__construct(), ilObjEmployeeTalk\__construct(), ilMDCopyrightSelectionEntry\__construct(), ilFooterTranslationGUI\__construct(), ilMDCopyrightConfigurationGUI\__construct(), ilObjEmployeeTalkGUI\__construct(), ilFooterEntriesGUI\__construct(), ilFooterGroupsGUI\__construct(), ilMMAbstractItemGUI\__construct(), ilMMSubitemFormGUI\__construct(), ilMMTopItemFormGUI\__construct(), ilMDEditorGUI\__construct(), ilObjEmployeeTalkSeries\_exists(), ilObjEmployeeTalk\_exists(), ILIAS\LegalDocuments\Provide\ProvideHistory\acceptDocument(), ILIAS\LegalDocuments\Provide\ProvideHistory\acceptedVersion(), ilFooterEntriesGUI\add(), ilMMSubItemGUI\add(), ilMMTopItemGUI\add(), ilFooterGroupsGUI\add(), ilUnitConfigurationGUI\addCategory(), ilObjEmployeeTalkGUI\addChangeDateButtonsToToolbar(), ilUnitConfigurationGUI\addUnit(), ILIAS\LegalDocuments\Repository\ReadOnlyDocumentRepository\all(), ILIAS\LegalDocuments\Provide\ProvideHistory\alreadyAccepted(), ilMMSubItemGUI\applyFilter(), ILIAS\GlobalScreen\UI\Footer\Translation\TranslationWorkflowForm\asTranslationModal(), ilTestExportOptionXMLRES\buildElements(), ilTestToplistGUI\buildTable(), ILIAS\Poll\Image\Handler\cloneImage(), ilFooterGroupsGUI\confirmDelete(), ilFooterEntriesGUI\confirmDelete(), ilUnitConfigurationGUI\confirmDeleteCategories(), ilMDCopyrightConfigurationGUI\confirmDeleteEntries(), ilUnitConfigurationGUI\confirmDeleteUnits(), ILIAS\LegalDocuments\Repository\ReadOnlyDocumentRepository\countAll(), ilMMSubItemGUI\create(), ilFooterEntriesGUI\create(), ilMMTopItemGUI\create(), ilFooterGroupsGUI\create(), ILIAS\LegalDocuments\Repository\ReadOnlyDocumentRepository\createCriterion(), ILIAS\LegalDocuments\Repository\ReadOnlyDocumentRepository\createDocument(), ilMailTemplateService\createNewTemplate(), ILIAS\LegalDocuments\Provide\ProvideHistory\currentDocumentOfAcceptedVersion(), ILIAS\Poll\Image\Repository\Wrapper\Factory\db(), ilMDEditorGUI\debug(), ILIAS\Poll\Image\Repository\Element\Wrapper\IRSS\Handler\delete(), ilFooterGroupsGUI\delete(), ilMMSubItemGUI\delete(), ilMMTopItemGUI\delete(), ilFooterEntriesGUI\delete(), ilUnitConfigurationGUI\deleteCategories(), ILIAS\LegalDocuments\Repository\ReadOnlyDocumentRepository\deleteCriterion(), ILIAS\LegalDocuments\Repository\ReadOnlyDocumentRepository\deleteDocument(), ilMDCopyrightConfigurationGUI\deleteEntries(), ILIAS\Poll\Image\Handler\deleteImage(), ilMailTemplateService\deleteTemplatesByIds(), ilMMItemTranslationGUI\deleteTranslations(), ilUnitConfigurationGUI\deleteUnits(), ILIAS\LegalDocuments\Repository\ReadOnlyDocumentRepository\documentFromRow(), ILIAS\LegalDocuments\Repository\ReadOnlyDocumentRepository\documentTable(), ilFooterEntriesGUI\edit(), ilFooterGroupsGUI\edit(), ilMathJaxSettingsGUI\editSettings(), ILIAS\MetaData\Services\Search\Searcher\execute(), ILIAS\MetaData\Services\Manipulator\Manipulator\execute(), ILIAS\MetaData\Editor\Manipulator\Manipulator\execute(), ILIAS\User\Profile\Prompt\StartUpStep\execute(), ilMDCopyrightConfigurationGUI\executeCommand(), ilMMSubItemGUI\executeCommand(), ilMMTopItemGUI\executeCommand(), ilFooterEntriesGUI\executeCommand(), ilFooterGroupsGUI\executeCommand(), ILIAS\LegalDocuments\Repository\ReadOnlyDocumentRepository\exists(), ILIAS\LegalDocuments\Repository\ReadOnlyDocumentRepository\find(), ILIAS\LegalDocuments\Repository\ReadOnlyDocumentRepository\findId(), ilMMAbstractItemGUI\flush(), ILIAS\MetaData\Services\Derivation\Derivator\forObject(), ILIAS\MetaData\Services\Derivation\SourceSelector\fromObject(), ilMDEditorGUI\fullEditor(), ilMDEditorGUI\fullEditorDelete(), ilMDEditorGUI\fullEditorEdit(), ILIAS\MetaData\Services\Manipulator\Factory\get(), ilUnitConfigurationGUI\getCategoryById(), ILIAS\MetaData\Services\Derivation\SourceSelector\getDerivator(), ILIAS\Export\ExportHandler\Consumer\ExportWriter\Handler\getElement(), ILIAS\GlobalScreen\UI\Footer\Translation\TranslationWorkflowForm\getLanguageSelectionForm(), ILIAS\GlobalScreen\UI\Footer\Translation\TranslationWorkflowForm\getLanguageSelectionInputs(), ilMMAbstractItemGUI\getMMItemFromRequest(), ilMMTopItemGUI\getMoveForm(), ilPDSelectedItemsBlockMembershipsProvider\getObjectsByMembership(), ILIAS\Poll\Image\Handler\getProcessedImageURL(), ILIAS\Poll\Image\Handler\getRessource(), ILIAS\GlobalScreen\UI\Footer\Groups\GroupsTable\getRows(), ILIAS\GlobalScreen\UI\Footer\Entries\EntriesTable\getRows(), ILIAS\MetaData\Services\ServicesTest\getServices(), ILIAS\Poll\Image\Handler\getThumbnailImageURL(), ILIAS\Test\Participants\ParticipantTable\getTotalRowCount(), ILIAS\GlobalScreen\UI\Footer\Translation\TranslationWorkflowForm\getTranslationForm(), ILIAS\GlobalScreen\UI\Footer\Translation\TranslationWorkflowForm\getTranslationInputs(), ilMMTopItemFormGUI\getTypeGroups(), ilMMSubitemFormGUI\getTypeGroups(), ilGlobalUnitConfigurationGUI\getUniqueId(), ilLocalUnitConfigurationGUI\getUniqueId(), ILIAS\Poll\Image\Handler\getUnprocessedImageURL(), ilMetaDataExporter\getXmlRepresentation(), ILIAS\Poll\Image\Repository\Element\Wrapper\IRSS\Factory\handler(), ILIAS\Poll\Image\Repository\Wrapper\DB\Factory\handler(), ilLocalUnitConfigurationGUI\handleSubtabs(), ilLocalUnitConfigurationGUI\importGlobalCategories(), ilMetaDataImporter\importXmlRepresentation(), ilFooterEntriesGUI\index(), ilFooterTranslationGUI\index(), ilFooterGroupsGUI\index(), ilMMTopItemGUI\index(), ilMMSubItemGUI\index(), ilMetaDataExporter\init(), ilMetaDataImporter\init(), ilTestExportOptionXMLRES\init(), ILIAS\MetaData\Editor\Digest\CopyrightHandler\initCPEntries(), ilMMSubitemFormGUI\initForm(), ilMMItemTranslationGUI\initToolbar(), ilUnitConfigurationGUI\initUnitForm(), ILIAS\Poll\Image\Repository\Element\Wrapper\Factory\irss(), ilLocalUnitConfigurationGUI\isCRUDContext(), ilMailTemplateService\listAllTemplatesAsArray(), ilMDEditorGUI\listQuickEdit(), ILIAS\Test\Participants\ParticipantTable\loadRecords(), ilEmployeeTalkMyStaffListGUI\loadTabs(), ilEmployeeTalkMyStaffUserGUI\loadTalkData(), ilMailTemplateService\loadTemplateForId(), ilMailTemplateService\loadTemplatesForContextId(), ILIAS\Test\Results\Toplist\DataRetrieval\loadToplistData(), ilMailTemplateService\modifyExistingTemplate(), ilMMSubItemGUI\move(), ilMMTopItemGUI\move(), ilFooterEntriesGUI\move(), ilTestExportOptionXMLRES\onDeleteFiles(), ilMDCopyrightTableGUI\parseSelections(), ilObjEmployeeTalk\read(), ilMDCopyrightSelectionEntry\read(), ilFooterEntriesGUI\reset(), ilFooterGroupsGUI\reset(), ilMMSubItemGUI\resetFilter(), ILIAS\Test\Participants\ParticipantTableActions\resolveSelectedParticipants(), ILIAS\LegalDocuments\Table\HistoryTable\rows(), ilMMSubitemFormGUI\save(), ilMMTopItemFormGUI\save(), ilUnitConfigurationGUI\saveCategory(), ilMDCopyrightConfigurationGUI\saveCopyrightPosition(), ilMDCopyrightConfigurationGUI\saveEntry(), ilMMItemTranslationGUI\saveLanguages(), ilFooterEntriesGUI\saveOrder(), ilFooterGroupsGUI\saveOrder(), ilUnitConfigurationGUI\saveOrder(), ilMMSubItemGUI\saveTable(), ilMMTopItemGUI\saveTable(), ilUnitConfigurationGUI\saveUnit(), ILIAS\Poll\Image\Repository\Wrapper\DB\Handler\select(), ILIAS\LegalDocuments\Repository\ReadOnlyDocumentRepository\select(), ILIAS\LegalDocuments\Table\DocumentTable\select(), ilMailTemplateService\setAsContextDefault(), ilObjEmployeeTalk\setData(), ilBuddyList\setRepository(), ILIAS\User\Profile\Prompt\StartUpStep\shouldInterceptRequest(), ilMDCopyrightConfigurationGUI\showCopyrightSelection(), ilUnitConfigurationGUI\showUnitModificationForm(), ILIAS\GlobalScreen\UI\Footer\Groups\GroupForm\store(), ILIAS\GlobalScreen\UI\Footer\Entries\EntryForm\store(), ILIAS\LegalDocuments\Provide\ProvideHistory\table(), ilFooterEntriesGUI\toggleActivation(), ilFooterGroupsGUI\toggleActivation(), ilMailTemplateService\unsetAsContextDefault(), ilFooterEntriesGUI\update(), ilFooterGroupsGUI\update(), ILIAS\LegalDocuments\Repository\ReadOnlyDocumentRepository\updateCriterionContent(), ILIAS\LegalDocuments\Repository\ReadOnlyDocumentRepository\updateDocumentContent(), ILIAS\LegalDocuments\Repository\ReadOnlyDocumentRepository\updateDocumentOrder(), ILIAS\LegalDocuments\Repository\ReadOnlyDocumentRepository\updateDocumentTitle(), ilMDCopyrightConfigurationGUI\updateEntry(), ilMDEditorGUI\updateQuickEdit(), ILIAS\Poll\Image\Handler\uploadImage(), ilObjEmployeeTalkGUI\validateCustom(), and ILIAS\Poll\Image\Repository\Element\Factory\wrapper().

18 {
19  //Init Factory and Renderer
20  global $DIC;
21  $f = $DIC->ui()->factory();
22  $renderer = $DIC->ui()->renderer();
23 
24  $icon = $f->symbol()->icon()->standard('crs', 'Course');
25 
26  $items = array(
27  $f->button()->shy("Go to Course", "#"),
28  $f->button()->shy("Go to Portfolio", "#"),
29  $f->divider()->horizontal(),
30  $f->button()->shy("ilias.de", "http://www.ilias.de")
31  );
32 
33  $dropdown = $f->dropdown()->standard($items);
34 
35 
36  $content = $f->listing()->descriptive(
37  array(
38  "Entry 1" => "Some text",
39  "Entry 2" => "Some more text",
40  )
41  );
42 
43  $image = $f->image()->responsive(
44  "./assets/images/logo/HeaderIcon.svg",
45  "Thumbnail Example"
46  );
47 
48  $card = $f->card()->repositoryObject(
49  "Title",
50  $image
51  )->withObjectIcon(
52  $icon
53  )->withActions(
54  $dropdown
55  )->withCertificateIcon(
56  true
57  )->withSections(
58  array(
59  $content,
60  $content,
61  )
62  );
63 
64  //Define the deck
65  $deck = $f->deck(array($card,$card,$card,$card,$card,
66  $card,$card,$card,$card))->withNormalCardsSize();
67 
68  //Render
69  return $renderer->render($deck);
70 }
$renderer
global $DIC
Definition: shib_login.php:25
+ Here is the caller graph for this function:

◆ user()

ILIAS\UI\examples\Deck\user ( )


description: > Example for rendering a user card

expected output: > ILIAS shows seven base cards with a title and text each. A button "Request Contact" is displayed below each card. Clicking the button won't activate any actions. According to the size of the

browser window/desktop the number of cards displayed in each line will change.

Definition at line 18 of file user.php.

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

19 {
20  //Init Factory and Renderer
21  global $DIC;
22  $f = $DIC->ui()->factory();
23  $renderer = $DIC->ui()->renderer();
24 
25  $address = $f->listing()->descriptive(
26  array(
27  "Address" => "Hochschlustrasse 6",
28  "" => "3006 Bern",
29  "Contact" => "timon.amstutz@ilub.unibe.ch"
30  )
31  );
32 
33  //Define the some responsive image
34  $image = $f->image()->responsive(
35  "./assets/images/logo/HeaderIcon.svg",
36  "Thumbnail Example"
37  );
38 
39  //Define the card by using the image and add a new section with a button
40  $card = $f->card()->standard(
41  "Timon Amstutz",
42  $image
43  )->withSections(array($address,$f->button()->standard("Request Contact", "")));
44 
45  //Create a deck with large cards
46  $deck = $f->deck(array($card,$card,$card,$card,$card,$card,$card))->withLargeCardsSize();
47 
48  //Render
49  return $renderer->render($deck);
50 }
$renderer
global $DIC
Definition: shib_login.php:25

◆ xl_card()

ILIAS\UI\examples\Deck\xl_card ( )


description: > Example for rendering a XL card

expected output: > ILIAS shows three huge cards with a title and text each. The number of cards displayed in each line will change according

the size of the browser window/desktop.

Definition at line 17 of file xl_card.php.

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

18 {
19  //Init Factory and Renderer
20  global $DIC;
21  $f = $DIC->ui()->factory();
22  $renderer = $DIC->ui()->renderer();
23 
24  //Generate some content
25  $content = $f->listing()->descriptive(
26  array(
27  "Entry 1" => "Some text",
28  "Entry 2" => "Some more text",
29  )
30  );
31 
32  //Define the some responsive image
33  $image = $f->image()->responsive(
34  "./assets/images/logo/HeaderIcon.svg",
35  "Thumbnail Example"
36  );
37 
38  //Define the card by using the content and the image
39  $card = $f->card()->standard(
40  "Title",
41  $image
42  )->withSections(array(
43  $content
44  ));
45 
46  //Define the extra large deck
47  $deck = $f->deck(array($card,$card,$card))->withExtraLargeCardsSize();
48 
49  //Render
50  return $renderer->render($deck);
51 }
$renderer
global $DIC
Definition: shib_login.php:25