Joomla CMS
4.2.2
Documentation des API du CMS Joomla en version 4.2.2
|
Fonctions membres publiques | |
__construct (string $name='', string $text='', array $options=[]) | |
render (&$definition=null) | |
fetchIconClass ($identifier) | |
fetchButton () | |
getParent () | |
setParent (Toolbar $parent) | |
getOptions () | |
setOptions (array $options) | |
getOption (string $name, $default=null) | |
setOption (string $name, $value) | |
getName () | |
name (string $name) | |
getLayout () | |
layout (string $layout) | |
__call (string $name, array $args) | |
Fonctions membres protégées | |
prepareOptions (array &$options) | |
renderButton (array &$options) | |
fetchId () | |
ensureUniqueId (string $id) | |
Fonctions membres protégées statiques | |
static | getAccessors () |
Attributs protégés | |
$name | |
$parent | |
$layout | |
$options = [] | |
Attributs protégés statiques | |
static | $idCounter = [] |
Fonctions membres privées statiques | |
static | findOptionName (string $name) |
The ToolbarButton class.
self text(string $value) self task(string $value) self icon(string $value) self buttonClass(string $value) self attributes(array $value) self onclick(array $value) self listCheck(bool $value) self listCheckMessage(string $value) self form(string $value) self formValidation(bool $value) string getText() string getTask() string getIcon() string getButtonClass() array getAttributes() string getOnclick() bool getListCheck() string getListCheckMessage() string getForm() bool getFormValidation()
__construct | ( | string | $name = '' , |
string | $text = '' , |
||
array | $options = [] |
||
) |
__call | ( | string | $name, |
array | $args | ||
) |
Magiix method to adapt option accessors.
string | $name | The method name. |
array | $args | The method arguments. |
Références $name.
|
protected |
Make sure the id is unique
string | $id | The id string. |
Références $id.
|
abstract |
fetchIconClass | ( | $identifier | ) |
Method to get the CSS class name for an icon identifier
Can be redefined in the final class
string | $identifier | Icon identification string |
Références $layout.
|
protected |
|
staticprivate |
Find field option name from accessors.
string | $name | The field name. |
Références $name.
|
staticprotected |
Method to configure available option accessors.
getLayout | ( | ) |
getName | ( | ) |
getOption | ( | string | $name, |
$default = null |
|||
) |
getOptions | ( | ) |
getParent | ( | ) |
layout | ( | string | $layout | ) |
name | ( | string | $name | ) |
|
protected |
render | ( | & | $definition = null | ) |
|
protected |
Render button HTML.
array | &$options | The button options. |
Références $buttonClass, $layout, $options, et ArrayHelper\toString().
setOption | ( | string | $name, |
$value | |||
) |
setOptions | ( | array | $options | ) |
setParent | ( | Toolbar | $parent | ) |
|
staticprotected |
|
protected |
|
protected |
|
protected |
|
protected |