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