xref: /dokuwiki/inc/Menu/Item/Subscribe.php (revision 944e9ba7254387adb60f253b0d8796f2276096b1)
1<?php
2
3namespace dokuwiki\Menu\Item;
4
5use dokuwiki\File\StaticImage;
6
7/**
8 * Class Subscribe
9 *
10 * Access the subscription management view
11 */
12class Subscribe extends AbstractItem
13{
14    /** @inheritdoc */
15    public function __construct()
16    {
17        global $INPUT;
18        parent::__construct();
19
20        if (!$INPUT->server->str('REMOTE_USER')) {
21            throw new \RuntimeException("subscribe is only for logged in users");
22        }
23
24        $this->svg = StaticImage::path('menu/09-subscribe_email-outline.svg');
25    }
26}
27