Joomla CMS
4.2.2
Documentation des API du CMS Joomla en version 4.2.2
|
Fonctions membres publiques | |
fetchButton ( $type='Modal', $name='', $text='', $url='', $iframeWidth=640, $iframeHeight=480, $bodyHeight=null, $modalWidth=null, $onClose='', $title='', $footer=null) | |
Fonctions membres publiques hérités de ToolbarButton | |
__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) | |
Fonctions membres protégées hérités de ToolbarButton | |
prepareOptions (array &$options) | |
renderButton (array &$options) | |
fetchId () | |
ensureUniqueId (string $id) | |
Fonctions membres protégées statiques | |
static | getAccessors () |
Fonctions membres protégées statiques hérités de ToolbarButton | |
static | getAccessors () |
Attributs protégés | |
$layout = 'joomla.toolbar.popup' | |
Attributs protégés hérités de ToolbarButton | |
$name | |
$parent | |
$layout | |
$options = [] | |
Fonctions membres privées | |
_getCommand ($url) | |
Membres hérités additionnels | |
Attributs protégés statiques hérités de ToolbarButton | |
static | $idCounter = [] |
Renders a modal window button
self url(string $value) self icon(string $value) self iframeWidth(int $value) self iframeHeight(int $value) self bodyHeight(int $value) self modalWidth(int $value) self onclose(string $value) self title(string $value) self footer(string $value) self selector(string $value) self listCheck(bool $value) string getUrl() int getIframeWidth() int getIframeHeight() int getBodyHeight() int getModalWidth() string getOnclose() string getTitle() string getFooter() string getSelector() bool getListCheck()
|
private |
Get the JavaScript command for the button
string | $url | URL for popup |
Références $url, et Uri\base().
fetchButton | ( | $type = 'Modal' , |
|
$name = '' , |
|||
$text = '' , |
|||
$url = '' , |
|||
$iframeWidth = 640 , |
|||
$iframeHeight = 480 , |
|||
$bodyHeight = null , |
|||
$modalWidth = null , |
|||
$onClose = '' , |
|||
$title = '' , |
|||
$footer = null |
|||
) |
Fetch the HTML for the button
string | $type | Unused string, formerly button type. |
string | $name | Modal name, used to generate element ID |
string | $text | The link text |
string | $url | URL for popup |
integer | $iframeWidth | Width of popup |
integer | $iframeHeight | Height of popup |
integer | $bodyHeight | Optional height of the modal body in viewport units (vh) |
integer | $modalWidth | Optional width of the modal in viewport units (vh) |
string | $onClose | JavaScript for the onClose event. |
string | $title | The title text |
string | $footer | The footer html |
Références $bodyHeight, $modalWidth, $name, $text, $title, $url, et name.
|
staticprotected |
Method to configure available option accessors.
|
protected |
Prepare options for this button.
array | $options | The options about this button. |
Références $options.
|
protected |
Render button HTML.
array | $options | The button options. |
Références $html, $options, $params, $selector, HTMLHelper\_(), Factory\getDocument(), et null.
|
protected |