API16

API16:JButtonCustom/fetchId

From Joomla! Documentation

Revision as of 22:52, 22 March 2010 by Doxiki (talk | contribs) (New page: ===Description=== Get the button CSS Id <span class="editsection" style="font-size:76%;"> <nowiki>[</nowiki>Edit Descripton<nowiki>]</nowiki> </...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Description

Get the button CSS Id

[Edit Descripton]

Template:Description:JButtonCustom/fetchId

Syntax

fetchId($type='Custom', $html= '', $id= 'custom')
Parameter Name Default Value Description
$type 'Custom'
$html
$id 'custom'

Returns

string Button CSS Id

Defined in

libraries/joomla/html/toolbar/button/custom.php

Importing

jimport( 'joomla.html.toolbar.button.custom' );

Source Body

public function fetchId($type='Custom', $html = '', $id = 'custom')
{
        return $this->_parent->getName().'-'.$id;
}

[Edit See Also] Template:SeeAlso:JButtonCustom/fetchId

Examples

<CodeExamplesForm />