ILIAS
trunk Revision v11.0_alpha-3011-gc6b235a2e85
◀ ilDoc Overview
PublicInterface.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
namespace
ILIAS\User
;
22
23
use
ILIAS\User\Profile\Profile
;
24
use
ILIAS\User\Settings\Settings
;
25
26
class
PublicInterface
27
{
28
public
function
__construct
(
29
private
readonly \
ilObjUser
$logged_in_user
30
) {
31
}
32
public
function
getProfile
():
Profile
33
{
34
return
LocalDIC::dic
()[Profile::class];
35
}
36
37
public
function
getSettings
():
Settings
38
{
39
return
LocalDIC::dic
()[Settings::class];
40
}
41
42
public
function
getLoggedInUser
(): \
ilObjUser
43
{
44
return
$this->logged_in_user;
45
}
46
}
ILIAS\User\LocalDIC\dic
static dic()
Definition:
LocalDIC.php:44
ILIAS\User\PublicInterface
Definition:
PublicInterface.php:27
ILIAS\User\PublicInterface\getSettings
getSettings()
Definition:
PublicInterface.php:37
ILIAS\User\PublicInterface\__construct
__construct(private readonly \ilObjUser $logged_in_user)
Definition:
PublicInterface.php:28
ILIAS\User\PublicInterface\getLoggedInUser
getLoggedInUser()
Definition:
PublicInterface.php:42
ILIAS\User\PublicInterface\getProfile
getProfile()
Definition:
PublicInterface.php:32
ilObjUser
User class.
Definition:
class.ilObjUser.php:46
ILIAS\User\Profile\Profile
Definition:
Profile.php:25
ILIAS\User\Settings\Settings
Definition:
Settings.php:24
ILIAS\User
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition:
UserEvent.php:21
components
ILIAS
User
src
PublicInterface.php
Generated on Sat Oct 18 2025 23:04:35 for ILIAS by
1.9.4 (using
Doxyfile
)