API17:JDatabase::getInstance
From Joomla! Documentation
(Difference between revisions)
(Bulk upload by Doxiki2) |
(Layout updates) |
||
| Line 28: | Line 28: | ||
===Defined in=== | ===Defined in=== | ||
| − | libraries/joomla/database/database.php | + | libraries/joomla/database/database.php (line 182) |
| + | * see source code in [[jplatform:database/database.php#cl-182|BitBucket]] | ||
===Referenced by=== | ===Referenced by=== | ||
| − | * [[JLoggerDatabase | + | * [[JLoggerDatabase::connect/11.1|JLoggerDatabase::connect]] |
===See also=== | ===See also=== | ||
<span class="editsection" style="font-size:76%;"> | <span class="editsection" style="font-size:76%;"> | ||
Revision as of 20:10, 23 April 2011
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.
JDatabase::getInstance
Description
Returns the global Database object, only creating it if it doesn't already exist.
Description:JDatabase::getInstance [Edit Descripton]
Synopsis
public static JDatabase::getInstance ($options=array())
| Parameter | Type | Default | Description |
|---|---|---|---|
| $options | array() |
Returns
Defined in
libraries/joomla/database/database.php (line 182)
- see source code in BitBucket
Referenced by
See also
SeeAlso:JDatabase::getInstance
Examples
<CodeExamplesForm />
