ILIAS  release_7 Revision v7.30-3-g800a261c036
class.ilBookingService.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(ilDBInterface $db = null)
22 {
23 global $DIC;
24
25 $this->db = ($db == null)
26 ? $DIC->database()
27 : $db;
28 }
29
36 public function cloneSettings($source_obj_id, $target_obj_id)
37 {
38 $use_book_repo = new ilObjUseBookDBRepository($this->db);
39 $book_ref_ids = $use_book_repo->getUsedBookingPools($source_obj_id);
40 $use_book_repo->updateUsedBookingPools($target_obj_id, $book_ref_ids);
41 }
42}
An exception for terminatinating execution or to throw for unit testing.
Low level api for booking service.
__construct(ilDBInterface $db=null)
Constructor.
cloneSettings($source_obj_id, $target_obj_id)
Clone settings.
This repo stores infos on repository objects that are using booking managers as a service (resource m...
global $DIC
Definition: goto.php:24
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...