Class ElggMenuItem
Elgg Menu Item
To create a menu item that is not a link, pass false for $href.
public
|
|
public static
|
|
public
|
|
public
mixed
|
|
public
|
|
public
string
|
|
public
|
|
public
string
|
|
public
|
|
public
string
|
|
public
|
|
public
array
|
|
public
boolean
|
|
public
|
|
public
boolean
|
|
public
|
|
public
string
|
|
public
|
|
public
string
|
|
public
|
|
public
string
|
|
public
|
|
public
|
|
public
string
|
|
public
|
|
public
integer
|
|
public
|
|
public
string
|
|
public
|
|
public
string
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
array
|
|
public
|
|
public
string
|
protected
array
|
$data | array(
// string Identifier of the menu
'name' => '',
// array Page contexts this menu item should appear on
'contexts' => array('all'),
// string Menu section identifier
'section' => 'default',
// int Smaller priorities float to the top
'priority' => 100,
// bool Is this the currently selected menu item
'selected' => false,
// string Identifier of this item's parent
'parent_name' => '',
// ElggMenuItem The parent object or null
'parent' => null,
// array Array of children objects or empty array
'children' => array(),
// array Classes to apply to the li tag
'itemClass' => array(),
// array Classes to apply to the anchor tag
'linkClass' => array(),
) |
#
Non-rendered data about the menu item |
protected
string
|
$text |
|
#
The menu display string |
protected
string
|
$href | null |
#
The menu url |
protected
string
|
$title | false |
#
Tooltip |
protected
string
|
$confirm | '' |
#
The string to display if link is clicked |