Back to Joomla project (class list)

Class Adapter - list of methods

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

Extends

Direct known subclasses

Package: Joomla\CMS\Adapter
Copyright: (C) 2008 Open Source Matters, Inc.
License: GNU General Public License version 2 or later; see LICENSE.txt
Located at: Joomla/Adapter/Adapter.php
Project: Joomla

Method Summary

public
(mixed $basepath, mixed $classprefix = null, mixed $adapterfolder = null)

Constructor
Parameters
  • string $basepath Base Path of the adapters
  • string $classprefix Class prefix of adapters
  • string $adapterfolder Name of folder to append to base path
Since
  • 1.6
Show source code of this method: __construct Source Code

public \Joomla\Database\DatabaseDriver
()

Get the database connector object
Returns
  • \Joomla\Database\DatabaseDriver Database connector object
Since
  • 1.6
Show source code of this method: getDbo Source Code

public static|bool
(mixed $name, mixed $options = array())

Return an adapter.
Parameters
  • string $name Name of adapter to return
  • array $options Adapter options
Returns
  • static|bool Adapter of type 'name' or false
Since
  • 1.6
Show source code of this method: getAdapter Source Code

public bool
(mixed $name, mixed &$adapter = null, mixed $options = array())

Set an adapter by name
Parameters
  • string $name Adapter name
  • object $adapter Adapter object
  • array $options Adapter options
Returns
  • bool True if successful
Since
  • 1.6
Show source code of this method: setAdapter Source Code

public void
(mixed $options = array())

Loads all adapters.
Parameters
  • array $options Adapter options
Returns
  • void
Since
  • 1.6
Show source code of this method: loadAllAdapters Source Code

Properties Summary

protected static[]
$_adapters
Associative array of adapters
Since
  • 1.6
protected string
$_adapterfolder
Adapter Folder
Since
  • 1.6
protected string
$_classprefix
Adapter Class Prefix
Since
  • 1.6
protected string
$_basepath
Base Path for the adapter instance
Since
  • 1.6
protected \Joomla\Database\DatabaseDriver
$_db
Database Connector Object
Since
  • 1.6

Tags Summary

Since
1.6
Deprecated
5.0
Will be removed without replacement