2020-04-02 23:15:41 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace dokuwiki\plugin\childrenpages;
|
|
|
|
|
|
|
|
use dokuwiki\Menu\Item\AbstractItem;
|
|
|
|
|
|
|
|
class MenuItem extends AbstractItem {
|
|
|
|
/**
|
|
|
|
* Generate a menu item from a passed string
|
|
|
|
*
|
|
|
|
* @param string $type
|
2020-04-02 23:44:50 +00:00
|
|
|
* @param string $label
|
2020-04-02 23:15:41 +00:00
|
|
|
*/
|
2020-04-02 23:44:50 +00:00
|
|
|
public function __construct(string $type, string $label) {
|
2020-04-02 23:15:41 +00:00
|
|
|
$this->type = $type;
|
2020-04-02 23:44:50 +00:00
|
|
|
$this->label = $label;
|
2020-04-02 23:15:41 +00:00
|
|
|
parent::__construct();
|
|
|
|
trigger_error("generating a menu item for type \"$this->type\" not implemented in ".get_class($this), E_USER_WARNING);
|
|
|
|
}
|
|
|
|
}
|