ILIAS  release_7 Revision v7.30-3-g800a261c036
class.ilBookingReservationDBRepositoryFactory.php
Go to the documentation of this file.
1<?php
2
3/* Copyright (c) 1998-2019 ILIAS open source, Extended GPL, see docs/LICENSE */
4
12{
16 protected $db;
17
21 public function __construct()
22 {
23 global $DIC;
24
25 $this->db = $DIC->database();
26 }
27
34 {
35 return new ilBookingReservationDBRepository($this->db);
36 }
37
44 {
45 return new ilBookingReservationDBRepository($this->db, $context_obj_ids);
46 }
47}
An exception for terminatinating execution or to throw for unit testing.
getRepoWithContextObjCache($context_obj_ids)
Get repo with reservation information preloaded for context obj ids.
global $DIC
Definition: goto.php:24