JAdapter

Extends \JObject

Adapter Class Retains common adapter pattern functions Class harvested from joomla.installer.installer

deprecated
since

1.6

deprecated

5.0 Will be removed without replacement

package

Joomla.Platform

Methods

__construct

Constructor

__construct(string $basepath, string $classprefix = null, string $adapterfolder = null) 
since

1.6

Arguments

$basepath

stringBase Path of the adapters

$classprefix

stringClass prefix of adapters

$adapterfolder

stringName of folder to append to base path

getAdapter

Return an adapter.

getAdapter(string $name, array $options = array()) : \JAdapterInstance|boolean
since

1.6

Arguments

$name

stringName of adapter to return

$options

arrayAdapter options

Response

\JAdapterInstance|booleanAdapter of type 'name' or false

getDbo

Get the database connector object

getDbo() : \JDatabaseDriver
since

1.6

Response

\JDatabaseDriverDatabase connector object

loadAllAdapters

Loads all adapters.

loadAllAdapters(array $options = array()) : void
since

1.6

Arguments

$options

arrayAdapter options

setAdapter

Set an adapter by name

setAdapter(string $name,  &$adapter = null, array $options = array()) : boolean
since

1.6

Arguments

$name

stringAdapter name

$adapter

$options

arrayAdapter options

Response

booleanTrue if successful

Properties

_adapters

Associative array of adapters

since

1.6

Type(s)

array<mixed,\JAdapterInstance>

_adapterfolder

Adapter Folder

since

1.6

Type(s)

string

_classprefix

Adapter Class Prefix

since

1.6

Type(s)

string

_basepath

Base Path for the adapter instance

since

1.6

Type(s)

string

_db

Database Connector Object

since

1.6

Type(s)

\JDatabaseDriver