ILIAS  release_9 Revision v9.13-25-g2c18ec4c24f
class.GUIService.php
Go to the documentation of this file.
1 <?php declare(strict_types = 1);
2 
20 
24 
29 {
33 
34  public function __construct(
35  InternalDataService $data_service,
36  InternalDomainService $domain_service,
37  InternalGUIService $gui_service
38  ) {
39  $this->data_service = $data_service;
40  $this->domain_service = $domain_service;
41  $this->gui_service = $gui_service;
42  }
43 
44  public function ProcessUtilGUI(\ilObjBookingPool $pool, object $parent_gui) : ProcessUtilGUI
45  {
46  return new ProcessUtilGUI(
47  $this->domain_service,
48  $this->gui_service,
49  $pool,
50  $parent_gui
51  );
52  }
53 
55  \ilObjBookingPool $pool,
56  int $book_obj_id,
57  int $context_obj_id,
58  string $seed
60  {
61  return new \ilBookingProcessWithScheduleGUI(
62  $pool,
63  $book_obj_id,
64  $seed,
65  $context_obj_id
66  );
67  }
68 
70  \ilObjBookingPool $pool,
71  int $book_obj_id,
72  int $context_obj_id
74  {
75  return new \ilBookingProcessWithoutScheduleGUI(
76  $pool,
77  $book_obj_id,
78  $context_obj_id
79  );
80  }
81 
82  public function getProcessClassForPool(\ilObjBookingPool $pool) : string
83  {
85  }
86 
87  public function getProcessClass($with_schedule = true) : string
88  {
89  if ($with_schedule) {
90  return \ilBookingProcessWithScheduleGUI::class;
91  }
92  return \ilBookingProcessWithoutScheduleGUI::class;
93  }
94 
95 }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Common functions for process GUI classes.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
ilBookingProcessWithoutScheduleGUI(\ilObjBookingPool $pool, int $book_obj_id, int $context_obj_id)
ilBookingProcessWithScheduleGUI(\ilObjBookingPool $pool, int $book_obj_id, int $context_obj_id, string $seed)
ProcessUtilGUI(\ilObjBookingPool $pool, object $parent_gui)
__construct(InternalDataService $data_service, InternalDomainService $domain_service, InternalGUIService $gui_service)