API15:JPane/getInstance
From Joomla! Documentation
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.
Contents |
Description
Returns a reference to a JPanel object
Syntax
& 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
function &getInstance( $behavior = 'Tabs', $params = array()) { $classname = 'JPane'.$behavior; $instance = new $classname($params); return $instance; }
[Edit See Also] SeeAlso:JPane/getInstance
Examples
<CodeExamplesForm />
