class MenuEntry

Our class to generate menus

Properties

static $SEPARATOR The constant for a separator
$link The link data
$href The place to go for a link
$attr Extra attributes

Methods

__construct($link, $href = false, $attr = false)

Construct a menu entry from a link and href

static MenuEntry
separator()

Construct a menu entry separator

Details

at line 40
__construct($link, $href = false, $attr = false)

Construct a menu entry from a link and href

Parameters

$link The text of the link - can be text, HTML, or even an img tag
$href An optional place to go when the link is clicked. Also can be a Menu.
$attr An optional string to add within the anchor tag

at line 55
static MenuEntry separator()

Construct a menu entry separator

Return Value

MenuEntry A MenuEntry separator