JPane/getInstance
From Joomla! Documentation
< API15:JPaneRevision as of 17:22, 22 March 2010 by Doxiki (talk | contribs) (New page: ===Description===
Returns a reference to a JPanel object
<span class="editsection" style="font-size:76%;">
<nowiki>[</nowiki>Edit Descripton<nowiki>]...)
Revision as of 17:22, 22 March 2010 by Doxiki (talk | contribs) (New page: ===Description===
Returns a reference to a JPanel object
<span class="editsection" style="font-size:76%;">
<nowiki>[</nowiki>Edit Descripton<nowiki>]...)
The "API15" namespace is an archived namespace. This page contains information for a Joomla! version which is no longer supported. It exists only as a historical reference, it will not be improved and its content may be incomplete and/or contain broken links.
Description[edit]
Returns a reference to a JPanel object
Template:Description:JPane/getInstance
Syntax[edit]
& getInstance($behavior= 'Tabs', $params=array())
Parameter Name | Default Value | Description |
---|---|---|
$behavior | 'Tabs' | $behavior The behavior to use |
$params | array() | $useCookies Use cookies to remember the state of the panel |
Returns[edit]
object
Defined in[edit]
libraries/joomla/html/pane.php
Importing[edit]
jimport( 'joomla.html.pane' );
Source Body[edit]
function &getInstance( $behavior = 'Tabs', $params = array())
{
$classname = 'JPane'.$behavior;
$instance = new $classname($params);
return $instance;
}
[Edit See Also] Template:SeeAlso:JPane/getInstance
Examples[edit]
<CodeExamplesForm />