Table of Contents

fetchId

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

Gets the button’s CSS ID. The value returned is a concatenation of the parent’s name property and the string ‘help’.

Syntax

string fetchId ( $type )

$type string is a string containing the button type. This parameter should normally be ‘Help’. This parameter is optional and if omitted defaults to ‘Help’. This parameter is not used.

Examples

Example

$bar =& new JToolBar( 'My ToolBar' );
$button =& $bar->loadButtonType( 'Help' );
echo $button->fetchId( 'Help', 'screen.config', true );

might produce:

Result

My ToolBar-help