ILIAS
release_8 Revision v8.23
◀ ilDoc Overview
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 Sun Aug 31 2025 22:01:18 for ILIAS by
1.8.13 (using
Doxyfile
)