Method to add a menu item to submenu.
static void
addEntry
(string $name, [string $link = ''], [bool $active = false])
-
string
$name: Name of the menu item.
-
string
$link: URL of the menu item.
-
bool
$active: True if the item is active, false otherwise.
Method to add a filter to the submenu
static void
addFilter
(string $label, string $name, string $options, [bool $noDefault = false])
-
string
$label: Label for the menu item.
-
string
$name: Name for the filter. Also used as id.
-
string
$options: Options for the select field.
-
bool
$noDefault: Don't the label as the empty option
Get value for the action attribute of the filter form
static string
getAction
()
Returns an array of all submenu entries
static array
getEntries
()
Returns an array of all filters
static array
getFilters
()
Render the sidebar.
static string
render
()
Set value for the action attribute of the filter form
static void
setAction
(string $action)
-
string
$action: Value for the action attribute of the form