API16:JButtonLink/fetchButton
From Joomla! Documentation
This Namespace has been archived - Please Do Not Edit or Create Pages in this namespace. Pages contain information for a Joomla! version which is no longer supported. It exists only as a historical reference, will not be improved and its content may be incomplete.
Description:JButtonLink/fetchButton
Contents |
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
public 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\">\n"; $html .= "</span>\n"; $html .= "$text\n"; $html .= "</a>\n"; return $html; }
[Edit See Also] SeeAlso:JButtonLink/fetchButton
Examples
<CodeExamplesForm />
