ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.getObjectSettingsCommandHandler.php
Go to the documentation of this file.
1<?php
2
19namespace ILIAS\BookingManager;
20
25{
27 protected \ilObjUseBookDBRepository $use_book_repo;
28
29 public function __construct(
32 ) {
33 $this->cmd = $cmd;
34 $this->use_book_repo = $use_book_repo;
35 }
36
38 {
39 $obj_id = $this->cmd->getObjectId();
41
42 $used_book_ids = $repo->getUsedBookingPools($obj_id, false);
43
44 return new getObjectSettingsResponse(new \ilObjBookingServiceSettings($obj_id, $used_book_ids));
45 }
46}
__construct(getObjectSettingsCommand $cmd, \ilObjUseBookDBRepository $use_book_repo)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
getUsedBookingPools(int $obj_id, bool $include_deleted=true)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...