class Menu (View source)

Generates and renders the top menu

Methods

__construct(DatabaseInterface $dbi, Template $template, Config $config, Relation $relation, string $db, string $table)

Creates a new instance of Menu

string
getDisplay()

Returns the menu and the breadcrumbs as a string

setTable(string $table)

Set current table

Details

__construct(DatabaseInterface $dbi, Template $template, Config $config, Relation $relation, string $db, string $table)

Creates a new instance of Menu

Parameters

DatabaseInterface $dbi
Template $template
Config $config
Relation $relation
string $db

Database name

string $table

Table name

string getDisplay()

Returns the menu and the breadcrumbs as a string

Return Value

string

Menu setTable(string $table)

Set current table

Parameters

string $table

Current table

Return Value

Menu