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