API16

JAdapter/getAdapter

< API16:JAdapter

The "API16" 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

Return an adapter


<! 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 transcluded page call, red link never existed >

Examples

Code Examples


Advertisement