ILIAS
trunk Revision v11.0_alpha-3011-gc6b235a2e85
◀ 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
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition:
class.ilBookingPreferences.php:26
ilBookingPreferences\$preferences
array $preferences
Definition:
class.ilBookingPreferences.php:31
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
$user_id
int $user_id
Definition:
trait.ilExAssignmentTypeGUIBase.php:38
components
ILIAS
BookingManager
Preferences
class.ilBookingPreferences.php
Generated on Sat Oct 18 2025 23:02:41 for ILIAS by
1.9.4 (using
Doxyfile
)