ILIAS  trunk Revision v12.0_alpha-1338-g8f7e531aa3c
class.InternalGUIService.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
21namespace ILIAS\Help\GuidedTour;
22
30
32{
33 use GlobalDICGUIServices;
34
37
38 public function __construct(
42 ) {
43 $this->data_service = $data_service;
44 $this->domain_service = $domain_service;
45 $this->initGUIServices($DIC);
46 }
47
49 {
50 return new StandardGUIRequest(
51 $this->http(),
52 $this->domain_service->refinery()
53 );
54 }
55
56 public function guidedTourGUI(): ilGuidedTourGUI
57 {
58 return new ilGuidedTourGUI();
59 }
60
61 public function objectGUI(int $obj_id): \ilObjGuidedTourGUI
62 {
63 return new \ilObjGuidedTourGUI([], $obj_id, false);
64 }
65
66 public function adminGUI(bool $edit = false): ilGuidedTourAdminGUI
67 {
68 return new ilGuidedTourAdminGUI(
69 $this->data_service,
70 $this->domain_service,
71 $this,
72 $edit
73 );
74 }
75
76 public function stepTableBuilder(
77 int $tour_id,
78 object $parent_gui,
79 string $parent_cmd
82 $this->domain_service,
83 $this,
84 $tour_id,
85 $parent_gui,
86 $parent_cmd
87 );
88 }
89
90 public function stepTableGUI(
91 int $tour_id,
92 object $parent_gui,
93 string $parent_cmd
95 return $this->stepTableBuilder(
96 $tour_id,
97 $parent_gui,
98 $parent_cmd
99 )->getTable();
100 }
101}
Customizing of pimple-DIC for ILIAS.
Definition: Container.php:36
stepTableGUI(int $tour_id, object $parent_gui, string $parent_cmd)
stepTableBuilder(int $tour_id, object $parent_gui, string $parent_cmd)
__construct(Container $DIC, InternalDataService $data_service, InternalDomainService $domain_service)
@ilCtrl_Calls ilGuidedTourAdminGUI: ilGuidedTourPageGUI, ilExportGUI, ilRepoStandardUploadHandlerGUI
@ilCtrl_Calls ilGuidedTourGUI: ilGuidedTourPageGUI
return['delivery_method'=> 'php',]
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
static http()
Fetches the global http state from ILIAS.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
initGUIServices(\ILIAS\DI\Container $DIC)
global $DIC
Definition: shib_login.php:26