ILIAS  trunk Revision v12.0_alpha-377-g3641b37b9db
PublicInterface.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
21namespace ILIAS\User;
22
26
28{
29 public function __construct(
30 private readonly \ilObjUser $logged_in_user
31 ) {
32 }
33
34 public function getSearch(): Search
35 {
36 return LocalDIC::dic()[Search::class];
37 }
38
39 public function getProfile(): Profile
40 {
41 return LocalDIC::dic()[Profile::class];
42 }
43
44 public function getSettings(): Settings
45 {
46 return LocalDIC::dic()[Settings::class];
47 }
48
49 public function getLoggedInUser(): \ilObjUser
50 {
51 return $this->logged_in_user;
52 }
53}
__construct(private readonly \ilObjUser $logged_in_user)
User class.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition: UserEvent.php:21