ILIAS  release_7 Revision v7.30-3-g800a261c036
class.getObjectSettingsCommandHandler.php
Go to the documentation of this file.
1<?php
2
4
5/* Copyright (c) 1998-2019 ILIAS open source, Extended GPL, see docs/LICENSE */
6
14{
18 protected $cmd;
19
23 protected $use_book_repo;
24
28 public function __construct(
31 ) {
32 $this->cmd = $cmd;
33 $this->use_book_repo = $use_book_repo;
34 }
35
36 public function handle()
37 {
38 $obj_id = $this->cmd->getObjectId();
40
41 $used_book_ids = $repo->getUsedBookingPools($obj_id);
42
43 return new getObjectSettingsResponse(new \ilObjBookingServiceSettings($obj_id, $used_book_ids));
44 }
45}
An exception for terminatinating execution or to throw for unit testing.
__construct(getObjectSettingsCommand $cmd, \ilObjUseBookDBRepository $use_book_repo)
Constructor.
Value object for booking service settings of a repository object.
This repo stores infos on repository objects that are using booking managers as a service (resource m...