ILIAS  trunk Revision v11.0_alpha-1744-gb0451eebef4
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
class.GUIService.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
21 namespace ILIAS\Container\Content;
22 
28 
33 {
34  protected InternalDataService $data_service;
36  protected InternalGUIService $gui_service;
37 
38  public function __construct(
39  InternalDataService $data_service,
40  InternalDomainService $domain_service,
41  InternalGUIService $gui_service
42  ) {
43  $this->data_service = $data_service;
44  $this->domain_service = $domain_service;
45  $this->gui_service = $gui_service;
46  }
47 
48  public function itemRenderer(
49  \ilContainerGUI $container_gui,
50  string $view_mode // TILE/LIST from ilContainerContentGUI
51  ): ItemRenderer {
52  return new ItemRenderer(
53  $this->domain_service,
54  $this->gui_service,
55  $view_mode,
56  $container_gui
57  );
58  }
59 
60  public function objectiveRenderer(
61  \ilContainerGUI $container_gui,
62  string $view_mode, // TILE/LIST from ilContainerContentGUI
63  \ilContainerRenderer $container_render
64  ): ObjectiveRenderer {
65  return new ObjectiveRenderer(
66  $this->domain_service,
67  $this->gui_service,
68  $view_mode,
69  $container_gui,
70  $container_render
71  );
72  }
73 }
__construct(InternalDataService $data_service, InternalDomainService $domain_service, InternalGUIService $gui_service)
objectiveRenderer(\ilContainerGUI $container_gui, string $view_mode, \ilContainerRenderer $container_render)
itemRenderer(\ilContainerGUI $container_gui, string $view_mode)
Class ilContainerGUI This is a base GUI class for all container objects in ILIAS: root folder...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...