JAdapter

Extends \JObject

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

since

11.1

package

Joomla.Platform

Methods

__construct

Constructor

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

11.1

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()) : object
since

11.1

Arguments

$name

stringName of adapter to return

$options

arrayAdapter options

Response

objectAdapter of type 'name' or false

getDbo

Get the database connector object

getDbo() : \JDatabaseDriver
since

11.1

Response

\JDatabaseDriverDatabase connector object

loadAllAdapters

Loads all adapters.

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

11.1

Arguments

$options

arrayAdapter options

setAdapter

Set an adapter by name

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

11.1

Arguments

$name

stringAdapter name

$adapter

$options

arrayAdapter options

Response

booleanTrue if successful

Properties

_adapters

Associative array of adapters

Type(s)

array

_adapterfolder

Adapter Folder

Type(s)

string

_classprefix

Adapter Class Prefix

Type(s)

string

_basepath

Base Path for the adapter instance

Type(s)

string

_db

Database Connector Object