Difference between revisions of "JButtonLink/fetchButton"
From Joomla! Documentation
< API15:JButtonLink
(New page:
<span class="editsection" style="font-size:76%;">
<nowiki>[</nowiki>Edit Descripton<nowiki>]</nowiki>
</span>
{{Description:JButtonLink/fetc...) |
(No difference)
|
Revision as of 17:23, 22 March 2010
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.
Template:Description:JButtonLink/fetchButton
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;
}
[Edit See Also] Template:SeeAlso:JButtonLink/fetchButton
Examples[edit]
<CodeExamplesForm />