API16

API16:JToolBar/ construct

From Joomla! Documentation

Revision as of 02:13, 25 March 2017 by JoomlaWikiBot (talk | contribs) (preparing for archive only)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Description

Constructor



Syntax

__construct($name= 'toolbar')
Parameter Name Default Value Description
$name 'toolbar' The toolbar name.

Defined in

libraries/joomla/html/toolbar.php

Importing

jimport( 'joomla.html.toolbar' );

Source Body

public function __construct($name = 'toolbar')
{
        $this->_name = $name;

        // Set base path to find buttons.
        $this->_buttonPath[] = dirname(__FILE__).DS.'toolbar'.DS.'button';

}



Examples

Code Examples