1<?php
2
3namespace dokuwiki\plugin\siteexport;
4
5use dokuwiki\Menu\Item\AbstractItem;
6
7/**
8 * Class MenuItem
9 *
10 * Implements the PDF export button for DokuWiki's menu system
11 *
12 * @package dokuwiki\plugin\dw2pdf
13 */
14class MenuItem extends AbstractItem {
15
16    /** @var string do action for this plugin */
17    protected $type = 'siteexport_addpage';
18
19    /** @var string icon file */
20    protected $svg = __DIR__ . '/images/siteexport.svg';
21
22    /**
23     * MenuItem constructor.
24     */
25    public function __construct() {
26        parent::__construct();
27    }
28
29    /**
30     * Get label from plugin language file
31     *
32     * @return string
33     */
34    public function getLabel() {
35        $hlp = plugin_load('helper', 'siteexport');
36        return $hlp->getLang('siteexport_button');
37    }
38}
39