API16

API16:JToolBar/renderButton

From Joomla! Documentation

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

Description

Render a parameter type.

[Edit Descripton]

Template:Description:JToolBar/renderButton

Syntax

renderButton(&$node)
Parameter Name Default Value Description
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

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

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

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

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

Examples

<CodeExamplesForm />