ILIAS  release_10 Revision v10.1-43-ga1241a92c2f
class.ReservationManager.php
Go to the documentation of this file.
1 <?php
2 
3 declare(strict_types=1);
4 
19 
23 
28 {
32 
33  public function __construct(
34  InternalDataService $data,
35  InternalRepoService $repo,
36  InternalDomainService $domain
37  ) {
38  $this->data = $data;
39  $this->repo = $repo;
40  $this->domain = $domain;
41  }
42 
43  public function getAvailableNr(
44  int $object_id,
45  int $from,
46  int $to
47  ): int {
48  $counter = \ilBookingReservation::getAvailableObject(array($object_id), $from, $to, false, true);
49  return (int) $counter[$object_id];
50  }
51 }
static getAvailableObject(array $a_ids, int $a_from, int $a_to, bool $a_return_single=true, bool $a_return_counter=false)
Check if any of given objects are bookable.
__construct(InternalDataService $data, InternalRepoService $repo, InternalDomainService $domain)
Author: Alexander Killing killing@leifos.de
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...