Table of Contents

fetchIconClass

API Package Subpackage Class Method Reference Last reviewed Doc status
API Home Package Joomla.Framework Subpackage HTML Class JButton Method fetchIconClass Reference fetchIconClass() Never Work in Progress

Method to get the CSS class name for an icon identifier. This method dan be redefined in the final button class.

Syntax

string fetchIconClass ( $identifier )

$identifier string is a string containing the icon identification string.

Examples

Example

$bar =& new JToolBar( 'My ToolBar' );
$button =& $bar->loadButtonType( 'Standard' );
echo $button->fetchIconClass( 'example' );

might produce:

Result

icon-32-example