Back to LinkButton class

Method fetchButton

public string
fetchButton
(mixed $type = 'Link', mixed $name = 'back', mixed $text = '', mixed $url = null)
Fetch the HTML for the button
Parameters
  • string $type Unused string.
  • string $name Name to be used as apart of the id
  • string $text Button text
  • string $url The link url
Returns
  • string HTML string for the button
Since
  • 3.0
Deprecated
  • 5.0
Class: LinkButton
Project: Joomla

Method fetchButton - Source code

/**
 * 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
 *
 * @since   3.0
 *
 * @deprecated  5.0 Use render() instead.
 */
public function fetchButton($type = 'Link', $name = 'back', $text = '', $url = null)
{
    $this->name($name)->text($text)->url($url);
    return $this->renderButton($this->options);
}