API15

JPane/getInstance

From Joomla! Documentation

< API15:JPane
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>]...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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

[Edit Descripton]

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