19declare(strict_types=1);
32 protected UserPreferences $user_preferences,
33 protected UserProfile $user_profile
39 foreach ($this->user_profile->getDataForMultiple($ids) as
$data) {
40 $system_info =
$data->getSystemInformation();
42 $this->preloaded_profile_data[
$id][
'active'] = $system_info[
'active'];
43 $this->preloaded_profile_data[
$id][
'time_limit_unlimited'] = $system_info[
'time_limit_unlimited'];
44 $this->preloaded_profile_data[
$id][
'time_limit_from'] = $system_info[
'time_limit_from'];
45 $this->preloaded_profile_data[
$id][
'time_limit_until'] = $system_info[
'time_limit_until'];
55 $public_profile = $this->user_preferences->getSettingValueFor(
$id,
'public_profile') ??
'';
56 if ($public_profile !==
'y' && $public_profile !==
'g') {
60 if (!($this->preloaded_profile_data[
$id][
'active'] ??
false)) {
65 !($this->preloaded_profile_data[
$id][
'time_limit_unlimited'] ??
false) &&
67 ($this->preloaded_profile_data[
$id][
'time_limit_from'] ?? 0) >= time() ||
68 ($this->preloaded_profile_data[
$id][
'time_limit_until'] ?? 0) <= time()
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
array $preloaded_profile_data
__construct(protected UserPreferences $user_preferences, protected UserProfile $user_profile)
preloadData(int ... $ids)