CoreFiles by mySites.guru
custom.php57 lines, 1,204 bytes, from Joomla_3.7.5-Stable-Full_Package.zip
Raw History Compare with 3.7.4
md5
9623edb39dba1d3299c8eb4068167bfd
sha1
b9fbb6541392cbc457350121759d643ff94ec6c7
sha256
6c66fbf29d23a169d8bca9bb36a42a2dd738a3ea3e4314190e88c45643c46160
<?php
/**
 * @package     Joomla.Libraries
 * @subpackage  Toolbar
 *
 * @copyright   Copyright (C) 2005 - 2017 Open Source Matters, Inc. All rights reserved.
 * @license     GNU General Public License version 2 or later; see LICENSE.txt
 */

defined('JPATH_PLATFORM') or die;

/**
 * Renders a custom button
 *
 * @since  3.0
 */
class JToolbarButtonCustom extends JToolbarButton
{
	/**
	 * Button type
	 *
	 * @var    string
	 */
	protected $_name = 'Custom';

	/**
	 * Fetch the HTML for the button
	 *
	 * @param   string  $type  Button type, unused string.
	 * @param   string  $html  HTML strng for the button
	 * @param   string  $id    CSS id for the button
	 *
	 * @return  string   HTML string for the button
	 *
	 * @since   3.0
	 */
	public function fetchButton($type = 'Custom', $html = '', $id = 'custom')
	{
		return $html;
	}

	/**
	 * Get the button CSS Id
	 *
	 * @param   string  $type  Not used.
	 * @param   string  $html  Not used.
	 * @param   string  $id    The id prefix for the button.
	 *
	 * @return  string  Button CSS Id
	 *
	 * @since   3.0
	 */
	public function fetchId($type = 'Custom', $html = '', $id = 'custom')
	{
		return $this->_parent->getName() . '-' . $id;
	}
}

The same content is in 8 releases, Joomla 3.7.3-beta1 to 3.7.5. See them all, or every version of this file.