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