JButtonPopup/fetchButton
From Joomla! Documentation
< API15:JButtonPopup
The "API15" namespace is an archived namespace. This page contains information for a Joomla! version which is no longer supported. It exists only as a historical reference, it will not be improved and its content may be incomplete and/or contain broken links.
<! removed transcluded page call, red link never existed >
Syntax[edit]
fetchButton($type='Popup', $name= '', $text= '', $url= '', $width=640, $height=480, $top=0, $left=0)
Parameter Name | Default Value | Description |
---|---|---|
$type | 'Popup' | |
$name | ||
$text | ||
$url | ||
$width | 640 | |
$height | 480 | |
$top | 0 | |
$left | 0 |
Defined in[edit]
libraries/joomla/html/toolbar/button/popup.php
Importing[edit]
jimport( 'joomla.html.toolbar.button.popup' );
Source Body[edit]
function fetchButton( $type='Popup', $name = '', $text = '', $url = '', $width=640, $height=480, $top=0, $left=0 )
{
JHTML::_('behavior.modal');
$text = JText::_($text);
$class = $this->fetchIconClass($name);
$doTask = $this->_getCommand($name, $url, $width, $height, $top, $left);
$html = "<a class=\"modal\" href=\"$doTask\" rel=\"{handler: 'iframe', size: {x: $width, y: $height}}\">\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[edit]
Code Examples[edit]