1<?php 2 3namespace dokuwiki\Menu\Item; 4 5/** 6 * Class Back 7 * 8 * @fixme where is this used? 9 * @fixme missing SVG 10 */ 11class Back extends AbstractItem { 12 13 /** @inheritdoc */ 14 public function __construct() { 15 global $ID; 16 parent::__construct(); 17 18 $parent = tpl_getparent($ID); 19 if(!$parent) { 20 throw new \RuntimeException("No parent for back action"); 21 } 22 23 $this->id = $parent; 24 $this->params = array('do' => ''); 25 $this->accesskey = 'b'; 26 } 27 28} 29