API16

JToolBar/renderButton

< API16:JToolBar

The "API16" namespace is an archived namespace. This page contains information for a Joomla! version which is no longer supported. It exists only as a historical reference, it will not be improved and its content may be incomplete and/or contain broken links.

Description

Render a parameter type.



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

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);
}



Examples

Code Examples


Advertisement