xref: /dokuwiki/inc/Menu/Item/Profile.php (revision a19c9aa0217112e3ab7ebc160354c7e9fbabe8eb)
1<?php
2
3namespace dokuwiki\Menu\Item;
4
5/**
6 * Class Profile
7 *
8 * Open the user's profile
9 */
10class Profile extends AbstractItem
11{
12
13    /** @inheritdoc */
14    public function __construct()
15    {
16        global $INPUT;
17        parent::__construct();
18
19        if (!$INPUT->server->str('REMOTE_USER')) {
20            throw new \RuntimeException("profile is only for logged in users");
21        }
22
23        $this->svg = DOKU_INC . 'lib/images/menu/account-card-details.svg';
24    }
25}
26