193b8c351SAndreas Gohr<?php 293b8c351SAndreas Gohr 393b8c351SAndreas Gohrnamespace dokuwiki\Menu\Item; 493b8c351SAndreas Gohr 5*368ce258SAndreas Gohr/** 6*368ce258SAndreas Gohr * Class Back 7*368ce258SAndreas Gohr * 8*368ce258SAndreas Gohr * @fixme where is this used? 9*368ce258SAndreas Gohr * @fixme missing SVG 10*368ce258SAndreas Gohr */ 1193b8c351SAndreas Gohrclass Back extends AbstractItem { 1293b8c351SAndreas Gohr 1393b8c351SAndreas Gohr /** @inheritdoc */ 1493b8c351SAndreas Gohr public function __construct() { 1593b8c351SAndreas Gohr global $ID; 1693b8c351SAndreas Gohr parent::__construct(); 1793b8c351SAndreas Gohr 1893b8c351SAndreas Gohr $parent = tpl_getparent($ID); 1993b8c351SAndreas Gohr if(!$parent) { 2093b8c351SAndreas Gohr throw new \RuntimeException("No parent for back action"); 2193b8c351SAndreas Gohr } 2293b8c351SAndreas Gohr 2393b8c351SAndreas Gohr $this->id = $parent; 2493b8c351SAndreas Gohr $this->params = array('do' => ''); 2593b8c351SAndreas Gohr $this->accesskey = 'b'; 2693b8c351SAndreas Gohr } 2793b8c351SAndreas Gohr 2893b8c351SAndreas Gohr} 29