ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
trait.GlobalDICGUIServices.php
Go to the documentation of this file.
1 <?php
2 
3 declare(strict_types=1);
4 
21 namespace ILIAS\Repository;
22 
24 use ILIAS\HTTP;
29 
34 {
35  private \ILIAS\DI\Container $DIC;
36 
37  protected function initGUIServices(\ILIAS\DI\Container $DIC): void
38  {
39  $this->DIC = $DIC;
40  }
41 
42  public function ui(): UIServices
43  {
44  return $this->DIC->ui();
45  }
46 
47  public function object(): \ilObjectServiceInterface
48  {
49  return $this->DIC->object();
50  }
51 
52  public function ctrl(): \ilCtrl
53  {
54  return $this->DIC->ctrl();
55  }
56 
57  public function http(): HTTP\Services
58  {
59  return $this->DIC->http();
60  }
61 
62  public function html(): HTMLUtil
63  {
64  return new HTMLUtil();
65  }
66 
68  {
69  return $this->DIC->ui()->mainTemplate();
70  }
71 
72  public function upload(): FileUpload
73  {
74  return $this->DIC->upload();
75  }
76 
77  public function toolbar(): \ilToolbarGUI
78  {
79  return $this->DIC->toolbar();
80  }
81 
82  public function globalScreen(): GlobalScreen\Services
83  {
84  return $this->DIC->globalScreen();
85  }
86 
87  public function help(): \ilHelpGUI
88  {
89  return $this->DIC->help();
90  }
91 
92  public function tabs(): \ilTabsGUI
93  {
94  return $this->DIC->tabs();
95  }
96 
97  public function locator(): \ilLocatorGUI
98  {
99  return $this->DIC["ilLocator"];
100  }
101 
105  public function form(
106  $class_path,
107  string $cmd
108  ): FormAdapterGUI {
109  return new FormAdapterGUI(
110  $class_path,
111  $cmd
112  );
113  }
114 }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
PhpIncompatibleReturnTypeInspection
initGUIServices(\ILIAS\DI\Container $DIC)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Class ChatMainBarProvider .
Help GUI class.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Customizing of pimple-DIC for ILIAS.
Definition: Container.php:31
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
global $DIC
Definition: feed.php:28
Provides fluid interface to RBAC services.
Definition: UIServices.php:23
Class HTTPServicesTest.
Class FileUpload.
Definition: FileUpload.php:34
form( $class_path, string $cmd)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...