API16:JAdapter/getAdapter
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
Return an adapter
[<! removed edit link to red link >]
<! removed transcluded page call, red link never existed >
Syntax
getAdapter($name)
| Parameter Name | Default Value | Description |
|---|---|---|
| $name | name of adapter to return |
Returns
object Adapter of type 'name' or false
Defined in
libraries/joomla/base/adapter.php
Importing
jimport( 'joomla.base.adapter' );
Source Body
public function getAdapter($name) { if(!array_key_exists($name, $this->_adapters)) { if(!$this->setAdapter($name)) { $false = false; return $false; } } return $this->_adapters[$name]; }
[<! removed edit link to red link >] <! removed transcluded page call, red link never existed >
Examples
<CodeExamplesForm />
