ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.ilBookingService.php
Go to the documentation of this file.
1<?php
2
25{
26 protected ilDBInterface $db;
27
28 public function __construct(?ilDBInterface $db = null)
29 {
30 global $DIC;
31
32 $this->db = $db ?? $DIC->database();
33 }
34
35 public function cloneSettings(
36 int $source_obj_id,
37 int $target_obj_id
38 ): void {
39 $use_book_repo = new ilObjUseBookDBRepository($this->db);
40 $book_ref_ids = $use_book_repo->getUsedBookingPools($source_obj_id, false);
41 $use_book_repo->updateUsedBookingPools($target_obj_id, $book_ref_ids);
42 }
43}
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
cloneSettings(int $source_obj_id, int $target_obj_id)
__construct(?ilDBInterface $db=null)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
getUsedBookingPools(int $obj_id, bool $include_deleted=true)
Interface ilDBInterface.
global $DIC
Definition: shib_login.php:26