fetchIconClass('help'); $doTask = $this->_getCommand($ref, $com); $html = "\n"; $html .= "\n"; $html .= "\n"; $html .= "$text\n"; $html .= "\n"; return $html; } /** * Get the button id * * Redefined from JButton class * * @access public * @param string $name Button name * @return string Button CSS Id * @since 1.5 */ function fetchId($name) { return $this->_parent->_name.'-'."help"; } /** * Get the JavaScript command for the button * * @access private * @param object $definition Button definition * @return string JavaScript command string * @since 1.5 */ function _getCommand($ref, $com) { // Get Help URL jimport('joomla.language.help'); $url = JHelp::createURL($ref, $com); $cmd = "popupWindow('$url', '".JText::_('Help', true)."', 640, 480, 1)"; return $cmd; } }