Menu
in package
implements
ExtendedMenuInterface
Table of Contents
Interfaces
- ExtendedMenuInterface
- Interface descriptions here: https://www.limesurvey.org/manual/Extra_menus_event
Properties
- $dropDownButtonClass : string
- $href : string
- $iconClass : string
- Font-awesome icon class.
- $id : string
- $isDropDown : bool
- If true, render this menu as a dropdown.
- $isDropDownButton : bool
- If true, render this menu as a dropdown button.
- $isInMiddleSection : bool
- Added option because we split the menu into two sections for LS6 If true, render this menu in the middle section. False would render it in the right section
- $isPrepended : bool
- If true, render this menu before the main menu.
- $label : string
- $menuItems : array<string|int, MenuItem>
- $onClick : string
- $tooltip : string
Methods
- __construct() : void
- getDropDownButtonClass() : string
- getHref() : string
- getIconClass() : string
- getId() : string
- getLabel() : string
- getMenuItems() : array<string|int, MenuItem>
- getOnClick() : string
- getTooltip() : string
- isButton() : bool
- isDropDown() : bool
- isDropDownButton() : bool
- isInMiddleSection() : bool
- isPrepended() : bool
Properties
$dropDownButtonClass
protected
string
$dropDownButtonClass
= "btn btn-primary"
$href
protected
string
$href
= "#"
$iconClass
Font-awesome icon class.
protected
string
$iconClass
= ""
$id
protected
string
$id
= ""
$isDropDown
If true, render this menu as a dropdown.
protected
bool
$isDropDown
= false
$isDropDownButton
If true, render this menu as a dropdown button.
protected
bool
$isDropDownButton
= false
$isInMiddleSection
Added option because we split the menu into two sections for LS6 If true, render this menu in the middle section. False would render it in the right section
protected
bool
$isInMiddleSection
= true
$isPrepended
If true, render this menu before the main menu.
protected
bool
$isPrepended
= false
$label
protected
string
$label
= "Missing label"
$menuItems
protected
array<string|int, MenuItem>
$menuItems
= []
$onClick
protected
string
$onClick
= ""
$tooltip
protected
string
$tooltip
= ""
Methods
__construct()
public
__construct(array<string|int, mixed> $options) : void
Parameters
- $options : array<string|int, mixed>
-
- Options for either dropdown menu or plain link
getDropDownButtonClass()
public
getDropDownButtonClass() : string
Return values
stringgetHref()
public
getHref() : string
Return values
stringgetIconClass()
public
getIconClass() : string
Return values
stringgetId()
public
getId() : string
Return values
stringgetLabel()
public
getLabel() : string
Return values
stringgetMenuItems()
public
getMenuItems() : array<string|int, MenuItem>
Return values
array<string|int, MenuItem>getOnClick()
public
getOnClick() : string
Return values
stringgetTooltip()
public
getTooltip() : string
Return values
stringisButton()
public
isButton() : bool
Return values
boolisDropDown()
public
isDropDown() : bool
Return values
boolisDropDownButton()
public
isDropDownButton() : bool
Return values
boolisInMiddleSection()
public
isInMiddleSection() : bool
Return values
boolisPrepended()
public
isPrepended() : bool