JButtonStandard/fetchId: Difference between revisions
From Joomla! Documentation
New page: ===Description===
Get the button CSS Id
<span class="editsection" style="font-size:76%;">
<nowiki>[</nowiki>Edit Descripton<nowiki>]</nowiki>
... |
m removing red link to edit, no existant pages |
||
| Line 3: | Line 3: | ||
<span class="editsection" style="font-size:76%;"> | <span class="editsection" style="font-size:76%;"> | ||
<nowiki>[< | <nowiki>[<! removed edit link to red link >]</nowiki> | ||
</span> | </span> | ||
<! removed transcluded page call, red link never existed > | |||
===Syntax=== | ===Syntax=== | ||
| Line 59: | Line 59: | ||
<span class="editsection" style="font-size:76%;"> | <span class="editsection" style="font-size:76%;"> | ||
<nowiki>[< | <nowiki>[<! removed edit link to red link >]</nowiki> | ||
</span> | </span> | ||
<! removed transcluded page call, red link never existed > | |||
===Examples=== | ===Examples=== | ||
| Line 74: | Line 74: | ||
format= ,,, | format= ,,, | ||
</dpl> | </dpl> | ||
[[Category:Archived pages API16]] | |||
Revision as of 02:52, 13 May 2013
Description
Get the button CSS Id
[<! removed edit link to red link >]
<! removed transcluded page call, red link never existed >
Syntax
fetchId($type='Standard', $name= '', $text= '', $task= '', $list=true, $hideMenu=false)
| Parameter Name | Default Value | Description |
|---|---|---|
| $type | 'Standard' | |
| $name | ||
| $text | ||
| $task | ||
| $list | true | |
| $hideMenu | false |
Returns
string Button CSS Id
Defined in
libraries/joomla/html/toolbar/button/standard.php
Importing
jimport( 'joomla.html.toolbar.button.standard' );
Source Body
public function fetchId($type='Standard', $name = '', $text = '', $task = '', $list = true, $hideMenu = false)
{
return $this->_parent->getName().'-'.$name;
}
[<! removed edit link to red link >] <! removed transcluded page call, red link never existed >
Examples
<CodeExamplesForm />