API16

API16:JToolBar/addButtonPath

From Joomla! Documentation

Revision as of 22:52, 22 March 2010 by Doxiki (talk | contribs) (New page: ===Description=== Add a directory where JToolBar should search for button types. <span class="editsection" style="font-size:76%;"> <nowiki>[</nowiki>[[Description:JToolBar/addButtonPa...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Description

Add a directory where JToolBar should search for button types.

[Edit Descripton]

Template:Description:JToolBar/addButtonPath

Syntax

addButtonPath($path)
Parameter Name Default Value Description
$path directory or directories to search.

Defined in

libraries/joomla/html/toolbar.php

Importing

jimport( 'joomla.html.toolbar' );

Source Body

public function addButtonPath($path)
{
        if (is_array($path)) {
                $this->_buttonPath = array_merge($this->_buttonPath, $path);
        } else {
                array_push($this->_buttonPath, $path);
        }
}

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

Examples

<CodeExamplesForm />