Class MenuOption

Description

Each menu option is an object.

Located in /MenuSet.php (line 20)


	
			
Variable Summary
 string $rendered
 reference $self
Method Summary
 MenuOption MenuOption (string $label, string $target, [string $title = ""], [string $style = "menu"], [int $sortkey = 1000])
 void Active ([string $style = false])
 void AddSubmenu ( &$submenu_set)
 boolean IsActive ()
 boolean MaybeActive ( $test_pattern,  $active_style)
 string Render ()
 void Set (string $attribute, string $value)
Variables
string $rendered (line 80)

The rendered HTML fragment (once it has been).

  • access: public
reference $self (line 71)

A reference to this menu option itself

Methods
Constructor MenuOption (line 91)

The thing we click

MenuOption MenuOption (string $label, string $target, [string $title = ""], [string $style = "menu"], [int $sortkey = 1000])
  • string $label: The label to display for this option.
  • string $target: The URL to target for this option.
  • string $title: Some tooltip help for the title tag.
  • string $style: A base class name for this option.
  • int $sortkey: An (optional) value to allow option ordering.
Active (line 138)

Mark it as active, with a fancy style to distinguish that

void Active ([string $style = false])
  • string $style: A style used to highlight that the option is active.
AddSubmenu (line 146)

This menu option is now promoted to the head of a tree

void AddSubmenu ( &$submenu_set)
  • &$submenu_set
IsActive (line 154)

Whether this option is currently active.

  • return: The value of the active flag.
boolean IsActive ()
MaybeActive (line 162)

Whether this option is currently active.

  • return: The value of the active flag.
boolean MaybeActive ( $test_pattern,  $active_style)
  • $test_pattern
  • $active_style
Render (line 108)

Convert the menu option into an HTML string

  • return: The HTML fragment for the menu option.
string Render ()
Set (line 130)

Set arbitrary attributes of the menu option

void Set (string $attribute, string $value)
  • string $attribute: An arbitrary attribute to be set in the hyperlink.
  • string $value: A value for this attribute.

Documentation generated on Tue, 06 Oct 2009 09:31:48 -0700 by phpDocumentor 1.3.2