API16:JButtonHelp/fetchButton
From Joomla! Documentation
<! removed transcluded page call, red link never existed >
Syntax
fetchButton($type='Help', $ref= '', $com=false)
| Parameter Name | Default Value | Description |
|---|---|---|
| $type | 'Help' | |
| $ref | ||
| $com | false |
Defined in
libraries/joomla/html/toolbar/button/help.php
Importing
jimport( 'joomla.html.toolbar.button.help' );
Source Body
public function fetchButton($type='Help', $ref = '', $com = false)
{
$text = JText::_('Help');
$class = $this->fetchIconClass('help');
$doTask = $this->_getCommand($ref, $com);
$html = "<a href=\"#\" onclick=\"$doTask\" class=\"toolbar\">\n";
$html .= "<span class=\"$class\">\n";
$html .= "</span>\n";
$html .= "$text\n";
$html .= "</a>\n";
return $html;
}
<! removed transcluded page call, red link never existed >
Examples
Code Examples