Source for file help.php
Documentation is available at help.php
* @package Joomla.Libraries
* @copyright Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE
* Renders a help popup window button
* @package Joomla.Libraries
* @var string Button type
* Fetches the button HTML code.
* @param string $type Unused string.
* @param string $ref The name of the help screen (its key reference).
* @param boolean $com Use the help file in the component directory.
* @param string $override Use this URL instead of any other.
* @param string $component Name of component to get Help (null for current component)
public function fetchButton($type =
'Help', $ref =
'', $com =
false, $override =
null, $component =
null)
// Store all data to the options array for use with JLayout
$options['text'] =
JText::_('JTOOLBAR_HELP');
$options['doTask'] =
$this->_getCommand($ref, $com, $override, $component);
// Instantiate a new JLayoutFile instance and render the layout
return $layout->render($options);
* Redefined from JButton class
* @return string Button CSS Id
return $this->_parent->getName() .
'-help';
* Get the JavaScript command for the button
* @param string $ref The name of the help screen (its key reference).
* @param boolean $com Use the help file in the component directory.
* @param string $override Use this URL instead of any other.
* @param string $component Name of component to get Help (null for current component)
* @return string JavaScript command string
protected function _getCommand($ref, $com, $override, $component)
JHtml::_('behavior.framework');
$cmd =
"Joomla.popupWindow('$url', '" .
JText::_('JHELP', true) .
"', 700, 500, 1)";
Documentation generated on Tue, 19 Nov 2013 15:04:14 +0100 by phpDocumentor 1.4.3