1<?php 2/** 3 * Copyright (c) 2021. ComboStrap, Inc. and its affiliates. All Rights Reserved. 4 * 5 * This source code is licensed under the GPL license found in the 6 * COPYING file in the root directory of this source tree. 7 * 8 * @license GPL 3 (https://www.gnu.org/licenses/gpl-3.0.en.html) 9 * @author ComboStrap <support@combostrap.com> 10 * 11 */ 12 13namespace ComboStrap; 14 15use dokuwiki\Menu\Item\AbstractItem; 16 17 18/** 19 * Class MenuItem 20 * * 21 * @package ComboStrap 22 * 23 */ 24class CallStackMenuItem extends AbstractItem { 25 26 const ITEM_ID = \renderer_plugin_dump_callstack::NAME . "_item_id"; 27 28 29 /** @var string do action for this plugin */ 30 protected $type = 'export_'. \renderer_plugin_dump_callstack::NAME; 31 32 33 34 /** 35 * 36 * @return string 37 */ 38 public function getLabel() { 39 return "CallStack"; 40 } 41 42 public function getLinkAttributes($classprefix = 'menuitem ') 43 { 44 $linkAttributes = parent::getLinkAttributes($classprefix); 45 $linkAttributes['id']= self::ITEM_ID; 46 return $linkAttributes; 47 } 48 49 public function getTitle() 50 { 51 return "Show the CallStack of this page"; 52 } 53 54 public function getSvg() 55 { 56 /** @var string icon file */ 57 return DOKU_PLUGIN . "dump/resources/image/stack.svg"; 58 } 59 60 61} 62