ILIAS  release_7 Revision v7.30-3-g800a261c036
All Data Structures Namespaces Files Functions Variables Modules Pages
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
.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.

References $db, and $DIC.

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

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: