fetchIconClass($name); $doTask = $this->_getCommand($name, $url, $width, $height, $top, $left); $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.'-'."popup-$name"; } /** * Get the JavaScript command for the button * * @access private * @param object $definition Button definition * @return string JavaScript command string * @since 1.5 */ function _getCommand($name, $url, $width, $height, $top, $left) { if (substr($url, 0, 4) !== 'http') { $url = JURI::base().$url; } return $url; } }