Source for file separator.php
Documentation is available at separator.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
* Renders a button separator
* @package Joomla.Libraries
protected $_name =
'Separator';
* Get the HTML for a separator in the toolbar
* @param array &$definition Class name and custom width
* @return string The HTML for the separator
* @see JToolbarButton::render()
public function render(&$definition)
// Store all data to the options array for use with JLayout
$options['class'] =
(empty($definition[1])) ?
'' :
$definition[1];
$options['style'] =
(empty($definition[2])) ?
'' :
' style="width:' . (int)
$definition[2] .
'px;"';
// Instantiate a new JLayoutFile instance and render the layout
return $layout->render($options);
* Empty implementation (not required for separator)
Documentation generated on Tue, 19 Nov 2013 15:12:50 +0100 by phpDocumentor 1.4.3