ILIAS  release_9 Revision v9.13-25-g2c18ec4c24f
class.ReservationManager.php
Go to the documentation of this file.
1 <?php declare(strict_types=1);
2 
17 
21 
26 {
30 
31  public function __construct(
32  InternalDataService $data,
33  InternalRepoService $repo,
34  InternalDomainService $domain
35  ) {
36  $this->data = $data;
37  $this->repo = $repo;
38  $this->domain = $domain;
39  }
40 
41  public function getAvailableNr(
42  int $object_id,
43  int $from,
44  int $to
45  ) : int {
46  $counter = \ilBookingReservation::getAvailableObject(array($object_id), $from, $to, false, true);
47  return (int) $counter[$object_id];
48  }
49 }
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)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...