Class WFMenuItemBasic

Description

Implements interfaces:

Generic menu item class for dynamically building menu trees.

Located in /framework/WFMenuItem.php (line 45)


	
			
Direct descendents
Class Description
WFMenuItemProxy This is a helper class that is used by WFMenuTree when it builds WFMenuItem-compatible models from other data sources.
Variable Summary
array $children
string $label
string $link
mixed $menuPath
Method Summary
static WFMenuItemBasic WFMenuItemBasic ()
WFMenuItemBasic __construct ()
array children ()
void icon ()
string label ()
string link ()
void linkTarget ()
void menuPath ()
void setLabel (string $label)
void setLink (string $link)
void setMenuPath ( $p)
void toolTip ()
Variables
array $children (line 58)
  • var: The child menu items (ie submenus) for this menu item.
  • access: protected
string $label (line 50)
  • var: The label to display for the menu.
  • access: protected
string $link (line 54)
  • var: The url for the menu item.
  • access: protected
mixed $menuPath (line 60)
  • access: protected
Methods
static method WFMenuItemBasic (line 70)
  • access: public
static WFMenuItemBasic WFMenuItemBasic ()
Constructor __construct (line 62)
WFMenuItemBasic __construct ()

Redefined in descendants as:
addChild (line 142)

Add a submenu to this menu item.

void addChild (object WFMenuItemBasic $child)
children (line 132)

Get the children (submenus) of this menu item.

  • return: An array of WFMenuItemBasic objects.
array children ()

Implementation of:
WFMenuItem::children()

Redefined in descendants as:
icon (line 150)
void icon ()

Implementation of:
WFMenuItem::icon()

Redefined in descendants as:
label (line 80)

Get the label for this menu item.

string label ()

Implementation of:
WFMenuItem::label()

Redefined in descendants as:
link (line 111)

Get the link for this menu item.

string link ()

Implementation of:
WFMenuItem::link()

Redefined in descendants as:
linkTarget (line 149)
void linkTarget ()

Implementation of:
WFMenuItem::linkTarget()

Redefined in descendants as:
menuPath (line 96)
void menuPath ()

Implementation of:
WFMenuTreeBuilding::menuPath()
setLabel (line 90)

Set the label for this menu item.

void setLabel (string $label)
  • string $label: The label
setLink (line 121)

Set the link for this menu item.

void setLink (string $link)
  • string $link: The label
setMenuPath (line 100)
void setMenuPath ( $p)
  • $p
toolTip (line 148)
void toolTip ()

Implementation of:
WFMenuItem::toolTip()

Redefined in descendants as:

Documentation generated on Thu, 17 Apr 2008 13:51:56 -0400 by phpDocumentor 1.4.1