type = $type; parent::__construct(); trigger_error("generating a menu item for type \"$this->type\" not implemented in ".get_class($this), E_USER_WARNING); } }