API15

JToolBar/renderButton: Difference between revisions

From Joomla! Documentation

Doxiki (talk | contribs)
New page: ===Description=== Render a parameter type <span class="editsection" style="font-size:76%;"> <nowiki>[</nowiki>Edit Descripton<nowiki>]</nowiki> ...
 
Doxiki (talk | contribs)
No edit summary
Line 17: Line 17:
!Description
!Description
|-
|-
|  
| &$node
|  
|  
|  A param tag node  
|  A param tag node  

Revision as of 17:38, 25 March 2010

Description

Render a parameter type

[Edit Descripton]

Template:Description:JToolBar/renderButton

Syntax

renderButton(&$node)
Parameter Name Default Value Description
&$node A param tag node

Returns

array Any array of the label, the form element and the tooltip

Defined in

libraries/joomla/html/toolbar.php

Importing

jimport( 'joomla.html.toolbar' );

Source Body

function renderButton( &$node )
{
        // Get the button type
        $type = $node[0];

        $button = & $this->loadButtonType($type);

        if ($button === false) {
                return JText::_('Button not defined for type').' = '.$type;
        }
        return $button->render($node);
}

[Edit See Also] Template:SeeAlso:JToolBar/renderButton

Examples

<CodeExamplesForm />