Sidebar

Utility class to render a list view sidebar

abstract
since

3.0

package

Joomla CMS

Methods

addEntry

Method to add a menu item to submenu.

addEntry( name,  link = '',  active = false) : 
static
since

3.0

Arguments

name

stringName of the menu item.

link

stringURL of the menu item.

active

boolTrue if the item is active, false otherwise.

Response

void

addFilter

Method to add a filter to the submenu

addFilter( label,  name,  options,  noDefault = false) : 
static
since

3.0

Arguments

label

stringLabel for the menu item.

name

stringName for the filter. Also used as id.

options

stringOptions for the select field.

noDefault

boolDon't show the label as the empty option

Response

void

getAction

Get value for the action attribute of the filter form

getAction() : 
static
since

3.0

Response

string

getEntries

Returns an array of all submenu entries

getEntries() : mixed||string|int
static
since

3.0

Response

array<string|int, mixed>

getFilters

Returns an array of all filters

getFilters() : mixed||string|int
static
since

3.0

Response

array<string|int, mixed>

render

Render the sidebar.

render() : 
static
since

3.0

Response

stringThe necessary HTML to display the sidebar

setAction

Set value for the action attribute of the filter form

setAction( action) : 
static
since

3.0

Arguments

action

stringValue for the action attribute of the form

Response

void

Properties

entries

Menu entries

static
since

3.0

Type(s)

array<string|int, mixed>

filters

Filters

static
since

3.0

Type(s)

array<string|int, mixed>

action

Value for the action attribute of the form.

static
since

3.0

Type(s)

string