API17:JToolBar::getInstance
From Joomla! Documentation
(Difference between revisions)
(Layout updates) |
(Updated to r1448:247ba8d88526) |
||
| Line 8: | Line 8: | ||
<nowiki>[</nowiki>[[Description:JToolBar::getInstance|Edit Descripton]]<nowiki>]</nowiki> | <nowiki>[</nowiki>[[Description:JToolBar::getInstance|Edit Descripton]]<nowiki>]</nowiki> | ||
</span> | </span> | ||
| − | |||
<source lang="php"> | <source lang="php"> | ||
| − | public static | + | public static function getInstance ($name= 'toolbar') |
</source> | </source> | ||
{| class="wikitable" | {| class="wikitable" | ||
| Line 22: | Line 21: | ||
|string | |string | ||
|'toolbar' | |'toolbar' | ||
| − | |The name of the toolbar. | + | |The name of the toolbar. |
|- | |- | ||
|} | |} | ||
| − | + | * '''Returns''' The object. | |
| − | The object. | + | * '''Defined''' on line 75 of libraries/joomla/html/toolbar.php |
| − | + | ||
| − | libraries/joomla/html/toolbar.php | + | |
| − | + | ||
| − | + | ||
===See also=== | ===See also=== | ||
| + | * {{JVer|11.1}} '''JToolBar::getInstance source code''' on [[jplatform:html/toolbar.php#cl-67|BitBucket]] | ||
| + | * {{JVer|11.1}} Class [[JToolBar/11.1|JToolBar]] | ||
| + | * {{JVer|11.1}} Subpackage [[Subpackage_Html/11.1|Html]] | ||
| + | * [[JToolBar::getInstance|Other versions of JToolBar::getInstance]] | ||
| + | {{SeeAlso:JToolBar::getInstance}} | ||
<span class="editsection" style="font-size:76%;"> | <span class="editsection" style="font-size:76%;"> | ||
<nowiki>[</nowiki>[[SeeAlso:JToolBar::getInstance|Edit See Also]]<nowiki>]</nowiki> | <nowiki>[</nowiki>[[SeeAlso:JToolBar::getInstance|Edit See Also]]<nowiki>]</nowiki> | ||
</span> | </span> | ||
| − | + | ===User contributed notes=== | |
| − | + | ||
| − | + | ||
| − | === | + | |
<CodeExamplesForm /> | <CodeExamplesForm /> | ||
<dpl> | <dpl> | ||
| Line 46: | Line 43: | ||
category=MethodExample | category=MethodExample | ||
include=* | include=* | ||
| + | namespace=CodeExample | ||
format= ,,, | format= ,,, | ||
</dpl> | </dpl> | ||
<noinclude>[[Category:JToolBar]][[Category:JToolBar::getInstance]]</noinclude> | <noinclude>[[Category:JToolBar]][[Category:JToolBar::getInstance]]</noinclude> | ||
Revision as of 21:51, 27 April 2011
This Namespace has been archived - Please Do Not Edit or Create Pages in this namespace. Pages contain information for a Joomla! version which is no longer supported. It exists only as a historical reference, will not be improved and its content may be incomplete.
JToolBar::getInstance
Description
Returns the global object, only creating it if it doesn't already exist.
Description:JToolBar::getInstance [Edit Descripton]
public static function getInstance ($name= 'toolbar')
| Parameter | Type | Default | Description |
|---|---|---|---|
| $name | string | 'toolbar' | The name of the toolbar. |
- Returns The object.
- Defined on line 75 of libraries/joomla/html/toolbar.php
See also
-
JToolBar::getInstance source code on BitBucket
-
Class JToolBar
-
Subpackage Html
- Other versions of JToolBar::getInstance
SeeAlso:JToolBar::getInstance [Edit See Also]
User contributed notes
<CodeExamplesForm />
