ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
ilBookingService Class Reference

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...

+ Collaboration diagram for ilBookingService:

Public Member Functions

 __construct (ilDBInterface $db=null)
 
 cloneSettings (int $source_obj_id, int $target_obj_id)
 

Protected Attributes

ilDBInterface $db
 

Detailed Description

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.

ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.

If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning Low level api for booking service

Todo:
: integration into Service structure
Author
Alexander Killing killi.nosp@m.ng@l.nosp@m.eifos.nosp@m..de

Definition at line 24 of file class.ilBookingService.php.

Constructor & Destructor Documentation

◆ __construct()

ilBookingService::__construct ( ilDBInterface  $db = null)

Definition at line 28 of file class.ilBookingService.php.

References $DIC.

29  {
30  global $DIC;
31 
32  $this->db = $db ?? $DIC->database();
33  }
global $DIC
Definition: feed.php:28

Member Function Documentation

◆ cloneSettings()

ilBookingService::cloneSettings ( int  $source_obj_id,
int  $target_obj_id 
)

Definition at line 35 of file class.ilBookingService.php.

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  }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...

Field Documentation

◆ $db

ilDBInterface ilBookingService::$db
protected

Definition at line 26 of file class.ilBookingService.php.


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