API15:JButtonLink/fetchButton
From Joomla! Documentation
<! removed transcluded page call, red link never existed >
Syntax
fetchButton($type='Link', $name= 'back', $text= '', $url=null)
| Parameter Name | Default Value | Description |
|---|---|---|
| $type | 'Link' | |
| $name | 'back' | |
| $text | ||
| $url | null |
Defined in
libraries/joomla/html/toolbar/button/link.php
Importing
jimport( 'joomla.html.toolbar.button.link' );
Source Body
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
Code Examples