This is library for menu building.
More...
Public Member Functions |
| addGroup ($name, $label= '') |
| Add new group do menu.
|
| addItem ($url, $label, $group= '', $extra=array()) |
| Adds new item to menu.
|
| render () |
| Render menu.
|
| __toString () |
| Call render.
|
Protected Attributes |
| $template = 'menu' |
| $groups = array() |
| $items = array() |
Detailed Description
This is library for menu building.
- Author
- Michal Kliment
- Version
- 1.0
Member Function Documentation
Menu_builder::__toString |
( |
| ) |
|
Call render.
- Author
- Michal Kliment
- Returns
- string
Menu_builder::addGroup |
( |
|
$name, |
|
|
|
$label = '' |
|
) |
| |
Add new group do menu.
- Author
- Michal Kliment
- Parameters
-
Menu_builder::addItem |
( |
|
$url, |
|
|
|
$label, |
|
|
|
$group = '' , |
|
|
|
$extra = array() |
|
) |
| |
Adds new item to menu.
- Author
- Michal Kliment
- Parameters
-
type | $url | URL of item's link |
type | $label | Text of item's link |
type | $group | Group to which item belongs |
array | $extra | Array with extra arguments |
Render menu.
- Author
- Michal Kliment
- Returns
- string
The documentation for this class was generated from the following file: