ILIAS
trunk Revision v11.0_alpha-1689-g66c127b4ae8
◀ ilDoc Overview
Main Page
Related Pages
Modules
+
Namespaces
Namespace List
+
Namespace Members
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Functions
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
x
+
Variables
$
c
e
g
h
j
l
m
p
s
t
u
v
+
Enumerations
a
c
e
f
i
j
l
m
n
o
p
r
s
t
u
v
z
+
Enumerator
a
c
d
e
f
g
i
l
m
n
o
p
q
s
t
u
v
y
+
Data Structures
Data Structures
Data Structure Index
Class Hierarchy
+
Data Fields
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Ö
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Variables
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Ö
Enumerations
Enumerator
+
Files
File List
+
Globals
+
All
$
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
z
+
Functions
a
b
c
d
e
f
g
h
i
m
n
p
r
s
t
u
v
+
Variables
$
a
c
e
g
h
i
m
n
o
p
r
s
t
u
v
z
Enumerations
Enumerator
Examples
•
All
Data Structures
Namespaces
Files
Functions
Variables
Enumerations
Enumerator
Modules
Pages
class.ReservationManager.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
namespace
ILIAS\BookingManager\Reservations
;
22
23
use
ILIAS\BookingManager\InternalDataService
;
24
use
ILIAS\BookingManager\InternalRepoService
;
25
use
ILIAS\BookingManager\InternalDomainService
;
26
30
class
ReservationManager
31
{
32
protected
InternalDataService
$data
;
33
protected
InternalRepoService
$repo
;
34
protected
InternalDomainService
$domain
;
35
36
public
function
__construct
(
37
InternalDataService
$data,
38
InternalRepoService
$repo,
39
InternalDomainService
$domain
40
) {
41
$this->data =
$data
;
42
$this->repo =
$repo
;
43
$this->domain =
$domain
;
44
}
45
46
public
function
getAvailableNr
(
47
int
$object_id,
48
int
$from,
49
int
$to
50
):
int
{
51
$counter =
\ilBookingReservation::getAvailableObject
(array($object_id), $from, $to,
false
,
true
);
52
return
(
int
) $counter[$object_id];
53
}
54
}
ILIAS\BookingManager\Reservations\ReservationManager
Definition:
class.ReservationManager.php:30
ilBookingReservation\getAvailableObject
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.
Definition:
class.ilBookingReservation.php:248
ILIAS\BookingManager\Reservations\ReservationManager\__construct
__construct(InternalDataService $data, InternalRepoService $repo, InternalDomainService $domain)
Definition:
class.ReservationManager.php:36
InternalRepoService
ILIAS\BookingManager\Reservations\ReservationManager\$data
InternalDataService $data
Definition:
class.ReservationManager.php:32
ILIAS\BookingManager\InternalDomainService
Author: Alexander Killing killing@leifos.de
Definition:
class.InternalDomainService.php:34
ILIAS\BookingManager\Reservations\ReservationManager\$domain
InternalDomainService $domain
Definition:
class.ReservationManager.php:34
ILIAS\BookingManager\Reservations
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition:
class.ReservationDBRepository.php:19
ILIAS\BookingManager\InternalRepoService
Definition:
class.InternalRepoService.php:32
InternalDomainService
ILIAS\BookingManager\InternalDataService
Repository internal data service.
Definition:
class.InternalDataService.php:32
ILIAS\BookingManager\Reservations\ReservationManager\$repo
InternalRepoService $repo
Definition:
class.ReservationManager.php:33
InternalDataService
ILIAS\Repository\int
int(string $key)
Definition:
trait.BaseGUIRequest.php:61
ILIAS\BookingManager\Reservations\ReservationManager\getAvailableNr
getAvailableNr(int $object_id, int $from, int $to)
Definition:
class.ReservationManager.php:46
components
ILIAS
BookingManager
Reservations
class.ReservationManager.php
Generated on Wed Apr 2 2025 23:02:23 for ILIAS by
1.8.13 (using
Doxyfile
)