Source for file link.php
Documentation is available at link.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
* @package Joomla.Libraries
* Fetch the HTML for the button
* @param string $type Unused string.
* @param string $name Name to be used as apart of the id
* @param string $text Button text
* @param string $url The link url
* @return string HTML string for the button
public function fetchButton($type =
'Link', $name =
'back', $text =
'', $url =
null)
// Store all data to the options array for use with JLayout
$options['text'] =
JText::_($text);
// Instantiate a new JLayoutFile instance and render the layout
return $layout->render($options);
* @param string $type The button type.
* @param string $name The name of the button.
* @return string Button CSS Id
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
Documentation generated on Tue, 19 Nov 2013 15:07:06 +0100 by phpDocumentor 1.4.3