menuA 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 |
|---|---|
sitemenu
|
Site Menu class - a database-enabled extension of the menu class. |
mixed
$highlightclass
= "" (line 223)
Stylesheet class to use for highlighting
mixed
$items
(line 228)
Array of items in this menu
mixed
$item_count
= 0 (line 231)
Number of items in the menu
mixed
$name
= "" (line 215)
Name of the menu
mixed
$orientation
= VERTICAL (line 219)
Menu orientation: HORIZONTAL or VERTICAL
mixed
$separator
= SEP_SPACE (line 221)
Separator character between items
mixed
$title
= "" (line 217)
Title/banner for this menu
mixed
$title_font
= "" (line 234)
Font settings for the title/banner
mixed
$wrap_threshold
= 0 (line 237)
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