ILIAS
release_8 Revision v8.19
◀ ilDoc Overview
Main Page
Related Pages
Modules
+
Namespaces
Namespace List
+
Namespace Members
+
All
$
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
r
s
t
u
v
w
x
+
Functions
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
+
Variables
$
a
b
c
d
e
f
g
h
j
l
m
p
s
t
u
+
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
Ö
+
Files
File List
+
Globals
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
z
+
Functions
_
a
b
c
d
e
g
h
i
m
n
p
r
s
t
u
v
x
+
Variables
$
a
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
z
Examples
•
All
Data Structures
Namespaces
Files
Functions
Variables
Modules
Pages
class.ilBookingPreferences.php
Go to the documentation of this file.
1
<?php
2
25
class
ilBookingPreferences
26
{
31
protected
array
$preferences
;
32
37
public
function
__construct
(array $preferences)
38
{
39
$this->preferences = [];
40
foreach
($preferences as $user_id => $obj_ids) {
41
if
($user_id > 0 && is_array($obj_ids)) {
42
foreach
($obj_ids as $obj_id) {
43
if
(!isset($this->preferences[$user_id]) || !in_array($obj_id, $this->preferences[$user_id])) {
44
$this->preferences[$user_id][] = (
int
) $obj_id;
45
}
46
}
47
}
48
}
49
}
50
55
public
function
getPreferences
(): array
56
{
57
return
$this->preferences
;
58
}
59
}
ilBookingPreferences\$preferences
array $preferences
Definition:
class.ilBookingPreferences.php:31
ilBookingPreferences
ilBookingPreferences\getPreferences
getPreferences()
Get user preferences.
Definition:
class.ilBookingPreferences.php:55
ilBookingPreferences\__construct
__construct(array $preferences)
Constructor.
Definition:
class.ilBookingPreferences.php:37
ILIAS\Repository\int
int(string $key)
Definition:
trait.BaseGUIRequest.php:61
Modules
BookingManager
Preferences
class.ilBookingPreferences.php
Generated on Tue Apr 1 2025 22:01:21 for ILIAS by
1.8.13 (using
Doxyfile
)