ILIAS
trunk Revision v11.0_alpha-1723-g8e69f309bab
◀ 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.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
}
$user_id
int $user_id
Definition:
trait.ilExAssignmentTypeGUIBase.php:38
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
components
ILIAS
BookingManager
Preferences
class.ilBookingPreferences.php
Generated on Sun Apr 6 2025 23:02:44 for ILIAS by
1.8.13 (using
Doxyfile
)