ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ILIAS\BookingManager\InternalRepoService Class Reference
+ Collaboration diagram for ILIAS\BookingManager\InternalRepoService:

Public Member Functions

 __construct (protected InternalDataService $data, protected \ilDBInterface $db)
 
 preferences ()
 
 preferenceBasedBooking ()
 
 reservationTable ()
 
 objects ()
 
 schedules ()
 
 reservation ()
 
 reservationWithContextObjCache (array $context_obj_ids)
 Get repo with reservation information preloaded for context obj ids. More...
 
 objectSelection ()
 
 participants ()
 
 settings ()
 

Static Protected Attributes

static array $instances = []
 

Detailed Description

Definition at line 32 of file class.InternalRepoService.php.

Constructor & Destructor Documentation

◆ __construct()

ILIAS\BookingManager\InternalRepoService::__construct ( protected InternalDataService  $data,
protected \ilDBInterface  $db 
)

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

41 {
42 }

Member Function Documentation

◆ objects()

ILIAS\BookingManager\InternalRepoService::objects ( )

Definition at line 64 of file class.InternalRepoService.php.

64 : ObjectsDBRepository
65 {
66 return self::$instances["objects"] ??= new ObjectsDBRepository(
67 $this->irss(),
68 $this->db
69 );
70 }

Referenced by ILIAS\BookingManager\Objects\ObjectsManager\__construct().

+ Here is the caller graph for this function:

◆ objectSelection()

ILIAS\BookingManager\InternalRepoService::objectSelection ( )

Definition at line 99 of file class.InternalRepoService.php.

99 : SelectedObjectsDBRepository
100 {
101 return self::$instances["objectSelection"] ??= new SelectedObjectsDBRepository(
102 $this->db
103 );
104 }

◆ participants()

ILIAS\BookingManager\InternalRepoService::participants ( )

Definition at line 106 of file class.InternalRepoService.php.

106 : ParticipantsRepository
107 {
108 return self::$instances["participants"] ??= new ParticipantsRepository(
109 $this->db
110 );
111 }

◆ preferenceBasedBooking()

ILIAS\BookingManager\InternalRepoService::preferenceBasedBooking ( )

Definition at line 52 of file class.InternalRepoService.php.

53 {
54 return self::$instances["preferenceBasedBooking"] ??= new \ilBookingPrefBasedBookGatewayRepository(
55 $this->db
56 );
57 }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...

◆ preferences()

ILIAS\BookingManager\InternalRepoService::preferences ( )

Definition at line 44 of file class.InternalRepoService.php.

45 {
46 return self::$instances["preferences"] ??= new \ilBookingPreferencesDBRepository(
47 $this->data,
48 $this->db
49 );
50 }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...

◆ reservation()

ILIAS\BookingManager\InternalRepoService::reservation ( )

Definition at line 79 of file class.InternalRepoService.php.

79 : ReservationDBRepository
80 {
81 return self::$instances["reservation"] ??= new ReservationDBRepository(
82 $this->db
83 );
84 }

◆ reservationTable()

ILIAS\BookingManager\InternalRepoService::reservationTable ( )

Definition at line 59 of file class.InternalRepoService.php.

59 : ReservationTableSessionRepository
60 {
61 return self::$instances["reservationTable"] ??= new ReservationTableSessionRepository();
62 }

◆ reservationWithContextObjCache()

ILIAS\BookingManager\InternalRepoService::reservationWithContextObjCache ( array  $context_obj_ids)

Get repo with reservation information preloaded for context obj ids.

Parameters
int[]$context_obj_ids

Definition at line 90 of file class.InternalRepoService.php.

92 : ReservationDBRepository {
93 return new ReservationDBRepository(
94 $this->db,
95 $context_obj_ids
96 );
97 }

◆ schedules()

ILIAS\BookingManager\InternalRepoService::schedules ( )

Definition at line 72 of file class.InternalRepoService.php.

72 : SchedulesDBRepository
73 {
74 return self::$instances["schedules"] ??= new SchedulesDBRepository(
75 $this->db
76 );
77 }

Referenced by ILIAS\BookingManager\Schedule\ScheduleManager\__construct().

+ Here is the caller graph for this function:

◆ settings()

ILIAS\BookingManager\InternalRepoService::settings ( )

Definition at line 113 of file class.InternalRepoService.php.

113 : SettingsDBRepository
114 {
115 return self::$instances["settings"] ??= new SettingsDBRepository(
116 $this->db,
117 $this->data
118 );
119 }

Field Documentation

◆ $instances

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

Definition at line 36 of file class.InternalRepoService.php.


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