API15

API15:JToolBar/render

From Joomla! Documentation

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

Description

Render

[Edit Descripton]

Template:Description:JToolBar/render

Syntax

render()


Returns

string HTML

Defined in

libraries/joomla/html/toolbar.php

Importing

jimport( 'joomla.html.toolbar' );

Source Body

function render()
{
        $html = array ();

        // Start toolbar div
        $html[] = '<div class="toolbar" id="'.$this->_name.'">';
        $html[] = '<table class="toolbar"><tr>';

        // Render each button in the toolbar
        foreach ($this->_bar as $button) {
                $html[] = $this->renderButton($button);
        }

        // End toolbar div
        $html[] = '</tr></table>';
        $html[] = '</div>';

        return implode("\n", $html);
}

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

Examples

<CodeExamplesForm />