ILIAS  trunk Revision v11.0_alpha-1831-g8615d53dadb
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
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 33 of file base.php.

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

34 {
35  //Init Factory and Renderer
36  global $DIC;
37  $f = $DIC->ui()->factory();
38  $renderer = $DIC->ui()->renderer();
39 
40  //Generate some content
41  $content = $f->listing()->descriptive(
42  array(
43  "Entry 1" => "Some text",
44  "Entry 2" => "Some more text",
45  )
46  );
47 
48  //Define the some responsive image
49  $image = $f->image()->responsive(
50  "./assets/images/logo/HeaderIcon.svg",
51  "Thumbnail Example"
52  );
53 
54  //Define the card by using the content and the image
55  $card = $f->card()->standard(
56  "Title",
57  $image
58  )->withSections(array(
59  $content,
60  ));
61 
62  //Define the deck
63  $deck = $f->deck(array($card,$card,$card,$card,$card,
64  $card,$card,$card,$card));
65 
66  //Render
67  return $renderer->render($deck);
68 }
$renderer
global $DIC
Definition: shib_login.php:22

◆ 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 33 of file repository.php.

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

Referenced by ilPDSelectedItemsBlockMembershipsProvider\__construct(), ilObjEmployeeTalkSeries\__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\Wrapper\DB\Factory\__construct(), ILIAS\MetaData\Services\Manipulator\Manipulator\__construct(), ILIAS\Poll\Image\Repository\Element\Wrapper\IRSS\Factory\__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(), ILIAS\User\Profile\Prompt\StartUpStep\__construct(), ILIAS\MetaData\Editor\Manipulator\Manipulator\__construct(), ilEmployeeTalkMyStaffBaseGUI\__construct(), ILIAS\Export\ExportHandler\Consumer\ExportWriter\Handler\__construct(), ilMathJaxSettingsGUI\__construct(), ILIAS\MetaData\Editor\Digest\CopyrightHandler\__construct(), ilMDCopyrightTableGUI\__construct(), ilMDCopyrightSelectionEntry\__construct(), ilObjEmployeeTalk\__construct(), ilObjFooterAdministrationGUI\__construct(), ilMDCopyrightConfigurationGUI\__construct(), ilObjEmployeeTalkGUI\__construct(), ilMMAbstractItemGUI\__construct(), ilFooterTranslationGUI\__construct(), ilMDEditorGUI\__construct(), ilFooterEntriesGUI\__construct(), ilFooterGroupsGUI\__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\LegalDocuments\Table\DocumentTable\getRows(), ILIAS\MetaData\Services\ServicesTest\getServices(), ILIAS\Poll\Image\Handler\getThumbnailImageURL(), ILIAS\Test\Participants\ParticipantTable\getTotalRowCount(), ILIAS\LegalDocuments\Table\DocumentTable\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\Wrapper\DB\Factory\handler(), ILIAS\Poll\Image\Repository\Element\Wrapper\IRSS\Factory\handler(), ilLocalUnitConfigurationGUI\handleSubtabs(), ilLocalUnitConfigurationGUI\importGlobalCategories(), ilMetaDataImporter\importXmlRepresentation(), ilFooterTranslationGUI\index(), ilFooterEntriesGUI\index(), ilMMTopItemGUI\index(), ilFooterGroupsGUI\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(), 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().

34 {
35  //Init Factory and Renderer
36  global $DIC;
37  $f = $DIC->ui()->factory();
38  $renderer = $DIC->ui()->renderer();
39 
40  $icon = $f->symbol()->icon()->standard('crs', 'Course');
41 
42  $items = array(
43  $f->button()->shy("Go to Course", "#"),
44  $f->button()->shy("Go to Portfolio", "#"),
45  $f->divider()->horizontal(),
46  $f->button()->shy("ilias.de", "http://www.ilias.de")
47  );
48 
49  $dropdown = $f->dropdown()->standard($items);
50 
51 
52  $content = $f->listing()->descriptive(
53  array(
54  "Entry 1" => "Some text",
55  "Entry 2" => "Some more text",
56  )
57  );
58 
59  $image = $f->image()->responsive(
60  "./assets/images/logo/HeaderIcon.svg",
61  "Thumbnail Example"
62  );
63 
64  $card = $f->card()->repositoryObject(
65  "Title",
66  $image
67  )->withObjectIcon(
68  $icon
69  )->withActions(
70  $dropdown
71  )->withCertificateIcon(
72  true
73  )->withSections(
74  array(
75  $content,
76  $content,
77  )
78  );
79 
80  //Define the deck
81  $deck = $f->deck(array($card,$card,$card,$card,$card,
82  $card,$card,$card,$card))->withNormalCardsSize();
83 
84  //Render
85  return $renderer->render($deck);
86 }
$renderer
global $DIC
Definition: shib_login.php:22
+ 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 34 of file user.php.

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

35 {
36  //Init Factory and Renderer
37  global $DIC;
38  $f = $DIC->ui()->factory();
39  $renderer = $DIC->ui()->renderer();
40 
41  $address = $f->listing()->descriptive(
42  array(
43  "Address" => "Hochschlustrasse 6",
44  "" => "3006 Bern",
45  "Contact" => "timon.amstutz@ilub.unibe.ch"
46  )
47  );
48 
49  //Define the some responsive image
50  $image = $f->image()->responsive(
51  "./assets/images/logo/HeaderIcon.svg",
52  "Thumbnail Example"
53  );
54 
55  //Define the card by using the image and add a new section with a button
56  $card = $f->card()->standard(
57  "Timon Amstutz",
58  $image
59  )->withSections(array($address,$f->button()->standard("Request Contact", "")));
60 
61  //Create a deck with large cards
62  $deck = $f->deck(array($card,$card,$card,$card,$card,$card,$card))->withLargeCardsSize();
63 
64  //Render
65  return $renderer->render($deck);
66 }
$renderer
global $DIC
Definition: shib_login.php:22

◆ 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 33 of file xl_card.php.

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

34 {
35  //Init Factory and Renderer
36  global $DIC;
37  $f = $DIC->ui()->factory();
38  $renderer = $DIC->ui()->renderer();
39 
40  //Generate some content
41  $content = $f->listing()->descriptive(
42  array(
43  "Entry 1" => "Some text",
44  "Entry 2" => "Some more text",
45  )
46  );
47 
48  //Define the some responsive image
49  $image = $f->image()->responsive(
50  "./assets/images/logo/HeaderIcon.svg",
51  "Thumbnail Example"
52  );
53 
54  //Define the card by using the content and the image
55  $card = $f->card()->standard(
56  "Title",
57  $image
58  )->withSections(array(
59  $content
60  ));
61 
62  //Define the extra large deck
63  $deck = $f->deck(array($card,$card,$card))->withExtraLargeCardsSize();
64 
65  //Render
66  return $renderer->render($deck);
67 }
$renderer
global $DIC
Definition: shib_login.php:22