references:joomla.framework:html:jbuttonhelp-fetchbuttonTable of Contents
fetchButton
Returns the HTML code for the button. The created button will include code to open up a popup window with the specified help screen when it is clicked. For more information on how the $ref and $com parameters function (they are used to derive the URL of the target help file), see the JHelp::createURL method. The button will include a <div> cell whose class is determined by the fetchIconClass method called with ‘help’ as its parameter. This class is defined in the standard administrator template. If this class is used in the frontend, this class should be defined and any images used should be included. Syntaxvoid fetchButton ( $type, $ref, $com )
ExamplesExample $bar =& new JToolBar( 'My ToolBar' ); $button =& $bar->loadButtonType( 'Help' ); echo $button->fetchButton( 'Help', 'screen.config', true ); might produce: Result <a onclick="popupWindow('http://127.0.0.1/joomla15/components/com_document/help/screen.config.html', 'Help', 640, 480, 1)" class="toolbar"> <div class="icon-32-help" title="Help" type="Help"> </div> Help </a>
In the standard administrator’s template, this button looks like: Discussion |



