ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ILIAS\BookingManager\InternalDomainService Class Reference

Author: Alexander Killing killi.nosp@m.ng@l.nosp@m.eifos.nosp@m..de More...

+ Collaboration diagram for ILIAS\BookingManager\InternalDomainService:

Public Member Functions

 __construct (Container $DIC, InternalRepoService $repo_service, InternalDataService $data_service)
 
 log ()
 
 preferences (\ilObjBookingPool $pool)
 
 process ()
 
 objects (int $pool_id)
 
 schedules (int $pool_id)
 
 reservations ()
 
 participants ()
 
 objectSelection (int $pool_id)
 
 userEvent ()
 
 bookingSettings ()
 
 access ()
 

Protected Attributes

ilLogger $book_log = null
 
InternalRepoService $repo_service
 
InternalDataService $data_service
 

Static Protected Attributes

static array $instances = []
 

Detailed Description

Author: Alexander Killing killi.nosp@m.ng@l.nosp@m.eifos.nosp@m..de

Definition at line 34 of file class.InternalDomainService.php.

Constructor & Destructor Documentation

◆ __construct()

ILIAS\BookingManager\InternalDomainService::__construct ( Container  $DIC,
InternalRepoService  $repo_service,
InternalDataService  $data_service 
)

Definition at line 43 of file class.InternalDomainService.php.

47 {
48 $this->repo_service = $repo_service;
49 $this->data_service = $data_service;
50 $this->initDomainServices($DIC);
51 }
initDomainServices(\ILIAS\DI\Container $DIC)

References ILIAS\BookingManager\InternalDomainService\$data_service, ILIAS\BookingManager\InternalDomainService\$repo_service, and ILIAS\Repository\initDomainServices().

+ Here is the call graph for this function:

Member Function Documentation

◆ access()

ILIAS\BookingManager\InternalDomainService::access ( )

Definition at line 140 of file class.InternalDomainService.php.

140 : Access\AccessManager
141 {
142 return new Access\AccessManager(
143 $this,
144 $this->DIC->access()
145 );
146 }

◆ bookingSettings()

ILIAS\BookingManager\InternalDomainService::bookingSettings ( )

Definition at line 131 of file class.InternalDomainService.php.

131 : SettingsManager
132 {
133 return self::$instances["settings"] ??= new SettingsManager(
134 $this->data_service,
135 $this->repo_service,
136 $this
137 );
138 }

◆ log()

ILIAS\BookingManager\InternalDomainService::log ( )

Definition at line 53 of file class.InternalDomainService.php.

53 : \ilLogger
54 {
55 return self::$instances["book_log"] ??= $this->logger()->book();
56 }
Component logger with individual log levels by component id.

References ILIAS\Repository\logger().

Referenced by ILIAS\BookingManager\BookingProcess\ProcessUtilGUI\__construct().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ objects()

ILIAS\BookingManager\InternalDomainService::objects ( int  $pool_id)

Definition at line 76 of file class.InternalDomainService.php.

76 : ObjectsManager
77 {
78 return self::$instances["objects"][$pool_id] ??= new ObjectsManager(
79 $this->data_service,
80 $this->repo_service,
81 $this,
84 $pool_id
85 );
86 }

Referenced by ILIAS\BookingManager\BookingProcess\ObjectSelectionManager\__construct(), ilBookBulkCreationGUI\__construct(), and ILIAS\BookingManager\BookingProcess\ProcessUtilGUI\__construct().

+ Here is the caller graph for this function:

◆ objectSelection()

ILIAS\BookingManager\InternalDomainService::objectSelection ( int  $pool_id)

Definition at line 116 of file class.InternalDomainService.php.

116 : BookingProcess\ObjectSelectionManager
117 {
118 return self::$instances["object_sel"][$pool_id] ??= new BookingProcess\ObjectSelectionManager(
119 $this->data_service,
120 $this->repo_service,
121 $this,
122 $pool_id
123 );
124 }

◆ participants()

ILIAS\BookingManager\InternalDomainService::participants ( )

Definition at line 107 of file class.InternalDomainService.php.

107 : Participants\ParticipantsManager
108 {
109 return self::$instances["participants"] ??= new Participants\ParticipantsManager(
110 $this->data_service,
111 $this->repo_service,
112 $this
113 );
114 }

◆ preferences()

ILIAS\BookingManager\InternalDomainService::preferences ( \ilObjBookingPool  $pool)

Definition at line 58 of file class.InternalDomainService.php.

61 return self::$instances["preferences"][$pool->getId()] ??= new \ilBookingPreferencesManager(
62 $pool,
63 $this->repo_service->preferenceBasedBooking()
64 );
65 }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...

◆ process()

ILIAS\BookingManager\InternalDomainService::process ( )

Definition at line 67 of file class.InternalDomainService.php.

67 : BookingProcessManager
68 {
69 return self::$instances["process"] ??= new BookingProcessManager(
70 $this->data_service,
71 $this->repo_service,
72 $this
73 );
74 }

◆ reservations()

ILIAS\BookingManager\InternalDomainService::reservations ( )

Definition at line 98 of file class.InternalDomainService.php.

98 : Reservations\ReservationManager
99 {
100 return self::$instances["reservations"] ??= new Reservations\ReservationManager(
101 $this->data_service,
102 $this->repo_service,
103 $this
104 );
105 }

◆ schedules()

ILIAS\BookingManager\InternalDomainService::schedules ( int  $pool_id)

Definition at line 88 of file class.InternalDomainService.php.

88 : ScheduleManager
89 {
90 return self::$instances["schedules"][$pool_id] ??= new ScheduleManager(
91 $this->data_service,
92 $this->repo_service,
93 $this,
94 $pool_id
95 );
96 }

◆ userEvent()

ILIAS\BookingManager\InternalDomainService::userEvent ( )

Definition at line 126 of file class.InternalDomainService.php.

126 : UserEvent
127 {
128 return self::$instances["user_event"] ??= new UserEvent($this);
129 }

Field Documentation

◆ $book_log

ilLogger ILIAS\BookingManager\InternalDomainService::$book_log = null
protected

Definition at line 39 of file class.InternalDomainService.php.

◆ $data_service

InternalDataService ILIAS\BookingManager\InternalDomainService::$data_service
protected

◆ $instances

array ILIAS\BookingManager\InternalDomainService::$instances = []
staticprotected

Definition at line 38 of file class.InternalDomainService.php.

◆ $repo_service

InternalRepoService ILIAS\BookingManager\InternalDomainService::$repo_service
protected

The documentation for this class was generated from the following file: