Agile Toolkit  4.2
Agile Toolkit is a powerful web development framework. Inspired by GUI Applications development
Menu_Basic Class Reference
Inheritance diagram for Menu_Basic:
CompleteLister Lister View AbstractView AbstractObject Menu

Public Member Functions

 init ()
 defaultTemplate ()
 addMenuItem ($page, $label=null)
 isCurrent ($href)
 render ()

Data Fields

 $current_menu_class = "ui-state-active"
 $inactive_menu_class = "ui-state-default"

Protected Member Functions

 getDefaultHref ($label)

Protected Attributes

 $items = array()
 $class_tag = 'class'
 $item_tag = 'MenuItem'
 $container_tag = 'Item'
 $last_item = null

Detailed Description

This is the description for the Class

Romans <>

Member Function Documentation

addMenuItem ( page,
label = null 

Redefine to return default template, when 4th argument of add() is omitted

Reimplemented from CompleteLister.

getDefaultHref ( label) [protected]
init ( )

Initialize object. Always call parent

This method is called for initialization

Reimplemented from CompleteLister.

isCurrent ( href)
render ( )

Default render. Generates HTML presentation of the view based on $this->template and passes it to output() function which then inserts output into parent's template

For visual objects, their default action while rendering is rely on SMlite engine. For sake of simplicity and speed you can redefine this method with a simple call

Reimplemented from CompleteLister.

Field Documentation

$class_tag = 'class' [protected]
$container_tag = 'Item' [protected]

Reimplemented from CompleteLister.

$current_menu_class = "ui-state-active"
$inactive_menu_class = "ui-state-default"
$item_tag = 'MenuItem' [protected]

Reimplemented from CompleteLister.

$items = array() [protected]
$last_item = null [protected]

The documentation for this class was generated from the following file:
 All Data Structures Files Functions Variables Enumerations