JButtonLink/fetchButton
From Joomla! Documentation
< API15:JButtonLink
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='Link', $name= 'back', $text= '', $url=null)
Parameter Name | Default Value | Description |
---|---|---|
$type | 'Link' | |
$name | 'back' | |
$text | ||
$url | null |
Defined in[edit]
libraries/joomla/html/toolbar/button/link.php
Importing[edit]
jimport( 'joomla.html.toolbar.button.link' );
Source Body[edit]
function fetchButton( $type='Link', $name = 'back', $text = '', $url = null )
{
$text = JText::_($text);
$class = $this->fetchIconClass($name);
$doTask = $this->_getCommand($url);
$html = "<a href=\"$doTask\">\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]