Toolbar
class Toolbar
ToolBar handler
Methods
__construct(
string $name = 'toolbar')
Constructor
static
JToolbar
getInstance(
string $name = 'toolbar')
Returns the global Toolbar object, only creating it if it doesn't already exist.
string
appendButton()
Set a value
array
getItems()
Get the list of toolbar links.
string
getName()
Get the name of the toolbar.
string
prependButton()
Get a value.
string
render()
Render a toolbar.
string
renderButton(
object $node)
Render a button.
boolean
loadButtonType(
string $type,
boolean $new = false)
Loads a button type.
void
addButtonPath(
mixed $path)
Add a directory where Toolbar should search for button types in LIFO order.
Details
static
JToolbar
getInstance(
string $name = 'toolbar')
Returns the global Toolbar object, only creating it if it doesn't already exist.
void
addButtonPath(
mixed $path)
Add a directory where Toolbar should search for button types in LIFO order.
You may either pass a string or an array of directories.
Toolbar will be searching for an element type in the same order you added them. If the parameter type cannot be found in the custom folders, it will look in libraries/joomla/html/toolbar/button.