Actions

API16

JButtonHelp/fetchButton

From Joomla! Documentation

< API16:JButtonHelp
Revision as of 16:52, 22 March 2010 by Doxiki (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Replacement filing cabinet.png
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.

[Edit Descripton]

Description:JButtonHelp/fetchButton

Contents

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;
}

[Edit See Also] SeeAlso:JButtonHelp/fetchButton

Examples

<CodeExamplesForm />