ILIAS  release_7 Revision v7.30-3-g800a261c036
All Data Structures Namespaces Files Functions Variables Modules Pages
ilBookingReservationDBRepositoryFactory Class Reference

Factory for reservation repo. More...

+ Collaboration diagram for ilBookingReservationDBRepositoryFactory:

Public Member Functions

 __construct ()
 Constructor. More...
 
 getRepo ()
 Get repo without any preloaded data. More...
 
 getRepoWithContextObjCache ($context_obj_ids)
 Get repo with reservation information preloaded for context obj ids. More...
 

Protected Attributes

 $db
 

Detailed Description

Factory for reservation repo.

Author
killi.nosp@m.ng@l.nosp@m.eifos.nosp@m..de

Definition at line 11 of file class.ilBookingReservationDBRepositoryFactory.php.

Constructor & Destructor Documentation

◆ __construct()

ilBookingReservationDBRepositoryFactory::__construct ( )

Constructor.

Definition at line 21 of file class.ilBookingReservationDBRepositoryFactory.php.

References $DIC.

22  {
23  global $DIC;
24 
25  $this->db = $DIC->database();
26  }
global $DIC
Definition: goto.php:24

Member Function Documentation

◆ getRepo()

ilBookingReservationDBRepositoryFactory::getRepo ( )

Get repo without any preloaded data.

Returns
ilBookingReservationDBRepository

Definition at line 33 of file class.ilBookingReservationDBRepositoryFactory.php.

◆ getRepoWithContextObjCache()

ilBookingReservationDBRepositoryFactory::getRepoWithContextObjCache (   $context_obj_ids)

Get repo with reservation information preloaded for context obj ids.

Returns
ilBookingReservationDBRepository

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

44  {
45  return new ilBookingReservationDBRepository($this->db, $context_obj_ids);
46  }

Field Documentation

◆ $db

ilBookingReservationDBRepositoryFactory::$db
protected

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