API15

JToolBar/render: Difference between revisions

From Joomla! Documentation

m removing red link to edit, no existant pages
m preparing for archive only
 
Line 49: Line 49:


===Examples===
===Examples===
<CodeExamplesForm />
=== Code Examples ===
<dpl>
<dpl>
  noresultsheader=\n
  noresultsheader=\n
  category=render
  category=render
  category=JToolBar
  category=JToolBar
  category=CodeExample
  namespace=CodeExample
  category=MethodExample
  category=MethodExample
  include=*
  include=*

Latest revision as of 01:13, 25 March 2017

Description

Render

[<! removed edit link to red link >]

<! removed transcluded page call, red link never existed >

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

[<! removed edit link to red link >] <! removed transcluded page call, red link never existed >

Examples

Code Examples