\Anax\NavigationCNavbar

Helper to create a navbar for sites by reading its configuration from file and then applying some code while rendering the resultning navbar.

Summary

Methods
Properties
Constants
configure()
setDI()
create()
No public properties found
No constants found
No protected methods found
$di
N/A
No private methods found
$config
N/A

Properties

$di

$di : 

Properties

Type

$config

$config : 

Properties

Type

Methods

configure()

configure(\Anax\array/string  $what) : $this

Read configuration from file or array'.

Parameters

\Anax\array/string $what

is an array with key/value config options or a file

 to be included which returns such an array.

Returns

$this —

for chaining.

setDI()

setDI(\Anax\DI\class  $di) : $this

Set the service container to use

Parameters

\Anax\DI\class $di

a service container

Returns

$this

create()

create() : string

Create a navigation bar / menu, with submenu.

Returns

string —

with html for the menu.