dokuwiki-plugin-childrenpages/MenuItem.php

21 lines
493 B
PHP
Raw Normal View History

<?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
* @param string $label
*/
public function __construct(string $type, string $label) {
$this->type = $type;
$this->label = $label;
parent::__construct();
trigger_error("generating a menu item for type \"$this->type\" not implemented in ".get_class($this), E_USER_WARNING);
}
}