FfMenuHelper
public class FfMenuHelper
Method Summary | |
---|---|
string | getMenu(string selectedTab, string selectedLink, array menuArray) Returns the HTML to display a horizontal 2 tier menu. |
string | getMenuLinks(array menuLinks, mixed selectedLink, sring the) Returns the HTML that displays the tab sub links in a horizontal menu. |
string | getNotSelectedTab(array tab, boolean first) Returns the HTML used to display an unselected tab in a horizontal menu. |
string | getSectionFooter(string classPrefix) Returns the HTML to display the footer of a section widget. |
string | getSectionHeader(string classPrefix) Returns the HTML to display the header of a section widget. |
string | getSectionTitleFooter(string classPrefix, string title) Returns the HTML to display the footer of a section title widget. |
string | getSectionTitleHeader(string title, string classPrefix) Returns the HTML to display the header of a section title widget. |
string | getSelectedTab(array tab, boolean first) Returns the HTML used to display a selected tab in a horizontal menu. |
string | getTitle(string title, string classPrefix) Returns the HTML to display the title widget. |
string | getVerticalMenu(string selectedTab, string selectedLink, array menuArray) Returns the HTML to display a vertical 2 tier menu. |
string | getVerticalMenuLinks(array menuLinks, mixed selectedLink, string the) Returns the HTML that displays the tab sub links in a vertical menu. |
string | getVerticalNotSelectedTab(array tab) Returns the HTML used to display an unselected tab in a vertical menu. |
string | getVerticalSelectedTab(array tab) Returns the HTML used to display a selected tab in a vertical menu. |
void | printMenu(string selectedTab, string selectedLink, array menuArray) Echos the HTML to display a horizontal 2 tier menu. |
void | printMenuLinks(array menuLinks, mixed selectedLink, sring the) Echos the HTML that displays the tab sub links in a horizontal menu. |
void | printNotSelectedTab(array tab, boolean first) Echos the HTML used to display an unselected tab in a horizontal menu. |
void | printSectionFooter(string classPrefix) Echos the HTML to display the footer of a section widget. |
void | printSectionHeader(string classPrefix) Echos the HTML to display a section header widget. |
void | printSectionTitleFooter(string classPrefix, string title) Echos the HTML to display the footer of a section title widget. |
void | printSectionTitleHeader(string title, string classPrefix) Echos the HTML to display the header of a section title widget. |
void | printSelectedTab(array tab, boolean first) Echos the HTML used to display a selected tab in a horizontal menu. |
void | printTitle(string title, string classPrefix) Echo the HTML to display the title widget. |
void | printVerticalMenu(string selectedTab, string selectedLink, array menuArray) Echos the HTML to display a vertical 2 tier menu. |
void | printVerticalMenuLinks(array menuLinks, mixed selectedLink, string the) Echos the HTML that displays the tab sub links in a vertical menu. |
void | printVerticalNotSelectedTab(array tab) Echos the HTML used to display an unselected tab in a vertical menu. |
void | printVerticalSelectedTab(array tab) Echos the HTML used to display a selected tab in a vertical menu. |
public string getMenu(string selectedTab, string selectedLink, array menuArray)
Returns the HTML to display a horizontal 2 tier menu.
An example menuArray:
$menuItem1 =
array(
array("Sub Item 1a", "subItem1a.php", null),
array("Sub Item 1b", "subItem1b.php", null),
array("Sub Item 1c", "subItem1c.php", null)
);
$menuItem2 =
array(
array("Sub Item 2a", "subItem2a.php", null),
array("Sub Item 2b", "subItem2b.php", null),
array("Sub Item 2c", "subItem2c.php", null)
);
$menuItem3 =
array(
array("Sub Item 3a", "subItem3a.php", null),
array("Sub Item 3b", "subItem3b.php", null),
array("Sub Item 3c", "subItem3c.php", null, "target=\"_blank\"")
);
$menuArray =
array(
array("Item 1", "menuItem1.php", $menuItem1),
array("Item 2", "menuItem2.php", $menuItem2),
array("Item 3", "menuItem3.php", $menuItem3, "target=\"_blank\"")
);
public string getMenuLinks(array menuLinks, mixed selectedLink, sring the)
Returns the HTML that displays the tab sub links in a horizontal menu.
public string getNotSelectedTab(array tab, boolean first)
Returns the HTML used to display an unselected tab in a horizontal menu.
public string getSectionFooter(string classPrefix)
Returns the HTML to display the footer of a section widget.
public string getSectionHeader(string classPrefix)
Returns the HTML to display the header of a section widget.
public string getSectionTitleFooter(string classPrefix, string title)
Returns the HTML to display the footer of a section title widget.
public string getSectionTitleHeader(string title, string classPrefix)
Returns the HTML to display the header of a section title widget.
public string getSelectedTab(array tab, boolean first)
Returns the HTML used to display a selected tab in a horizontal menu.
public string getTitle(string title, string classPrefix)
Returns the HTML to display the title widget.
public string getVerticalMenu(string selectedTab, string selectedLink, array menuArray)
Returns the HTML to display a vertical 2 tier menu.
An example menuArray:
$menuItem1 =
array(
array("Sub Item 1a", "subItem1a.php", null),
array("Sub Item 1b", "subItem1b.php", null),
array("Sub Item 1c", "subItem1c.php", null)
);
$menuItem2 =
array(
array("Sub Item 2a", "subItem2a.php", null),
array("Sub Item 2b", "subItem2b.php", null),
array("Sub Item 2c", "subItem2c.php", null)
);
$menuItem3 =
array(
array("Sub Item 3a", "subItem3a.php", null),
array("Sub Item 3b", "subItem3b.php", null),
array("Sub Item 3c", "subItem3c.php", null, "target=\"_blank\"")
);
$menuArray =
array(
array("Item 1", "menuItem1.php", $menuItem1),
array("Item 2", "menuItem2.php", $menuItem2),
array("Item 3", "menuItem3.php", $menuItem3, "target=\"_blank\"")
);
public string getVerticalMenuLinks(array menuLinks, mixed selectedLink, string the)
Returns the HTML that displays the tab sub links in a vertical menu.
public string getVerticalNotSelectedTab(array tab)
Returns the HTML used to display an unselected tab in a vertical menu.
public string getVerticalSelectedTab(array tab)
Returns the HTML used to display a selected tab in a vertical menu.
public void printMenu(string selectedTab, string selectedLink, array menuArray)
Echos the HTML to display a horizontal 2 tier menu.
public void printMenuLinks(array menuLinks, mixed selectedLink, sring the)
Echos the HTML that displays the tab sub links in a horizontal menu.
public void printNotSelectedTab(array tab, boolean first)
Echos the HTML used to display an unselected tab in a horizontal menu.
public void printSectionFooter(string classPrefix)
Echos the HTML to display the footer of a section widget.
public void printSectionHeader(string classPrefix)
Echos the HTML to display a section header widget.
public void printSectionTitleFooter(string classPrefix, string title)
Echos the HTML to display the footer of a section title widget.
public void printSectionTitleHeader(string title, string classPrefix)
Echos the HTML to display the header of a section title widget.
public void printSelectedTab(array tab, boolean first)
Echos the HTML used to display a selected tab in a horizontal menu.
public void printTitle(string title, string classPrefix)
Echo the HTML to display the title widget.
public void printVerticalMenu(string selectedTab, string selectedLink, array menuArray)
Echos the HTML to display a vertical 2 tier menu.
public void printVerticalMenuLinks(array menuLinks, mixed selectedLink, string the)
Echos the HTML that displays the tab sub links in a vertical menu.
public void printVerticalNotSelectedTab(array tab)
Echos the HTML used to display an unselected tab in a vertical menu.
public void printVerticalSelectedTab(array tab)
Echos the HTML used to display a selected tab in a vertical menu.
A class used to build dynamic 2 tier menus that are styled with CSS.