19 declare(strict_types=1);
    45         $this->dic->language()->loadLanguageModule(
'awrn');
    50             $settings->get(
'awrn_enabled', 
'0') !== 
'1' ||
    51             $settings->get(
'use_osd', 
'0') !== 
'1' ||
    52             0 === $this->dic->user()->getId() ||
    53             $this->dic->user()->isAnonymous()
    58         $users = Collector::getOnlineUsers();
    60         $users = array_slice($users, 0, self::MAX_ONLINE_USER_COUNT, 
true);
    63         foreach ($users as 
$id => $user) {
    65             if ($time >= (time() - ($this->dic->http()->request()->getQueryParams()[
'max_age'] ?? 0))) {
    66                 $new_user_ids[] = 
$id;
    81         if ($new_users !== []) {
    83             $toast = $this->toast_factory
    85                     $this->
if->identifier(self::PROVIDER_KEY . 
'_' . $this->dic->user()->getId()),
    86                     $this->dic->language()->txt(
'awareness_now_online')
    88                 ->withIcon($this->dic->ui()->factory()->symbol()->icon()->standard(Standard::USR, 
''));
    90             foreach ($new_users as $user) {
    91                 $uname = 
"[" . $user[
'login'] . 
"]";
    92                 if ($user[
'public_profile']) {
    93                     $uname = $user[
'lastname'] . 
", " . $user[
'firstname'] . 
" " . $uname;
    96                 $toast = $toast->withAdditionToastAction(
    97                     $this->toast_factory->action(
    98                         self::PROVIDER_KEY . 
'_' . $user[
'id'],
   101                             $this->dic->ctrl()->redirectToURL(
'/goto.php?target=usr_' . $user[
'id']);
 
if(!file_exists('../ilias.ini.php'))
 
static getNamePresentation( $a_user_id, bool $a_user_image=false, bool $a_profile_link=false, string $a_profile_back_link='', bool $a_force_first_lastname=false, bool $a_omit_login=false, bool $a_sortable=true, bool $a_return_data_array=false, $a_ctrl_path='ilpublicuserprofilegui')
Default behaviour is: 
 
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins 
 
const MAX_ONLINE_USER_COUNT