API16:JPane/getInstance
From Joomla! Documentation
Description
Returns a JPanel object.
Syntax
static 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
object
Defined in
libraries/joomla/html/pane.php
Importing
jimport( 'joomla.html.pane' );
Source Body
public static function getInstance($behavior = 'Tabs', $params = array())
{
$classname = 'JPane'.$behavior;
$instance = new $classname($params);
return $instance;
}
Examples
Code Examples