Class FOFDatabase
Database connector class.
Direct known subclasses
Indirect known subclasses
FOFDatabaseDriverMysql
,
FOFDatabaseDriverMysqli
,
FOFDatabaseDriverOracle
,
FOFDatabaseDriverPdo
,
FOFDatabaseDriverPdomysql
,
FOFDatabaseDriverPostgresql
,
FOFDatabaseDriverSqlazure
,
FOFDatabaseDriverSqlite
,
FOFDatabaseDriverSqlsrv
Package: FrameworkOnFramework\database
Deprecated: 13.3 (Platform) & 4.0 (CMS)
Copyright: Copyright (C) 2010-2016 Nicholas K. Dionysopoulos / Akeeba Ltd. All rights reserved.
License: General Public License version 2 or later; see LICENSE.txt This file is adapted from the Joomla! Platform. It is used to iterate a database cursor returning FOFTable objects instead of plain stdClass objects
Since: 11.1
Located at fof/database/database.php
Methods summary
public
mixed
|
|
public static
array
|
#
getConnectors( )
Get a list of available database connectors. The list will only be populated with connectors that both the class exists and the static test method returns true. This gives us the ability to have a multitude of connector classes that are self-aware as to whether or not they are able to be used on a given system. |
public
string
|
|
public
integer
|
|
public static
|
#
getInstance( array $options = array() )
Method to return a FOFDatabaseDriver instance based on the given options. There are three global options and then the rest are specific to the database driver. The 'driver' option defines which FOFDatabaseDriver class is used for the connection -- the default is 'mysqli'. The 'database' option determines which database is to be used for the connection. The 'select' option determines whether the connector should automatically select the chosen database. |
public static
array
|
|
public
string
|
|
public static
boolean
|