JButtonLink/fetchId: Difference between revisions
From Joomla! Documentation
m clean up |
m preparing for archive only |
||
Line 40: | Line 40: | ||
===Examples=== | ===Examples=== | ||
=== Code Examples === | |||
<dpl> | <dpl> | ||
noresultsheader=\n | noresultsheader=\n | ||
category=fetchId | category=fetchId | ||
category=JButtonLink | category=JButtonLink | ||
namespace=CodeExample | |||
category=MethodExample | category=MethodExample | ||
include=* | include=* |
Latest revision as of 01:21, 25 March 2017
Description
Get the button CSS Id
<! removed transcluded page call, red link never existed >
Syntax
fetchId($name)
Parameter Name | Default Value | Description |
---|---|---|
$name |
Returns
string Button CSS Id
Defined in
libraries/joomla/html/toolbar/button/link.php
Importing
jimport( 'joomla.html.toolbar.button.link' );
Source Body
public function fetchId($name)
{
return $this->_parent->getName().'-'.$name;
}
<! removed transcluded page call, red link never existed >
Examples
Code Examples