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.
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.
This menu option is now promoted to the head of a tree
void
AddSubmenu
( &$submenu_set)
Whether this option is currently active.
boolean
IsActive
()
Whether this option is currently active.
boolean
MaybeActive
( $test_pattern, $active_style)
-
$test_pattern
-
$active_style
Convert the menu option into an HTML string
string
Render
()
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.