A menu, which is a container for menu items. This class encapsulates what is essentially a list of links which can be displayed as a 'menu'. Orientation can be VERTICAL or HORIZONTAL. A 'wrap threshold' can be defined. If it's a vertical menu, this represents the max no.
of items down the page. Extra columns are generated to the right to accomodate the items list. In the horizontal case, the threshold represents the max no. of items across the page. Extra rows are generated to hold the menu items list.
Located in /menu-defs.php (line 212)
RenderableObject | --StylableObject | --menu
Class | Description |
---|---|
![]() |
Site Menu class - a database-enabled extension of the menu class. |
Stylesheet class to use for highlighting
Array of items in this menu
Number of items in the menu
Name of the menu
Menu orientation: HORIZONTAL or VERTICAL
Separator character between items
Title/banner for this menu
Font settings for the title/banner
Max. number of menu items before wrapping the menu
Inherited from StylableObject
StylableObject::$class
StylableObject::$id
StylableObject::$style
Constructor Creates the menu object.
Create new menu item Makes a new menuitem from a given label and URL and adds it to the menu.
Add menu item Adds a ready-made menuitem to the menu.
This renders the field as HTML.
Set the font of all menu items
Set the menu tite font
This renders the field as WML.
This renders the menu as WML (w/Phone.com extns) in a paged mode with a number of menuitems/page defined by $wrap_threshold.
WAP phone with Phone.com extensions. We always create vertical menus using a jump-menu in this particular case.
Given a page number of the current page, this method returns the appropriate label and link HREF for the next page link.
Inherited From StylableObject
StylableObject::StylableObject()
StylableObject::clearstyle()
StylableObject::setclass()
StylableObject::setcss()
StylableObject::setid()
StylableObject::setstyle()
Inherited From RenderableObject
RenderableObject::RenderableObject()
RenderableObject::html()
RenderableObject::render()
RenderableObject::wml()
RenderableObject::wmlup()
RenderableObject::xml()
Documentation generated by phpDocumentor 1.3.0RC3