MenuEntry
in package
Our class to generate menus
Table of Contents
Properties
- $attr : mixed
- Extra attributes
- $href : mixed
- The place to go for a link
- $link : mixed
- The link data
- $SEPARATOR : mixed
- The constant for a separator
Methods
- __construct() : mixed
- Construct a menu entry from a link and href
- separator() : MenuEntry
- Construct a menu entry separator
Properties
$attr
Extra attributes
public
mixed
$attr
= false
$href
The place to go for a link
public
mixed
$href
= false
$link
The link data
public
mixed
$link
= false
$SEPARATOR
The constant for a separator
public
static mixed
$SEPARATOR
= '----------'
Methods
__construct()
Construct a menu entry from a link and href
public
__construct(mixed $link[, mixed $href = false ][, mixed $attr = false ]) : mixed
Parameters
- $link : mixed
-
The text of the link - can be text, HTML, or even an img tag
- $href : mixed = false
-
An optional place to go when the link is clicked. Also can be a Menu.
- $attr : mixed = false
-
An optional string to add within the anchor tag
separator()
Construct a menu entry separator
public
static separator() : MenuEntry
Return values
MenuEntry —A MenuEntry separator