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