Actions

API15

JPane/getInstance

From Joomla! Documentation

< API15:JPane
Revision as of 17:22, 22 March 2010 by Doxiki (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Replacement filing cabinet.png
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

[Edit Descripton]

Description:JPane/getInstance

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 />