API15:JButtonConfirm/fetchButton
From Joomla! Documentation
<! removed transcluded page call, red link never existed >
Syntax
fetchButton($type='Confirm', $msg='', $name= '', $text= '', $task= '', $list=true, $hideMenu=false)
| Parameter Name | Default Value | Description |
|---|---|---|
| $type | 'Confirm' | |
| $msg | ||
| $name | ||
| $text | ||
| $task | ||
| $list | true | |
| $hideMenu | false |
Defined in
libraries/joomla/html/toolbar/button/confirm.php
Importing
jimport( 'joomla.html.toolbar.button.confirm' );
Source Body
function fetchButton( $type='Confirm', $msg='', $name = '', $text = '', $task = '', $list = true, $hideMenu = false )
{
$text = JText::_($text);
$msg = JText::_($msg, true);
$class = $this->fetchIconClass($name);
$doTask = $this->_getCommand($msg, $name, $task, $list, $hideMenu);
$html = "<a href=\"#\" onclick=\"$doTask\" class=\"toolbar\">\n";
$html .= "<span class=\"$class\" title=\"$text\">\n";
$html .= "</span>\n";
$html .= "$text\n";
$html .= "</a>\n";
return $html;
}
<! removed transcluded page call, red link never existed >
Examples
Code Examples