Joomla CMS
4.2.2
Documentation des API du CMS Joomla en version 4.2.2
|
Fonctions membres publiques | |
__construct ($name='toolbar', ToolbarFactoryInterface $factory=null) | |
setFactory (ToolbarFactoryInterface $factory) | |
appendButton ($button,... $args) | |
getItems () | |
setItems (array $items) | |
getName () | |
prependButton ($button,... $args) | |
render (array $options=[]) | |
renderButton (&$node) | |
loadButtonType ($type, $new=false) | |
addButtonPath ($path) | |
getButtonPath () | |
createChild ($name) | |
__call ($name, $args) | |
Fonctions membres publiques statiques | |
static | getInstance ($name='toolbar') |
Attributs protégés | |
$_name = '' | |
$_bar = [] | |
$_buttonPath = [] | |
$factory | |
Attributs protégés statiques | |
static | $instances = array() |
ToolBar handler
StandardButton standardButton(string $name = '', string $text = '', string $task = '') SeparatorButton separatorButton(string $name = '', string $text = '', string $task = '') PopupButton popupButton(string $name = '', string $text = '', string $task = '') LinkButton linkButton(string $name = '', string $text = '', string $task = '') HelpButton helpButton(string $name = '', string $text = '', string $task = '') InlinehelpButton inlinehelpButton(string $name = '', string $text = '', string $task = '') CustomButton customButton(string $name = '', string $text = '', string $task = '') ConfirmButton confirmButton(string $name = '', string $text = '', string $task = '') BasicButton basicButton(string $name = '', string $text = '', string $task = '') DropdownButton dropdownButton(string $name = '', string $text = '', string $task = '')
__construct | ( | $name = 'toolbar' , |
|
ToolbarFactoryInterface | $factory = null |
||
) |
Constructor
string | $name | The toolbar name. |
ToolbarFactoryInterface | $factory | The toolbar factory. |
Références $name, $this, __DIR__, class, et Factory\getContainer().
__call | ( | $name, | |
$args | |||
) |
addButtonPath | ( | $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.
mixed | $path | Directory or directories to search. |
appendButton | ( | $button, | |
$args | |||
) |
Append a button to toolbar.
ToolbarButton | $button | The button instance. |
array | $args | The more arguments. |
createChild | ( | $name | ) |
Create child toolbar.
string | $name | The toolbar name. |
Références $name.
getButtonPath | ( | ) |
Get the lookup paths for button objects
Références class.
|
static |
Returns the global Toolbar object, only creating it if it doesn't already exist.
string | $name | The name of the toolbar. |
Références $name, class, et Factory\getContainer().
Référencé par ToolbarHelper\addNew(), HtmlView\addToolbar(), ListView\addToolbar(), ToolbarHelper\apply(), ToolbarHelper\archiveList(), ToolbarHelper\assign(), ToolbarHelper\back(), ToolbarHelper\cancel(), ToolbarHelper\checkin(), ToolbarHelper\custom(), ToolbarHelper\deleteList(), ToolbarHelper\divider(), ToolbarHelper\editCss(), ToolbarHelper\editHtml(), ToolbarHelper\editList(), ToolbarHelper\help(), ToolbarHelper\inlinehelp(), ToolbarHelper\jooa11y(), ToolbarHelper\link(), ToolbarHelper\makeDefault(), ToolbarHelper\media_manager(), ToolbarHelper\modal(), ToolbarHelper\preferences(), HtmlView\prepareToolbar(), ToolbarHelper\preview(), ToolbarHelper\publish(), ToolbarHelper\publishList(), ToolbarHelper\save(), ToolbarHelper\save2copy(), ToolbarHelper\save2new(), ToolbarHelper\saveGroup(), ToolbarHelper\spacer(), HtmlView\toolbar(), ToolbarHelper\trash(), ToolbarHelper\unarchiveList(), ToolbarHelper\unpublish(), et ToolbarHelper\unpublishList().
getItems | ( | ) |
Get the list of toolbar links.
getName | ( | ) |
Get the name of the toolbar.
loadButtonType | ( | $type, | |
$new = false |
|||
) |
Loads a button type.
string | $type | Button Type |
boolean | $new | False by default |
Références $this, $type, Log\add(), et Log\WARNING.
prependButton | ( | $button, | |
$args | |||
) |
Prepend a button to toolbar.
ToolbarButton | $button | The button instance. |
array | $args | The more arguments. |
render | ( | array | $options = [] | ) |
renderButton | ( | & | $node | ) |
Render a button.
array | &$node | A toolbar node. |
Références $button, $this, $type, et Text\sprintf().
setFactory | ( | ToolbarFactoryInterface | $factory | ) |
Set the factory instance
ToolbarFactoryInterface | $factory | The factory instance |
Références $this.
setItems | ( | array | $items | ) |
|
protected |
|
protected |
|
protected |
|
protected |
|
staticprotected |