fetchIconClass($name); $options['doTask'] = $this->_getCommand($url); // Instantiate a new JLayoutFile instance and render the layout $layout = new JLayoutFile('joomla.toolbar.link'); return $layout->render($options); } /** * Get the button CSS Id * * @param string $type The button type. * @param string $name The name of the button. * * @return string Button CSS Id * * @since 3.0 */ public function fetchId($type = 'Link', $name = '') { return $this->_parent->getName() . '-' . $name; } /** * Get the JavaScript command for the button * * @param object $url Button definition * * @return string JavaScript command string * * @since 3.0 */ protected function _getCommand($url) { return $url; } }