xref: /dokuwiki/inc/Menu/Item/Subscribe.php (revision e44b94a4bd0679ff22e14add34b60590fe7077d3)
193b8c351SAndreas Gohr<?php
293b8c351SAndreas Gohr
393b8c351SAndreas Gohrnamespace dokuwiki\Menu\Item;
493b8c351SAndreas Gohr
5368ce258SAndreas Gohr/**
6368ce258SAndreas Gohr * Class Subscribe
7368ce258SAndreas Gohr *
8368ce258SAndreas Gohr * Access the subscription management view
9368ce258SAndreas Gohr */
1033b91513SAndreas Gohrclass Subscribe extends AbstractItem
1133b91513SAndreas Gohr{
1293b8c351SAndreas Gohr    /** @inheritdoc */
1333b91513SAndreas Gohr    public function __construct()
1433b91513SAndreas Gohr    {
1593b8c351SAndreas Gohr        global $INPUT;
1693b8c351SAndreas Gohr        parent::__construct();
1793b8c351SAndreas Gohr
1893b8c351SAndreas Gohr        if (!$INPUT->server->str('REMOTE_USER')) {
1993b8c351SAndreas Gohr            throw new \RuntimeException("subscribe is only for logged in users");
2093b8c351SAndreas Gohr        }
214bb2fc4aSAndreas Gohr
22*e44b94a4SAndreas Gohr        $this->svg = DOKU_INC . 'lib/images/menu/09-subscribe_email-outline.svg';
2393b8c351SAndreas Gohr    }
2493b8c351SAndreas Gohr}
25