Source for file icons.php
Documentation is available at icons.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.txt
* Utility class for icons.
* @package Joomla.Libraries
* Method to generate html code for a list of buttons
* @param array $buttons Array of buttons
public static function buttons($buttons)
foreach ($buttons as $button)
$html[] =
JHtml::_('icons.button', $button);
* Method to generate html code for a list of buttons
* @param array $button Button properties
public static function button($button)
if (isset
($button['access']))
if ($button['access'] ==
false)
// Get the user object to verify permissions
// Take each pair of permission, context values.
for ($i =
0, $n =
count($button['access']); $i <
$n; $i +=
2)
if (!$user->authorise($button['access'][$i], $button['access'][$i +
1]))
// Instantiate a new JLayoutFile instance and render the layout
return $layout->render($button);
Documentation generated on Tue, 19 Nov 2013 15:04:58 +0100 by phpDocumentor 1.4.3