Andrew's Web Libraries (AWL)
|
Public Member Functions | |
__construct ( $label, $target, $title="", $style="menu", $sortkey=1000) | |
Render () | |
Set ( $attribute, $value) | |
Active ( $style=false) | |
AddSubmenu (&$submenu_set) | |
IsActive () | |
MaybeActive ( $test_pattern, $active_style) | |
Public Attributes | |
$label | |
$target | |
$title | |
$active | |
$sortkey | |
$style | |
$submenu_set | |
$self | |
$rendered | |
Definition at line 21 of file MenuSet.php.
MenuOption::__construct | ( | $label, | |
$target, | |||
$title = "", | |||
$style = "menu", | |||
$sortkey = 1000 ) |
#- The thing we click
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. |
Definition at line 92 of file MenuSet.php.
MenuOption::Active | ( | $style = false | ) |
Mark it as active, with a fancy style to distinguish that
string | $style | A style used to highlight that the option is active. |
Definition at line 139 of file MenuSet.php.
MenuOption::AddSubmenu | ( | & | $submenu_set | ) |
This menu option is now promoted to the head of a tree
Definition at line 147 of file MenuSet.php.
MenuOption::IsActive | ( | ) |
Whether this option is currently active.
Definition at line 155 of file MenuSet.php.
MenuOption::MaybeActive | ( | $test_pattern, | |
$active_style ) |
Whether this option is currently active.
Definition at line 163 of file MenuSet.php.
MenuOption::Render | ( | ) |
Convert the menu option into an HTML string
Definition at line 109 of file MenuSet.php.
MenuOption::Set | ( | $attribute, | |
$value ) |
Set arbitrary attributes of the menu option
string | $attribute | An arbitrary attribute to be set in the hyperlink. |
string | $value | A value for this attribute. |
Definition at line 131 of file MenuSet.php.
MenuOption::$active |
Definition at line 47 of file MenuSet.php.
MenuOption::$label |
Definition at line 29 of file MenuSet.php.
MenuOption::$rendered |
Definition at line 81 of file MenuSet.php.
MenuOption::$self |
Definition at line 72 of file MenuSet.php.
MenuOption::$sortkey |
Definition at line 53 of file MenuSet.php.
MenuOption::$style |
Definition at line 59 of file MenuSet.php.
MenuOption::$submenu_set |
Definition at line 65 of file MenuSet.php.
MenuOption::$target |
Definition at line 35 of file MenuSet.php.
MenuOption::$title |
Definition at line 41 of file MenuSet.php.