ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
ilBookingService Class Reference

Low level api for booking service. More...

+ Collaboration diagram for ilBookingService:

Public Member Functions

 __construct (ilDBInterface $db=null)
 Constructor. More...
 
 cloneSettings ($source_obj_id, $target_obj_id)
 Clone settings. More...
 

Protected Attributes

 $db
 

Detailed Description

Low level api for booking service.

Author
@leifos.de

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

Constructor & Destructor Documentation

◆ __construct()

ilBookingService::__construct ( ilDBInterface  $db = null)

Constructor.

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

22 {
23 global $DIC;
24
25 $this->db = ($db == null)
26 ? $DIC->database()
27 : $db;
28 }
$DIC
Definition: xapitoken.php:46

References $db, and $DIC.

Member Function Documentation

◆ cloneSettings()

ilBookingService::cloneSettings (   $source_obj_id,
  $target_obj_id 
)

Clone settings.

Parameters
$source_obj_id
$target_obj_id

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

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 }
This repo stores infos on repository objects that are using booking managers as a service (resource m...

Field Documentation

◆ $db

ilBookingService::$db
protected

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

Referenced by __construct().


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