ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
ILIAS\BookingManager\saveObjectSettingsCommandHandler Class Reference
+ Collaboration diagram for ILIAS\BookingManager\saveObjectSettingsCommandHandler:

Public Member Functions

 __construct (saveObjectSettingsCommand $cmd, \ilObjUseBookDBRepository $use_book_repo)
 
 handle ()
 

Protected Attributes

saveObjectSettingsCommand $cmd
 
ilObjUseBookDBRepository $use_book_repo
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

ILIAS\BookingManager\saveObjectSettingsCommandHandler::__construct ( saveObjectSettingsCommand  $cmd,
\ilObjUseBookDBRepository  $use_book_repo 
)

Member Function Documentation

◆ handle()

ILIAS\BookingManager\saveObjectSettingsCommandHandler::handle ( )

Definition at line 37 of file class.saveObjectSettingsCommandHandler.php.

References ILIAS\LTI\ToolProvider\$settings, ILIAS\BookingManager\saveObjectSettingsCommandHandler\$use_book_repo, and ilObjUseBookDBRepository\updateUsedBookingPools().

37  : void
38  {
39  $settings = $this->cmd->getSettings();
40  $repo = $this->use_book_repo;
41 
42  $repo->updateUsedBookingPools($settings->getObjectId(), $settings->getUsedBookingObjectIds());
43  }
array $settings
Setting values (LTI parameters, custom parameters and local parameters).
Definition: System.php:200
updateUsedBookingPools(int $obj_id, array $book_obj_ids)
+ Here is the call graph for this function:

Field Documentation

◆ $cmd

saveObjectSettingsCommand ILIAS\BookingManager\saveObjectSettingsCommandHandler::$cmd
protected

◆ $use_book_repo

ilObjUseBookDBRepository ILIAS\BookingManager\saveObjectSettingsCommandHandler::$use_book_repo
protected

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