\Nano4\Utils\HTMLClassicMenu

The original classic menu generator.

This is kept for backwards compatibility. The new RouterMenu is the recommended replacement for this library (but only works if your app is using the Nano Router plugin, whereas this requires no specific routing system at all.)

Summary

Methods
Properties
Constants
__construct()
buildMenu()
No public properties found
No constants found
No protected methods found
$parent
N/A
No private methods found
No private properties found
N/A

Properties

$parent

$parent : 

Type

Methods

__construct()

__construct(  $opts = array()) 

Parameters

$opts

buildMenu()

buildMenu(Array  $menu, Array  $opts = array()) : \Nano4\Utils\HTML\SimpleXMLElement

Build a menu.

Given some information and a menu definition, this will generate an HTML menu using a specific layout.

Parameters

Array $menu

The menu definition.

Array $opts

Options to change the behavior.

Returns

\Nano4\Utils\HTML\SimpleXMLElement —

An HTML structure representing the menu.