Difference between revisions of "JAdapter"
From Joomla! Documentation
m (→User contributed notes: moving preparation) |
m (preparing for archive only) |
||
(2 intermediate revisions by the same user not shown) | |||
Line 2: | Line 2: | ||
=={{JVer|11.1}} JAdapter== | =={{JVer|11.1}} JAdapter== | ||
===Description=== | ===Description=== | ||
− | + | ||
− | + | ||
− | |||
− | |||
===Methods=== | ===Methods=== | ||
{| class="wikitable sortable" | {| class="wikitable sortable" | ||
Line 14: | Line 12: | ||
|- | |- | ||
|public | |public | ||
− | |[[JAdapter::__construct | + | |[[API17:JAdapter::__construct|__construct]] |
|Constructor. | |Constructor. | ||
|- | |- | ||
|public | |public | ||
− | |[[JAdapter::getAdapter | + | |[[API17:JAdapter::getAdapter|getAdapter]] |
|Return an adapter. | |Return an adapter. | ||
|- | |- | ||
|public | |public | ||
− | |[[JAdapter::getDBO | + | |[[API17:JAdapter::getDBO|getDBO]] |
|Get the database connector object. | |Get the database connector object. | ||
|- | |- | ||
|public | |public | ||
− | |[[JAdapter::loadAllAdapters | + | |[[API17:JAdapter::loadAllAdapters|loadAllAdapters]] |
|Loads all adapters. | |Loads all adapters. | ||
|- | |- | ||
|public | |public | ||
− | |[[JAdapter::setAdapter | + | |[[API17:JAdapter::setAdapter|setAdapter]] |
|Set an adapter by name. | |Set an adapter by name. | ||
|- | |- | ||
|} | |} | ||
* '''Defined in''' libraries/joomla/base/adapter.php | * '''Defined in''' libraries/joomla/base/adapter.php | ||
− | * '''Extends''' [[JObject | + | * '''Extends''' [[API17:JObject|JObject]] |
* '''Extended by''' | * '''Extended by''' | ||
− | ** [[JInstaller | + | ** [[API17:JInstaller|JInstaller]] |
− | ** [[JUpdater | + | ** [[API17:JUpdater|JUpdater]] |
===Importing=== | ===Importing=== | ||
<source lang="php">jimport( 'joomla.base.adapter' );</source> | <source lang="php">jimport( 'joomla.base.adapter' );</source> | ||
===See also=== | ===See also=== | ||
* {{JVer|11.1}} '''JAdapter source code''' on [[jplatform:base/adapter.php|BitBucket]] | * {{JVer|11.1}} '''JAdapter source code''' on [[jplatform:base/adapter.php|BitBucket]] | ||
− | * {{JVer|11.1}} Subpackage [[Subpackage Base | + | * {{JVer|11.1}} Subpackage [[API17:Subpackage Base|Base]] |
− | * [[JAdapter|Other versions of JAdapter]] | + | * [[API17:JAdapter|Other versions of JAdapter]] |
− | + | ||
− | + | ||
− | |||
− | |||
===User contributed notes=== | ===User contributed notes=== | ||
− | + | === Code Examples === | |
<dpl> | <dpl> | ||
noresultsheader=\n | noresultsheader=\n | ||
category=JAdapter | category=JAdapter | ||
− | + | namespace=CodeExample | |
category=ClassExample | category=ClassExample | ||
include=* | include=* |
Latest revision as of 21:18, 24 March 2017
The "API17" 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.
JAdapter[edit]
Description[edit]
Methods[edit]
Visibility | Method name | Description |
---|---|---|
public | __construct | Constructor. |
public | getAdapter | Return an adapter. |
public | getDBO | Get the database connector object. |
public | loadAllAdapters | Loads all adapters. |
public | setAdapter | Set an adapter by name. |
- Defined in libraries/joomla/base/adapter.php
- Extends JObject
- Extended by
Importing[edit]
jimport( 'joomla.base.adapter' );
See also[edit]
- JAdapter source code on BitBucket
- Subpackage Base
- Other versions of JAdapter
User contributed notes[edit]
Code Examples[edit]