ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
repository.php File Reference

Go to the source code of this file.

Functions

 repository ()
 

Function Documentation

◆ repository()

repository ( )

Definition at line 5 of file repository.php.

References $DIC, and $f.

Referenced by ilMailTemplateService\__construct(), ilMMItemTranslationGUI\__construct(), ilMMSubitemFormGUI\__construct(), ilMMTopItemFormGUI\__construct(), ilMMAbstractItemGUI\__construct(), ilMMSubItemGUI\add(), ilMMTopItemGUI\add(), ilUnitConfigurationGUI\addCategory(), ilUnitConfigurationGUI\addUnit(), ilMMSubItemGUI\applyFilter(), ilUnitConfigurationGUI\confirmDeleteCategories(), ilUnitConfigurationGUI\confirmDeleteUnits(), ilMMSubItemGUI\create(), ilMMTopItemGUI\create(), ilMailTemplateService\createNewTemplate(), ilMMSubItemGUI\delete(), ilMMTopItemGUI\delete(), ilUnitConfigurationGUI\deleteCategories(), ilMailTemplateService\deleteTemplatesByIds(), ilMMItemTranslationGUI\deleteTranslations(), ilUnitConfigurationGUI\deleteUnits(), ilMMSubItemGUI\executeCommand(), ilMMTopItemGUI\executeCommand(), ilMMTopItemGUI\flush(), ilUnitConfigurationGUI\getCategoryById(), ilMMAbstractItemGUI\getMMItemFromRequest(), ilGlobalUnitConfigurationGUI\getUniqueId(), ilLocalUnitConfigurationGUI\getUniqueId(), ilLocalUnitConfigurationGUI\importGlobalCategories(), ilMMTopItemGUI\index(), ilMMSubItemGUI\index(), ilMMSubitemFormGUI\initForm(), ilMMTopItemFormGUI\initForm(), ilMMItemTranslationGUI\initToolbar(), ilLocalUnitConfigurationGUI\isCRUDContext(), ilMailTemplateService\listAllTemplatesAsArray(), ilMailTemplateService\loadTemplateForId(), ilMailTemplateService\loadTemplatesForContextId(), ilMailTemplateService\modifyExistingTemplate(), ilMMSubItemGUI\resetFilter(), ilMMTopItemFormGUI\save(), ilMMSubitemFormGUI\save(), ilUnitConfigurationGUI\saveCategory(), ilMMItemTranslationGUI\saveLanguages(), ilUnitConfigurationGUI\saveOrder(), ilMMSubItemGUI\saveTable(), ilMMTopItemGUI\saveTable(), ilUnitConfigurationGUI\saveUnit(), ilMailTemplateService\setAsContextDefault(), ilBuddyList\setRepository(), ilUnitConfigurationGUI\showUnitCreationForm(), ilUnitConfigurationGUI\showUnitModificationForm(), and ilMailTemplateService\unsetAsContextDefault().

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