Difference between revisions of "JButtonHelp/fetchButton"
From Joomla! Documentation
< API15:JButtonHelp
(New page:
<span class="editsection" style="font-size:76%;">
<nowiki>[</nowiki>Edit Descripton<nowiki>]</nowiki>
</span>
{{Description:JButtonHelp/fetc...) |
m (preparing for archive only) |
||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | + | <! removed transcluded page call, red link never existed > | |
− | < | ||
− | |||
− | |||
− | |||
− | |||
===Syntax=== | ===Syntax=== | ||
Line 51: | Line 46: | ||
</source> | </source> | ||
− | + | ||
− | + | <! removed transcluded page call, red link never existed > | |
− | < | ||
− | |||
===Examples=== | ===Examples=== | ||
− | + | === Code Examples === | |
<dpl> | <dpl> | ||
noresultsheader=\n | noresultsheader=\n | ||
category=fetchButton | category=fetchButton | ||
category=JButtonHelp | category=JButtonHelp | ||
− | + | namespace=CodeExample | |
category=MethodExample | category=MethodExample | ||
include=* | include=* | ||
format= ,,, | format= ,,, | ||
</dpl> | </dpl> | ||
+ | [[Category:Archived pages API15]] |
Latest revision as of 19:20, 24 March 2017
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='Help', $ref= '', $com=false)
Parameter Name | Default Value | Description |
---|---|---|
$type | 'Help' | |
$ref | ||
$com | false |
Defined in[edit]
libraries/joomla/html/toolbar/button/help.php
Importing[edit]
jimport( 'joomla.html.toolbar.button.help' );
Source Body[edit]
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\" 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]