constructor HTML_Menu::HTML_Menu()

constructor HTML_Menu::HTML_Menu() – Initializes the menu, sets the type and menu structure.

Synopsis

require_once 'HTML/Menu.php';

void constructor HTML_Menu::HTML_Menu ( array $menu = null , string $type = 'tree' , string $urlEnvVar = 'PHP_SELF' )

Description

Initializes the menu, sets the menu structure, type and variable to use for determining the current URL. All parameters are optional and can be set later by corresponding methods.

Parameter

array $menu

Menu structure

string $type

Menu type: 'tree', 'rows', 'urhere', 'prevnext', 'sitemap'

string $urlEnvVar

Environment variable to use for determining the current URL.

Throws

throws no exceptions thrown

Note

This function can not be called statically.

Menu structure and supported output modes (Previous) Forces the given URL to be "current" (Next)
Last updated: Sat, 16 Feb 2019 — Download Documentation
Do you think that something on this page is wrong? Please file a bug report.
View this page in:
  • English

User Notes:

There are no user contributed notes for this page.